‎12-02-2015 09:46 PM
1. Internet Explorer 4721
2. Firefox 275
3. Chrome 74
4. Opera 12
Select Top 1000000 tblSoftwareUni.softwareName As Software,
Count(tblSoftwareUni.softwareName) As Count
From tblSoftware
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Where (tblSoftwareUni.SoftwarePublisher Like '%Microsoft%') Or
(tblSoftwareUni.SoftwarePublisher Like '%Mozilla%') Or
(tblSoftwareUni.SoftwarePublisher Like '%Google%')
Group By tblSoftwareUni.softwareName
Having (tblSoftwareUni.softwareName Like '%Windows Internet Explorer%') Or
(tblSoftwareUni.softwareName Like '%Firefox%') Or
(tblSoftwareUni.softwareName Like '%Chrome')
Order By Count Desc
Solved! Go to Solution.
‎12-04-2015 02:17 PM
Select Top 1000000 Case
When tblSoftwareUni.softwareName Like 'windows internet explorer%'
Then 'Internet Explorer'
When tblSoftwareUni.softwareName Like 'mozilla firefox %.%' Then 'Firefox'
When tblSoftwareUni.softwareName Like 'google chrome%' Then 'Chrome'
When tblSoftwareUni.softwareName Like 'opera%' Then 'Opera'
Else tblSoftwareUni.softwareName End As Browser,
Count(tblSoftware.SoftwareID) As Count
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Inner Join tblAssetCustom On tblAssetCustom.AssetID = tblSoftware.AssetID
Where (tblSoftwareUni.softwareName Like 'windows internet explorer%' And
tblSoftwareUni.softwareName Not Like '%administration kit%' And
tblAssetCustom.State = 1) Or
(tblSoftwareUni.softwareName Like 'mozilla firefox %.%' And
tblAssetCustom.State = 1) Or
(tblSoftwareUni.softwareName Like 'google chrome%' And tblAssetCustom.State =
1) Or
(tblSoftwareUni.softwareName Like 'opera%' And tblAssetCustom.State = 1)
Group By Case
When tblSoftwareUni.softwareName Like 'windows internet explorer%'
Then 'Internet Explorer'
When tblSoftwareUni.softwareName Like 'mozilla firefox %.%' Then 'Firefox'
When tblSoftwareUni.softwareName Like 'google chrome%' Then 'Chrome'
When tblSoftwareUni.softwareName Like 'opera%' Then 'Opera'
Else tblSoftwareUni.softwareName End
Order By Count Desc
‎12-04-2015 02:17 PM
Select Top 1000000 Case
When tblSoftwareUni.softwareName Like 'windows internet explorer%'
Then 'Internet Explorer'
When tblSoftwareUni.softwareName Like 'mozilla firefox %.%' Then 'Firefox'
When tblSoftwareUni.softwareName Like 'google chrome%' Then 'Chrome'
When tblSoftwareUni.softwareName Like 'opera%' Then 'Opera'
Else tblSoftwareUni.softwareName End As Browser,
Count(tblSoftware.SoftwareID) As Count
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Inner Join tblAssetCustom On tblAssetCustom.AssetID = tblSoftware.AssetID
Where (tblSoftwareUni.softwareName Like 'windows internet explorer%' And
tblSoftwareUni.softwareName Not Like '%administration kit%' And
tblAssetCustom.State = 1) Or
(tblSoftwareUni.softwareName Like 'mozilla firefox %.%' And
tblAssetCustom.State = 1) Or
(tblSoftwareUni.softwareName Like 'google chrome%' And tblAssetCustom.State =
1) Or
(tblSoftwareUni.softwareName Like 'opera%' And tblAssetCustom.State = 1)
Group By Case
When tblSoftwareUni.softwareName Like 'windows internet explorer%'
Then 'Internet Explorer'
When tblSoftwareUni.softwareName Like 'mozilla firefox %.%' Then 'Firefox'
When tblSoftwareUni.softwareName Like 'google chrome%' Then 'Chrome'
When tblSoftwareUni.softwareName Like 'opera%' Then 'Opera'
Else tblSoftwareUni.softwareName End
Order By Count Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now