IF function is a simplified alternative to the CASE expression for handling conditional logic.
Syntax
Parameters
Return type
TheIF function returns the same data type as the <then> and <else> parameters.
Example
The following example classifies each level in thelevels table as 'Hard' when its maxpoints score threshold is 100 or above, and 'Easy' otherwise:
Rows: 10Execution time: 6.00ms