
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2011 11:35 PM
Hello. I'm customizing the warranty status report with the code listed below. It works, except I'm trying to eliminate duplicate service tag numbers. How can I modify the query to accomplish this?
Thank you.
Thank you.
Select Top 1000000 tblCompCustom.PurchaseDate, tblCompCustom.Warrantydate, web40lastlogontop.lastuser, tblComputerSystemProduct.IdentifyingNumber, Web40OSName.OSname, tblComputers.Computer, tblComputersystem.Model, web40allcompstates.Computername, web40allcompstates.Statename From tblComputers Inner Join tblCompCustom On tblComputers.Computername = tblCompCustom.Computername Inner Join tblComputerSystemProduct On tblComputers.Computername = tblComputerSystemProduct.Computername Inner Join web40lastlogontop On web40lastlogontop.Computername = tblComputerSystemProduct.Computername Inner Join Web40OSName On Web40OSName.Computername = web40lastlogontop.Computername Inner Join tblComputersystem On tblComputers.Computername = tblComputersystem.Computername Inner Join web40allcompstates On web40allcompstates.Computername = Web40OSName.Computername
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2011 11:56 AM
try this one:
Select Top 1000000 tblCompCustom.PurchaseDate, tblCompCustom.Warrantydate,
tblComputerSystemProduct.IdentifyingNumber, Web40OSName.OSname,
tblComputers.Computer, tblComputersystem.Model,
web40allcompstates.Computername, web40allcompstates.Statename,
tblComputers.Userdomain, tblComputers.Username
From tblComputers Left Join
tblCompCustom On tblComputers.Computername = tblCompCustom.Computername
Inner Join
tblComputerSystemProduct On tblComputers.Computername =
tblComputerSystemProduct.Computername Inner Join
tblComputersystem On tblComputers.Computername =
tblComputersystem.Computername Inner Join
web40allcompstates On web40allcompstates.Computername =
tblComputers.Computername Inner Join
Web40OSName On Web40OSName.Computername = tblComputers.Computername
