‎08-20-2018 10:55 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssetCustom.Manufacturer,
tblComputersystem.Model,
tblAssetCustom.Serialnumber As [Service Tag],
tblNetworkAdapter.Manufacturer As [Network Card Manufacturer],
tblNetworkAdapter.Name As [Network Card Name],
tblNetworkAdapter.MACAddress,
tblAssets.IPAddress,
tblAssets.Username,
tblAssets.Domain,
tblAssets.Processor,
tblBaseBoard.Product As Motherboard,
tblAssets.Memory,
tblOperatingsystem.Caption As OS,
tblAssets.Lastseen,
tblAssetCustom.PurchaseDate,
tblAssetCustom.Warrantydate,
tblAntivirus.DisplayName As Antyvirus,
tblAntivirus.productUpToDate,
tblSoundDevice.Caption As [Audio Card],
tblSoundDevice.Manufacturer As [Audio Card Manufacturer],
tblDiskdrives.Caption,
tblDiskdrives.Description As Partycja,
tblDiskdrives.FileSystem,
tblDiskdrives.Freespace,
tblDiskdrives.Size As [Disk Size]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblNetworkAdapter On tblAssets.AssetID = tblNetworkAdapter.AssetID
Inner Join tblAntivirus On tblAssets.AssetID = tblAntivirus.AssetID
Inner Join tblBaseBoard On tblAssets.AssetID = tblBaseBoard.AssetID
Inner Join tblSoundDevice On tblAssets.AssetID = tblSoundDevice.AssetID
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Inner Join tblDiskPartition On tblAssets.AssetID = tblDiskPartition.AssetID
Where (tsysAssetTypes.AssetTypename = 'Windows' And tblComputersystem.Model !=
'VMware Virtual Platform' And tblAntivirus.DisplayName != 'Windows Defender'
And tblSoundDevice.Caption != 'Audio dla wyświetlaczy Intel(R)' And
tblDiskdrives.FileSystem = 'FAT' And tblAssetCustom.State = 1) Or
(tblDiskdrives.FileSystem = 'FAT32') Or
(tblDiskdrives.FileSystem = 'NTFS')
Order By tblAssets.AssetName
Solved! Go to Solution.
‎08-20-2018 03:59 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssetCustom.Manufacturer,
tblComputersystem.Model,
tblAssetCustom.Serialnumber As [Service Tag],
tblNetworkAdapter.Manufacturer As [Network Card Manufacturer],
tblNetworkAdapter.Name As [Network Card Name],
tblNetworkAdapter.MACAddress,
tblAssets.IPAddress,
tblAssets.Username,
tblAssets.Domain,
tblAssets.Processor,
tblBaseBoard.Product As Motherboard,
tblAssets.Memory,
tblOperatingsystem.Caption As OS,
tblAssets.Lastseen,
tblAssetCustom.PurchaseDate,
tblAssetCustom.Warrantydate,
tblAntivirus.DisplayName As Antyvirus,
tblAntivirus.productUpToDate,
tblSoundDevice.Caption As [Audio Card],
tblSoundDevice.Manufacturer As [Audio Card Manufacturer],
tblDiskdrives.Caption,
tblDiskdrives.Description As Partycja,
tblDiskdrives.FileSystem,
tblDiskdrives.Freespace,
tblDiskdrives.Size As [Disk Size]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblNetworkAdapter On tblAssets.AssetID = tblNetworkAdapter.AssetID
Inner Join tblAntivirus On tblAssets.AssetID = tblAntivirus.AssetID
Inner Join tblBaseBoard On tblAssets.AssetID = tblBaseBoard.AssetID
Inner Join tblSoundDevice On tblAssets.AssetID = tblSoundDevice.AssetID
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Inner Join tblDiskPartition On tblAssets.AssetID = tblDiskPartition.AssetID
Where (tsysAssetTypes.AssetTypename = 'Windows' And tblComputersystem.Model != 'VMware Virtual Platform' And tblAntivirus.DisplayName != 'Windows Defender' And tblSoundDevice.Caption != 'Audio dla wyświetlaczy Intel(R)' And tblDiskdrives.FileSystem = 'FAT' And tblAssetCustom.State = 1) Or
(tsysAssetTypes.AssetTypename = 'Windows' And tblComputersystem.Model != 'VMware Virtual Platform' And tblAntivirus.DisplayName != 'Windows Defender' And tblSoundDevice.Caption != 'Audio dla wyświetlaczy Intel(R)' And tblDiskdrives.FileSystem = 'FAT32' And tblAssetCustom.State = 1) Or
(tsysAssetTypes.AssetTypename = 'Windows' And tblComputersystem.Model != 'VMware Virtual Platform' And tblAntivirus.DisplayName != 'Windows Defender' And tblSoundDevice.Caption != 'Audio dla wyświetlaczy Intel(R)' And tblDiskdrives.FileSystem = 'NTFS' And tblAssetCustom.State = 1)
Order By tblAssets.AssetName
‎08-20-2018 04:02 PM
‎08-20-2018 03:59 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssetCustom.Manufacturer,
tblComputersystem.Model,
tblAssetCustom.Serialnumber As [Service Tag],
tblNetworkAdapter.Manufacturer As [Network Card Manufacturer],
tblNetworkAdapter.Name As [Network Card Name],
tblNetworkAdapter.MACAddress,
tblAssets.IPAddress,
tblAssets.Username,
tblAssets.Domain,
tblAssets.Processor,
tblBaseBoard.Product As Motherboard,
tblAssets.Memory,
tblOperatingsystem.Caption As OS,
tblAssets.Lastseen,
tblAssetCustom.PurchaseDate,
tblAssetCustom.Warrantydate,
tblAntivirus.DisplayName As Antyvirus,
tblAntivirus.productUpToDate,
tblSoundDevice.Caption As [Audio Card],
tblSoundDevice.Manufacturer As [Audio Card Manufacturer],
tblDiskdrives.Caption,
tblDiskdrives.Description As Partycja,
tblDiskdrives.FileSystem,
tblDiskdrives.Freespace,
tblDiskdrives.Size As [Disk Size]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblNetworkAdapter On tblAssets.AssetID = tblNetworkAdapter.AssetID
Inner Join tblAntivirus On tblAssets.AssetID = tblAntivirus.AssetID
Inner Join tblBaseBoard On tblAssets.AssetID = tblBaseBoard.AssetID
Inner Join tblSoundDevice On tblAssets.AssetID = tblSoundDevice.AssetID
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Inner Join tblDiskPartition On tblAssets.AssetID = tblDiskPartition.AssetID
Where (tsysAssetTypes.AssetTypename = 'Windows' And tblComputersystem.Model != 'VMware Virtual Platform' And tblAntivirus.DisplayName != 'Windows Defender' And tblSoundDevice.Caption != 'Audio dla wyświetlaczy Intel(R)' And tblDiskdrives.FileSystem = 'FAT' And tblAssetCustom.State = 1) Or
(tsysAssetTypes.AssetTypename = 'Windows' And tblComputersystem.Model != 'VMware Virtual Platform' And tblAntivirus.DisplayName != 'Windows Defender' And tblSoundDevice.Caption != 'Audio dla wyświetlaczy Intel(R)' And tblDiskdrives.FileSystem = 'FAT32' And tblAssetCustom.State = 1) Or
(tsysAssetTypes.AssetTypename = 'Windows' And tblComputersystem.Model != 'VMware Virtual Platform' And tblAntivirus.DisplayName != 'Windows Defender' And tblSoundDevice.Caption != 'Audio dla wyświetlaczy Intel(R)' And tblDiskdrives.FileSystem = 'NTFS' And tblAssetCustom.State = 1)
Order By tblAssets.AssetName
‎08-20-2018 03:21 PM
(Where clause 1) Or (tblDiskdrives.FileSystem = 'FAT32') Or (tblDiskdrives.FileSystem = 'NTFS')
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now