|
|
| What is star schema? |
|
|
|
The star schema is considered an important special case of the snowflake schema. The star schema (sometimes referenced as star join schema) is the simplest style of data warehouse schema. The star schema consists of a few "fact tables" (possibly only one, justifying the name) referencing any number of "dimension tables". Star Schema - Contents
What is Star Schema?A star schema consists of fact tables and dimension tables. Fact tables contain the quantitative or factual data about a business--the information being queried. This information is often numerical, additive measurements and can consist of many columns and millions or billions of rows. Dimension tables are usually smaller and hold descriptive data that reflects the dimensions, or attributes, of a business. SQL queries then use joins between fact and dimension tables and constraints on the data to return selected information. Star schema ModelThe "facts" that the data warehouse helps analyze are classified along different "dimensions": the fact tables hold the main data, while the usually smaller dimension tables describe each value of a dimension and can be joined to fact tables as needed. Example of star schemaConsider a database of sales, perhaps from a store chain, classified by date, store and product. The image of the schema to the right is a star schema version of the sample schema provided in the snowflake schema article.
Each dimension table has a primary key on its The following query extracts how many TV sets have been sold, for each brand and country, in 1997.
SELECT
|
| Interview Questions |
| Useful Links |
| Tutorials |
| BI Certification |








