Chapter Eight – Big Data, Data Warehouses and Business Intelligence Systems
Page 46 of 62
INSERT INTO [PROPERTY] VALUES(
4, ‘Lake View Apts’, ‘Redmond’, ‘WA’, ‘98052′);
INSERT INTO [PROPERTY] VALUES(
/***** SERVICE **************************************************************/
— 5/5/2017 => 42860, etc, see above
INSERT INTO SERVICE_HOURS VALUES(42860, 1, 1, 4.50);
INSERT INTO SERVICE_HOURS VALUES(42863, 3, 3, 4.50);
INSERT INTO SERVICE_HOURS VALUES(42863, 2, 2, 2.75);
INSERT INTO SERVICE_HOURS VALUES(42865, 6, 5, 2.50);
INSERT INTO SERVICE_HOURS VALUES(42891,1, 1, 4.50);
INSERT INTO SERVICE_HOURS VALUES(42894,3, 1, 4.50);
/****************************************************************************************
/
F. Populate the GG-DW database, using the SQL statements you wrote to answer part E.
This is self-explanatory, just run the script.
G. Write an SQL query similar to the one shown in the text on page 497 (should be page
499) that uses the hours worked per day as the measure.