79323328

Date: 2025-01-02 09:46:11
Score: 0.5
Natty:
Report link
WITH OrderedPosts AS (
    SELECT ROW_NUMBER() OVER (ORDER BY priority DESC NULLS LAST, created_at DESC) AS index,
           id, title, ago(created_at), priority, user_id
    FROM post
)
SELECT * FROM OrderedPosts
ORDER BY priority DESC NULLS LAST, created_at DESC;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Waqas Nawaz Warraich