79714608

Date: 2025-07-25 10:59:11
Score: 1
Natty:
Report link

Your SQL query has a syntax error in the CASE expression — specifically in this line:

WHEN IN ('Value1', 'Value2') THEN 'Result1 or 2'

WHEN IN (...) is not valid syntax in SQL. You cannot use IN directly after WHEN.

Instead, you must use:

WHEN Description IN ('Value1', 'Value2') THEN ...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arnab Maity