Aan de slagGa gratis aan de slag

Identifying large transactions

When customers buy a lot, you want to know why! In this exercise, you'll practice using subqueries to retrieve details about transactions with more than 10 line items.

Deze oefening maakt deel uit van de cursus

Data Manipulation in Snowflake

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

SELECT
    invoice_id,
    COUNT(invoice_id) AS total_invoice_lines
FROM store.invoiceline
GROUP BY invoice_id
-- Only pull records with more than 10 total invoice lines
HAVING ___ > 10;
Code bewerken en uitvoeren