1. What does the expression NTILE(4) OVER (ORDER BY salary) do?
- Divides salaries by 4.
- Divides the sorted dataset into 4 equal-sized groups (quartiles), returning bucket numbers 1 to 4.
- Returns only the top 4 salaries.
- Groups salaries into arrays of size 4.
Hint: NTILE(N) divides rows in a partition as evenly as possible into N buckets and assigns the bucket index to each row.