Procurement & Sourcing Analytics · Mission 5 of 30Starter

Top 10 invoices by amount

ORDER BY DESC with LIMIT

The Brief

Priya MehtaAP Managerprocurement-ops

Pull the top 10 invoices by `invoice_amount` from `fact_invoices` — descending. Show invoice_id, supplier_id, invoice_date, invoice_amount.

You'll practice

LIMITORDER BY

Tables & columns available

fact_invoicesfact7 columns
ColumnTypeKey
invoice_idINTPK
po_idINTFK → fact_purchase_orders
supplier_idINTFK → dim_suppliers
invoice_dateTEXT
invoice_amountREAL
po_amountREAL
payment_dateTEXT

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

Sort the table by amount before capping the result set.

Hint 2

LIMIT 10.

Hint 3

Project the four columns specified.