→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎10-13-2010 02:01 AM
SELECT TOP 100 PERCENT Query.Model, max(Query.SMBIOSBIOSVersion) LatestRev, Max(Query.ReleaseDate) MaxReleaseDate FROM ((SELECT tblBIOS.ReleaseDate, tblBIOS.SMBIOSBIOSVersion, tblComputersystem.Model FROM tblComputersystem INNER JOIN tblComputers ON tblComputers.Computername = tblComputersystem.Computername INNER JOIN tblBIOS ON tblComputers.Computername = tblBIOS.Computername)) Query GROUP BY Query.Model ORDER BY Query.Model
Select Top 1000000 tblcomputers.Computername, tblcomputers.ComputerUnique, dbo.tblComputersystem.Model, dbo.tblBIOS.SMBIOSBIOSVersion As InstalledBIOS, dbo.web30repMaxBiosVersion.LatestRev As LatestBIOS, dbo.tblBIOS.Lastchanged From dbo.tblBIOS Inner Join dbo.tblComputersystem On dbo.tblBIOS.Computername = dbo.tblComputersystem.Computername Inner Join dbo.web30repMaxBiosVersion On dbo.tblComputersystem.Model = dbo.web30repMaxBiosVersion.Model And dbo.tblBIOS.ReleaseDate < dbo.web30repMaxBiosVersion.MaxReleaseDate Inner Join tblcomputers On tblcomputers.Computername = dbo.tblBIOS.Computername And tblcomputers.Computername = dbo.tblComputersystem.Computername
‎10-13-2010 11:25 AM
Select Top 1000000 tblcomputers.Computername, tblcomputers.ComputerUnique, dbo.tblComputersystem.Model, dbo.tblBIOS.SMBIOSBIOSVersion As InstalledBIOS, MaxBios.LatestRev As LatestBIOS, dbo.tblBIOS.Lastchanged From dbo.tblBIOS Inner Join dbo.tblComputersystem On dbo.tblBIOS.Computername = dbo.tblComputersystem.Computername Inner Join (Select Query.Model, Max(Query.SMBIOSBIOSVersion) LatestRev, Max(Query.ReleaseDate) MaxReleaseDate From ((Select tblBIOS.ReleaseDate, tblBIOS.SMBIOSBIOSVersion, tblComputersystem.Model From tblComputersystem Inner Join tblComputers On tblComputers.Computername = tblComputersystem.Computername Inner Join tblBIOS On tblComputers.Computername = tblBIOS.Computername)) Query Group By Query.Model) MaxBios On dbo.tblComputersystem.Model = MaxBios.Model And dbo.tblBIOS.ReleaseDate < MaxBios.MaxReleaseDate Inner Join tblcomputers On tblcomputers.Computername = dbo.tblBIOS.Computername And tblcomputers.Computername = dbo.tblComputersystem.Computername Where dbo.tblBIOS.SMBIOSBIOSVersion <> MaxBios.LatestRev Order By dbo.tblComputersystem.Model, tblcomputers.ComputerUnique
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now