Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What function would you use to count the total number of records?
Remember, it gives you the headcount of records.
What does the SUM function calculate?
Think about adding up numbers.
What function would you use to find the total number of sales transactions?
It’s used for headcounts.
The HAVING clause is used to filter records before grouping.
Associated with GROUP BY.
How would you find out which products sold the most in the last month? Provide a SQL query example.
Filter sales based on dates and group by product_id.
Draft a SQL query using a GROUP BY and HAVING clause to find out how many support tickets are open for each priority level, and show only those levels with more than 5 tickets.
Ensure to count and set a threshold for open tickets.
6 more questions in this section. Enroll free to practise them all.
Enroll free