InterviewSolution
| 1. |
Explain Schema in Snowflake. |
|
Answer» The Snowflake Schema describes how data is organized in Snowflake. Schemas are basically a logical grouping of database objects (such as tables, views, etc.). Snowflake schemas consist of one fact table linked to many dimension tables, which link to other dimension tables via many-to-one relationships. A fact table (stores quantitative data for analysis) is surrounded by its associated dimensions, which are related to other dimensions, FORMING a snowflake PATTERN. Measurements and facts of a business process are contained in a Fact Table, which is a key to a Dimension Table, while attributes of measurements are stored in a Dimension Table. Snowflake offers a complete set of DDL (Data Definition Language) commands for CREATING and maintaining DATABASES and schemas. As shown in the above diagram, the snowflake schema has one fact table and two-dimension tables, each with THREE levels. Snowflake schemas can have an unlimited number of dimensions, and each dimension can have an infinite number of levels. |
|