COUNT on a fact table
Total inbound receipts in `fact_inbound_receipts`? Single number, alias `receipt_count`.
| Column | Type | Key |
|---|---|---|
| receipt_id | INT | PK |
| supplier_id | INT | |
| dock_door | INT | |
| dock_arrival_ts | TEXT | |
| unload_complete_ts | TEXT | |
| count_complete_ts | TEXT | |
| putaway_complete_ts | TEXT | |
| expected_units | INT | |
| actual_units | INT | |
| worker_id | INT | FK → dim_workers |
Each hint you reveal reduces the XP you can earn. Try the query first.
Aggregate over the inbound fact to return a single row count.
Single-row output.
Alias the column.