→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎11-25-2014 09:22 PM
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Description,
tblAssets.Domain,
tblAssetGroups.AssetGroup,
tblAssetCustom.Comments
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tblAssets.Assettype = tsysAssetTypes.AssetType
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroupLink.AssetGroupID =
tblAssetGroups.AssetGroupID
Where tblAssetGroups.AssetGroup = N'Floaters' And tblAssetCustom.State = 1
Or, but it listed all software if it had Office at all. I want to report to show exactly the same list as the above report, but adding the column to show the Office version. Is that possible?
(tblSoftwareUni.softwareName Like 'Office%')
Solved! Go to Solution.
‎11-26-2014 07:59 PM
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Description,
tblAssets.Domain,
tblAssetGroups.AssetGroup,
tblAssetCustom.Comments,
msoffice.softwareName
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tblAssets.Assettype = tsysAssetTypes.AssetType
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroupLink.AssetGroupID =
tblAssetGroups.AssetGroupID
Left Join (Select tblSoftware.AssetID,
tblSoftwareUni.softwareName
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%Office%' And
(tblSoftwareUni.softwareName Not Like '%Visio%' And
tblSoftwareUni.softwareName Not Like '%Compatibility%' And
tblSoftwareUni.softwareName Not Like '%Access%' And
tblSoftwareUni.softwareName Not Like '%Validation%')) As msoffice
On msoffice.AssetID = tblAssets.AssetID
Where tblAssetGroups.AssetGroup = N'Floaters' And tblAssetCustom.State = 1
‎11-26-2014 11:34 PM
‎11-26-2014 10:08 PM
LEFT JOIN (SELECT
tblSoftware.AssetID,
tblSoftwareUni.softwareName
FROM
tblSoftware
INNER JOIN tblSoftwareUni ON tblSoftwareUni.SoftID = tblSoftware.softID
WHERE
tblSoftwareUni.softwareName LIKE 'LibreOffice%'
OR tblSoftwareUni.softwareName LIKE 'OpenOffice%'
OR (tblSoftwareUni.softwareName LIKE '%Corel%' AND tblSoftwareUni.softwareName LIKE '%Office%')
OR (tblSoftwareUni.softwareName LIKE 'Microsoft Office%'
AND ( tblSoftwareUni.softwareName NOT LIKE '%Visio%'
AND tblSoftwareUni.softwareName NOT LIKE '%Compatibility%'
AND tblSoftwareUni.softwareName NOT LIKE '%Access%'
AND tblSoftwareUni.softwareName NOT LIKE '%Validation%'
AND tblSoftwareUni.softwareName NOT LIKE '%Add-In%'
AND tblSoftwareUni.softwareName NOT LIKE '%Visual Studio%'
AND tblSoftwareUni.softwareName NOT LIKE '%Time Zone%'
AND tblSoftwareUni.softwareName NOT LIKE '%Viewer%'
AND tblSoftwareUni.softwareName NOT LIKE '%Project%'
AND tblSoftwareUni.softwareName NOT LIKE '%Assemblies%'
AND tblSoftwareUni.softwareName NOT LIKE '%Meeting%'
AND tblSoftwareUni.softwareName NOT LIKE '%Web Components%'
)
)
) AS msoffice ON msoffice.AssetID = tblAssets.AssetID
AND tblAssets.AssetType = -1
SELECT Top 1000000 *
FROM tsysAssetTypes
AND tblAssets.AssetType IN (-1, 22, 13)
‎11-26-2014 07:59 PM
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Description,
tblAssets.Domain,
tblAssetGroups.AssetGroup,
tblAssetCustom.Comments,
msoffice.softwareName
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tblAssets.Assettype = tsysAssetTypes.AssetType
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroupLink.AssetGroupID =
tblAssetGroups.AssetGroupID
Left Join (Select tblSoftware.AssetID,
tblSoftwareUni.softwareName
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%Office%' And
(tblSoftwareUni.softwareName Not Like '%Visio%' And
tblSoftwareUni.softwareName Not Like '%Compatibility%' And
tblSoftwareUni.softwareName Not Like '%Access%' And
tblSoftwareUni.softwareName Not Like '%Validation%')) As msoffice
On msoffice.AssetID = tblAssets.AssetID
Where tblAssetGroups.AssetGroup = N'Floaters' And tblAssetCustom.State = 1
‎11-25-2014 10:56 PM
SELECT
Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Description,
tblAssets.Domain,
tblAssetGroups.AssetGroup,
tblAssetCustom.Comments
FROM
tblAssets
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tblAssets.Assettype = tsysAssetTypes.AssetType
INNER JOIN tblAssetGroupLink ON tblAssets.AssetID = tblAssetGroupLink.AssetID
INNER JOIN tblAssetGroups ON tblAssetGroupLink.AssetGroupID = tblAssetGroups.AssetGroupID
LEFT JOIN ( SELECT
tblSoftware.AssetID,
tblSoftwareUni.SoftwareName
FROM
tblSoftware
INNER JOIN tblSoftwareUni ON tblSoftwareUni.SoftID = tblSoftware.SoftID
WHERE
tblSoftwareUni.SoftwarePublisher LIKE '%microsoft%'
AND (tblSoftwareUni.softwareName LIKE '%Office 2000%'
OR tblSoftwareUni.softwareName LIKE '%Office Standard%'
OR tblSoftwareUni.softwareName LIKE '%Office Professional%'
OR tblSoftwareUni.softwareName LIKE '%Office Home & Student%'
OR tblSoftwareUni.softwareName LIKE '%Office Home & Business%')
) AS msoffice ON msoffice.AssetID=tblAssets.AssetID
WHERE
tblAssetGroups.AssetGroup = N'Floaters'
AND tblAssetCustom.State = 1
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now