How could I achieve the following in SQL. (I have trouble with the checking if col1
is empty, check if col2
is "confirmed"
)
select data from table1 where col1 = "true"
or (if col1
is empty, check col2 = "confirmed"
).
(the value to check for col1
and col2
are different)