19.1.3 - Window Functions
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What does the ROW_NUMBER() function do?
💡 Hint: Think about how you would number items in a list.
Explain what a window function is.
💡 Hint: It's about looking at groups of rows.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is a primary feature of window functions?
💡 Hint: 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.
💡 Hint: Think about how ranking works in a competition.
1 more question available
Challenge Problems
Push your limits with advanced challenges
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?
💡 Hint: 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.
💡 Hint: Think about how to calculate the difference over time.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.