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.
This exercise is part of the course
Data Manipulation in Snowflake
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
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;