Select Top 1000000 tblAssets.AssetID, tblAssets.AssetName, tblAssets.Domain, tsysAssetTypes.AssetTypename As AssetType, tblAssets.Username, tblAssets.Userdomain, tsysAssetTypes.AssetTypeIcon10 As icon, tblAssets.IPAddress, tblSoftwareUni.softwareName As Software, tblSoftware.softwareVersion As Version, tblSoftwareUni.SoftwarePublisher As Publisher, Case When Len(tblSoftware.softwareVersion) - Len(Replace(tblSoftware.softwareVersion, '.', '')) = 1 And tblSoftwareUni.softwareName Like '%firefox%' And tblSoftwareUni.softwareName Not Like '%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) > 97 Then 'Up to date' When Len(tblSoftware.softwareVersion) - Len(Replace(tblSoftware.softwareVersion, '.', '')) = 1 And tblSoftwareUni.softwareName Like '%firefox%' And tblSoftwareUni.softwareName Not Like '%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) = 97 And Cast(ParseName(tblSoftware.softwareVersion, 1) As bigint) >= 2 Then 'Up to date' When Len(tblSoftware.softwareVersion) - Len(Replace(tblSoftware.softwareVersion, '.', '')) = 2 And tblSoftwareUni.softwareName Like '%firefox%' And tblSoftwareUni.softwareName Not Like '%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) > 97 Then 'Up to date' When Len(tblSoftware.softwareVersion) - Len(Replace(tblSoftware.softwareVersion, '.', '')) = 2 And tblSoftwareUni.softwareName Like '%firefox%' And tblSoftwareUni.softwareName Not Like '%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) = 97 And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) > 0 Then 'Up to date' When Len(tblSoftware.softwareVersion) - Len(Replace(tblSoftware.softwareVersion, '.', '')) = 2 And tblSoftwareUni.softwareName Like '%firefox%' And tblSoftwareUni.softwareName Not Like '%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) = 97 And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) = 0 And Cast(ParseName(tblSoftware.softwareVersion, 1) As bigint) >= 2 Then 'Up to date' When tblSoftwareUni.softwareName Like '%firefox%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) > 91 Then 'Up to date' When tblSoftwareUni.softwareName Like '%firefox%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) = 91 And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) > 6 Then 'Up to date' When tblSoftwareUni.softwareName Like '%firefox%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) = 91 And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) = 6 And Cast(ParseName(tblSoftware.softwareVersion, 1) As bigint) >= 1 Then 'Up to date' Else 'Out of date' End As [Patch Status], tsysIPLocations.IPLocation, tblAssetCustom.Manufacturer, tblAssetCustom.Model, tsysOS.OSname As OS, tblAssets.SP, Case When tblErrors.ErrorText Is Not Null Or tblErrors.ErrorText != '' Then 'Scanning Error: ' + tsysasseterrortypes.ErrorMsg Else '' End As ScanningErrors, tblAssets.Lastseen, tblAssets.Lasttried, tblSoftware.Lastchanged, Case When Len(tblSoftware.softwareVersion) - Len(Replace(tblSoftware.softwareVersion, '.', '')) = 1 And tblSoftwareUni.softwareName Like '%firefox%' And tblSoftwareUni.softwareName Not Like '%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) > 97 Then '#d4f4be' When Len(tblSoftware.softwareVersion) - Len(Replace(tblSoftware.softwareVersion, '.', '')) = 1 And tblSoftwareUni.softwareName Like '%firefox%' And tblSoftwareUni.softwareName Not Like '%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) = 97 And Cast(ParseName(tblSoftware.softwareVersion, 1) As bigint) >= 2 Then '#d4f4be' When Len(tblSoftware.softwareVersion) - Len(Replace(tblSoftware.softwareVersion, '.', '')) = 2 And tblSoftwareUni.softwareName Like '%firefox%' And tblSoftwareUni.softwareName Not Like '%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) > 97 Then '#d4f4be' When Len(tblSoftware.softwareVersion) - Len(Replace(tblSoftware.softwareVersion, '.', '')) = 2 And tblSoftwareUni.softwareName Like '%firefox%' And tblSoftwareUni.softwareName Not Like '%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) = 97 And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) > 0 Then '#d4f4be' When Len(tblSoftware.softwareVersion) - Len(Replace(tblSoftware.softwareVersion, '.', '')) = 2 And tblSoftwareUni.softwareName Like '%firefox%' And tblSoftwareUni.softwareName Not Like '%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) = 97 And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) = 0 And Cast(ParseName(tblSoftware.softwareVersion, 1) As bigint) >= 2 Then '#d4f4be' When tblSoftwareUni.softwareName Like '%firefox%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) > 91 Then '#d4f4be' When tblSoftwareUni.softwareName Like '%firefox%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) = 91 And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) > 6 Then '#d4f4be' When tblSoftwareUni.softwareName Like '%firefox%esr%' And Cast(ParseName(tblSoftware.softwareVersion, 3) As bigint) = 91 And Cast(ParseName(tblSoftware.softwareVersion, 2) As bigint) = 6 And Cast(ParseName(tblSoftware.softwareVersion, 1) As bigint) >= 1 Then '#d4f4be' Else '#ffadad' End As backgroundcolor From tblAssets Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype Inner Join tsysIPLocations On tsysIPLocations.LocationID = tblAssets.LocationID Inner Join tblState On tblState.State = tblAssetCustom.State Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID Left Join tsysOS On tsysOS.OScode = tblAssets.OScode Left Join (Select Distinct Top 1000000 tblErrors.AssetID As ID, Max(tblErrors.Teller) As ErrorID From tblErrors Group By tblErrors.AssetID) As ScanningError On tblAssets.AssetID = ScanningError.ID Left Join tblErrors On ScanningError.ErrorID = tblErrors.Teller Left Join tsysasseterrortypes On tsysasseterrortypes.Errortype = tblErrors.ErrorType Where tblSoftwareUni.softwareName Like '%Mozilla%firefox%' And tblState.Statename = 'Active'
Explore the full platform, free for 14 days.
No credit card required.