The document outlines the schema for a sales database, detailing various tables including Sales, Time, Product, Store, Customer, and Employee. Each table contains fields with descriptions and data types, such as SaleID, DateKey, ProductKey, and CustomerKey. The schema is designed to track sales transactions, product details, store information, customer demographics, and employee records.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
10 views6 pages
SmartMart_DataWarehouse_Schema
The document outlines the schema for a sales database, detailing various tables including Sales, Time, Product, Store, Customer, and Employee. Each table contains fields with descriptions and data types, such as SaleID, DateKey, ProductKey, and CustomerKey. The schema is designed to track sales transactions, product details, store information, customer demographics, and employee records.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 6
Field Name Description Type
SaleID Primary Key INT
DateKey FK to DimTime INT ProductKey FK to DimProduct INT StoreKey FK to DimStore INT CustomerKey FK to DimCustomer INT EmployeeKey FK to DimEmployee INT QuantitySold Number of items sold INT TotalSalesAmount Total transaction value DECIMAL DiscountAmount Discount applied DECIMAL NetSalesAmount TotalSalesAmount - DiscountAmount DECIMAL Field Name Description Type DateKey Primary KeINT Date Actual Dat DATE Month Month INT Quarter Quarter INT Year Year INT Field Name Description Type ProductKey Primary Key INT ProductName Name of product TEXT Category Product category TEXT Brand Product brand TEXT Price Unit price DECIMAL Field Name Description Type StoreKey Primary KeINT StoreName Store nam TEXT Location Store locatTEXT Region Store regioTEXT Field Name Description Type CustomerKey Primary Key INT FirstName Customer first name TEXT LastName Customer last name TEXT Gender Gender TEXT AgeGroup Age group TEXT Field Name Description Type EmployeeKey Primary Key INT FirstName Employee first name TEXT LastName Employee last name TEXT Position Job title TEXT HireDate Hire date DATE