A Fact Table is a central table in a data warehouse that stores quantitative data (measures) for analysis. It contains foreign keys that link to dimension tables, which provide context for the measures. Fact tables are a core component of dimensional modeling, enabling efficient querying and analysis of business processes such as sales, transactions, or inventory.
A fact table stores numerical measurements or metrics (facts) related to a specific business process. It is typically surrounded by dimension tables that provide descriptive context. For example, in a sales data warehouse, a fact table might store sales revenue, quantity sold, and profit, linked to dimensions like time, product, and customer.
Best Practices: Choose the right granularity, use surrogate keys, optimize for performance, handle sparse data, document measures, regular maintenance.