Improve Your Skills By Learning About Ranking and ORDER BY - Online Course

PHOTO EMBED

Tue Jul 18 2023 04:59:35 GMT+0000 (Coordinated Universal Time)

Saved by @vnmshenoy #undefined

​SELECT
  name,
  genre,
  RANK() OVER (ORDER BY size)
FROM game
ORDER BY released desc;
content_copyCOPY

order by inside the ranking functions like RANK(), DENSE_RANK() is independent of Order by in query

https://learnsql.com/course/window-functions/rank-functions/ranking-functions/order-by-vs-over