Initializing SQL database...
Back to Questions
NTILE - Ranking #100
hardUse NTILE() to rank employees by salary. Advanced window functions with complex partitioning, frame specifications, or multiple window functions. Consider the order of operations and window frame boundaries.
Practice with:
Database Schema
employees
Employee information
idnamesalary
Expected Output
Click "Show" to see what the correct output should look like.Tip: Try solving it yourself first for better learning!
SQL Editor
Loading...
Press Ctrl+Enter to run query • Start typing for autocomplete