79395151

Date: 2025-01-28 20:54:17
Score: 0.5
Natty:
Report link

You can use the logical function GREATEST () which returns the greater of a list of numbers.

SELECT GREATEST(<COMPLICATED CODE THAT RETURNS A SINGLE INT>, 1)

https://learn.microsoft.com/en-us/sql/t-sql/functions/logical-functions-greatest-transact-sql?view=sql-server-ver16

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Travis Peterson