--Task 1
INSERT INTO GPRA_Totals (DateLoaded) VALUES (?)
--Task 2
UPDATE GPRA_Totals
SET ActiveClinicalPopDen = (SELECT COUNT(*) FROM vw_GPRA_ActiveClinicalPopulationDenominator)
WHERE DateLoaded = ?
--Task 3
UPDATE GPRA_Totals
SET Total2 = (SELECT COUNT(*) FROM vw_GPRA_whatever)
WHERE DateLoaded = ?
...
|