How do you use surrogate keys and natural keys in a snowflake schema?
Snowflake schema is a type of dimensional modeling that organizes data into facts and dimensions. Facts are numerical measures of business events, while dimensions are descriptive attributes that provide context and analysis. In a snowflake schema, each dimension can have multiple levels of hierarchy, which are stored in separate tables that are linked by foreign keys. This reduces redundancy and improves query performance, but also adds complexity and requires more joins.