Implementing a SQL Data Warehouse