You can number rows in #SQL with
ROW_NUMBER => unique, consecutive numbers
DENSE_RANK => ties have same rank, consecutive ranks
RANK => ties have same rank, rank after ties = row number => gaps
Jess Ramos shows these in action and lists common use cases
buff.ly/pHiiY53
⚡Free 5-Day Data Career Kickstart https://www.bigdataenergycourses.com/kickstart
If you're preparing for a data interview, you need to know the difference between ROW_NUMBER, RANK, and DENSE_RANK —…