Learn How To Use RANK with ORDER BY in SQL - Practice SQL Online - what i liked is how you can order by 2 columns, each separately.

PHOTO EMBED

Tue Jul 18 2023 00:46:10 GMT+0000 (Coordinated Universal Time)

Saved by @vnmshenoy #undefined

​SELECT
  name,
  released,
  updated,
 ROW_NUMBER() OVER(ORDER BY released DESC, updated DESC)
FROM game;
content_copyCOPY

Learn How To Use RANK with ORDER BY in SQL - Practice SQL Online - what i liked is how you can order by 2 columns, each separately. Eg say first column can be ascending and then other column say descending

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