QUERY function
QUERY runs a short text query over a range. Column A in the query is the first column of that range, and string matches are case-sensitive.
These drills stay inside select, where, group by, order by, and limit, with sum, avg, count, min, and max. The practice grid calculates that subset locally. It does not send the range to Google.
These drills are graded by calculating the formula in the practice grid.
Drills
- PremiumQUERY two columnsPractice Google Sheets QUERY select to return the product and units columns, including the header row.
- PremiumQUERY the East rowsPractice a Google Sheets QUERY where clause that keeps East rows. Text inside the query is case-sensitive.
- PremiumQUERY the highest unitsPractice Google Sheets QUERY order by to sort products by units descending while the header stays on top.
- PremiumQUERY a total by productPractice Google Sheets QUERY group by to sum units for each product. The total column is labeled sum Units.
- PremiumQUERY the top two productsPractice Google Sheets QUERY limit after order by so only the two highest unit counts are returned.
- PremiumSummarize a pipeline with QUERYPractice a Google Sheets pipeline summary: QUERY groups stages and sums the amount in each stage.