01-10-2012 12:19 PM
01-10-2012 04:26 PM
01-10-2012 12:42 PM
INSERT INTO tblCompCustom (Computername)
SELECT Computername
FROM tblComputers
WHERE (Computername NOT IN (SELECT Computername FROM tblCompCustom AS tblCompCustom_1))
GO
UPDATE tblCompCustom
SET PurchaseDate = '06/26/2011'
FROM tblCompCustom INNER JOIN
tblComputersystem ON tblCompCustom.Computername = tblComputersystem.Computername
WHERE (tblComputersystem.Model LIKE 'DG41WV')
INSERT INTO tblCompCustom (Computername)
SELECT Computername
FROM tblComputers
WHERE (Computername NOT IN (SELECT Computername FROM tblCompCustom AS tblCompCustom_1))
GO
UPDATE tblCompCustom
SET Warrantydate = 'YourWarrantyDate'
FROM tblCompCustom INNER JOIN
tblComputersystem ON tblCompCustom.Computername = tblComputersystem.Computername
WHERE (tblComputersystem.Model LIKE 'DG41WV')
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now