Practice Window Functions - 19.1.3 | 19. Advanced SQL and NoSQL for Data Science | Data Science Advance
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

Window Functions

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.

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What does the ROW_NUMBER() function do?

💡 Hint: Think about how you would number items in a list.

Question 2 Easy

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

Question 1

What is a primary feature of window functions?

They aggregate data
They perform calculations without collapsing output
They join tables

💡 Hint: Remember how aggregation would work differently!

Question 2

True or False: The RANK() function can assign the same rank to multiple rows if their values are equal.

True
False

💡 Hint: Think about how ranking works in a competition.

1 more question available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

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.

Challenge 2 Hard

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.