79093960

Date: 2024-10-16 12:14:50
Score: 0.5
Natty:
Report link

Use ,

SELECT UserID,
       UserName,
       UserScore,
       MAX(UserScore) OVER () AS ScoreMax
FROM Users
WHERE UserScore > 30 
ORDER BY UserScore

See example


I recommend reading Window Function Concepts and Syntax

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Ergest Basha