ORDER BY DESC with LIMIT
Pull the top 10 invoices by `invoice_amount` from `fact_invoices` — descending. Show invoice_id, supplier_id, invoice_date, invoice_amount.
| Column | Type | Key |
|---|---|---|
| invoice_id | INT | PK |
| po_id | INT | FK → fact_purchase_orders |
| supplier_id | INT | FK → dim_suppliers |
| invoice_date | TEXT | |
| invoice_amount | REAL | |
| po_amount | REAL | |
| payment_date | TEXT |
Each hint you reveal reduces the XP you can earn. Try the query first.
Sort the table by amount before capping the result set.
LIMIT 10.
Project the four columns specified.