A good database schema is indispensable for making data warehouses work. Get it wrong, and you’ll be in a world of hurt.