SQL Data Analyst — Medium
Key points
- NTILE(4) divides rows into 4 groups
- RANK() assigns a rank to each row without dividing into groups
- PERCENT_RANK() calculates the relative rank of each row
- CUME_DIST() calculates the cumulative distribution of a value
Ready to go further?
Related questions
