Tell me how to write such a SQL query? ``` SELECT...
# exposed
b
Tell me how to write such a SQL query?
Copy code
SELECT IF(myTableColumn<2 OR myTableColumn>4, TRUE, FALSE) as myColumn FROM myTable;
t
There is not
IF
support in Exposed atm, but you can use `case-when-else`:
Copy code
case().When(MyTable.column lt 2 or (MyTable.column gt 4), booleanLiteral(true)).Else(booleanLiteral(false))
👍 1