→ 🚀Are you a Lansweeper Champion?! Join our Contributor Program Sign up here!

Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mastj25
Engaged Sweeper
I have attempted to create a custom report starting from a system report and building from there. I am new to Lansweeper and am not sure where my issue is that I am getting duplicate results (sometimes 2 sometimes 10 duplicates). Here is what I have, any help would be appreciated.

Select Top 1000000 tblcomputers.ComputerUnique, Web40OSName.OSname,
tblOperatingsystem.Description, tblDiskdrives.Caption,
Cast(Cast(tblDiskdrives.Freespace As bigint) / 1024 / 1024 As numeric) As
Free, Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) As
[Total size], Cast(Cast(tblComputersystem.TotalPhysicalMemory As bigint) /
1024 / 1024 As numeric) As [Total Memory], Web40OSName.Compimage As icon,
tblPROCESSOR.NumberOfCores, tblPROCESSOR.NumberOfLogicalProcessors,
tblPROCESSOR.MaxClockSpeed
From tblcomputers Inner Join
tblDiskdrives On tblcomputers.Computername = tblDiskdrives.Computername
Inner Join
tblOperatingsystem On tblcomputers.Computername =
tblOperatingsystem.Computername Inner Join
web40ActiveComputers On tblcomputers.Computername =
web40ActiveComputers.Computername Inner Join
Web40OSName On Web40OSName.Computername = tblcomputers.Computername Inner Join
tblComputersystem On tblcomputers.Computername =
tblComputersystem.Computername Inner Join
tblPROCESSOR On tblcomputers.Computername = tblPROCESSOR.Computername
Where Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) <> 0 And
tblComputersystem.Domainrole > 1 And tblDiskdrives.DriveType = '3'
Order By tblcomputers.ComputerUnique, Cast(Cast(dbo.tblDiskdrives.Freespace As
bigint) / 1024 / 1024 As numeric), dbo.tblDiskdrives.CaptionComputer
1 ACCEPTED SOLUTION
Hemoco
Lansweeper Alumni
This is expected behavior if you have multiple disks and/or multiple processors. There will be one line per record.

View solution in original post

3 REPLIES 3
dsnyrs
Engaged Sweeper
So is there a way to suppress these duplicates?
Hemoco
Lansweeper Alumni
dsnyrs wrote:
So is there a way to suppress these duplicates?

We recommend creating separate reports for disks and processors. Note that there will still be one line per disk/processor.
Hemoco
Lansweeper Alumni
This is expected behavior if you have multiple disks and/or multiple processors. There will be one line per record.

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now