Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What does the ROW_NUMBER() function do?
Think about how you would number items in a list.
Explain what a window function is.
It's about looking at groups of rows.
What is a primary feature of window functions?
Remember how aggregation would work differently!
True or False: The RANK() function can assign the same rank to multiple rows if their values are equal.
Think about how ranking works in a competition.
Create a SQL statement that retrieves employee names and their salaries, ranked within their departments, using the RANK() function. How would you ensure departments with no employees are included?
Consider how joins and window functions work together.
Analyze a dataset of sales over the last year. Write a query using LAG() to find out the month-over-month percentage change in sales.
Think about how to calculate the difference over time.
5 more questions in this section. Enroll free to practise them all.
Enroll free