Star and Snow Flake Schema
Star Schema The star schema consists of one or more fact tables referencing any number of dimension tables. The star schema is an important special case of the snowflake schema, and is more effective for handling simpler queries. Fact Tables A fact table typically has two types of columns: foreign keys to dimension tables and measures those that contain numeric facts. A fact table can contain fact's data on detail or aggregated level. In the above image Date_id, Store_id, Product_id are foreign keys. Units_Sold contains numeric values. Dimension Tables The dimension tables store the textual descriptions of the dimensions (e.g., customer name, product description). Dimensions are usually based on the master files in the business, for example customer master, employee master. Snow Flake Schema In computing, a snowflake schema is a logical arrangement of tables in a multidimensional database such that the entity relation...