Wow, I guess I still remember SQL a little bit 😃
Any suggested modifications?
I'd really like to be able to include a 4th column that includes the "current" bios version.
How can i have this be conditional on the computer model?
SELECT TOP (100) PERCENT dbo.tblComputers.Computername, dbo.tblComputersystem.Model, dbo.tblBIOS.SMBIOSBIOSVersion AS 'Installed Bios'
FROM dbo.tblBIOS INNER JOIN
dbo.tblComputers ON dbo.tblBIOS.Computername = dbo.tblComputers.Computername INNER JOIN
dbo.tblComputersystem ON dbo.tblComputers.Computername = dbo.tblComputersystem.Computername
WHERE (SUBSTRING(dbo.tblBIOS.ReleaseDate, 1, 😎 < 20060626) AND (dbo.tblComputersystem.Model LIKE 'OptiPlex GX270') OR
(SUBSTRING(dbo.tblBIOS.ReleaseDate, 1, 😎 < 20060303) AND (dbo.tblComputersystem.Model LIKE 'Optiplex GX280') OR
(SUBSTRING(dbo.tblBIOS.ReleaseDate, 1, 😎 < 20061130) AND (dbo.tblComputersystem.Model LIKE 'Optiplex GX620') OR
(SUBSTRING(dbo.tblBIOS.ReleaseDate, 1, 😎 < 20080812) AND (dbo.tblComputersystem.Model LIKE 'Optiplex 745') OR
(SUBSTRING(dbo.tblBIOS.ReleaseDate, 1, 😎 < 20090624) AND (dbo.tblComputersystem.Model LIKE 'Optiplex 755') OR
(SUBSTRING(dbo.tblBIOS.ReleaseDate, 1, 😎 < 20090616) AND (dbo.tblComputersystem.Model LIKE 'Optiplex 760')
ORDER BY dbo.tblComputers.Computername