→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎08-28-2013 07:36 PM
Solved! Go to Solution.
‎08-29-2013 04:08 PM
afinetycon wrote:
if you could have it in a seperate column not another row
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssets.NrProcessors,
tblAssets.Processor,
tblAssets.Memory,
Convert(nvarchar,tblBIOS.ReleaseDate,101) As BIOSrelease,
Convert(Decimal(7,2),SubQuery1.Sum / 1024 / 1024 / 1024) As TotalDiskSizeGB,
tblAssets.Firstseen,
tblAssets.Lastseen,
SubQuery2.Caption As USBprinter,
SubQuery2.Portname,
SubQuery2.Lastchanged
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblBIOS On tblAssets.AssetID = tblBIOS.AssetID
Inner Join (Select tblFloppy.AssetID,
Sum(tblFloppy.Size) As Sum
From tblFloppy
Group By tblFloppy.AssetID) SubQuery1 On SubQuery1.AssetID = tblAssets.AssetID
Left Join (Select tblPrinters.AssetID,
tblPrinters.Caption,
tblPrinters.Portname,
tblPrinters.Lastchanged
From tblPrinters
Where tblPrinters.Portname Like '%USB%') SubQuery2 On SubQuery2.AssetID =
tblAssets.AssetID
Where tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName,
USBprinter
‎08-29-2013 07:34 PM
‎08-29-2013 04:08 PM
afinetycon wrote:
if you could have it in a seperate column not another row
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssets.NrProcessors,
tblAssets.Processor,
tblAssets.Memory,
Convert(nvarchar,tblBIOS.ReleaseDate,101) As BIOSrelease,
Convert(Decimal(7,2),SubQuery1.Sum / 1024 / 1024 / 1024) As TotalDiskSizeGB,
tblAssets.Firstseen,
tblAssets.Lastseen,
SubQuery2.Caption As USBprinter,
SubQuery2.Portname,
SubQuery2.Lastchanged
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblBIOS On tblAssets.AssetID = tblBIOS.AssetID
Inner Join (Select tblFloppy.AssetID,
Sum(tblFloppy.Size) As Sum
From tblFloppy
Group By tblFloppy.AssetID) SubQuery1 On SubQuery1.AssetID = tblAssets.AssetID
Left Join (Select tblPrinters.AssetID,
tblPrinters.Caption,
tblPrinters.Portname,
tblPrinters.Lastchanged
From tblPrinters
Where tblPrinters.Portname Like '%USB%') SubQuery2 On SubQuery2.AssetID =
tblAssets.AssetID
Where tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName,
USBprinter
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now