Conditional logic usable within SQL that returns different values based on conditions.
A conditional expression usable within SQL, letting you switch values based on a condition inside a SELECT or WHERE clause. It can be used not just in SELECT but inside ORDER BY too -- for example, to sort rows into a custom order by status code, something a plain sort can't express on its own.
© 2026 ITBGM