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.
Este ejercicio forma parte del curso
Data Manipulation in Snowflake
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
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;