Hi everyone, please help to solve below issue
There is table with column date_from and date_to. date_to column is optional, so it might be null. I want to make query this column if it has value, if it is null no need to run query at all. Is there way to make query conditionally depending column value? I have tries as below but it does not work as expected.
@michaloravec i want to make query where $date greater than date_from and lower than date_to, but date_to sometimes null, in this case query should return only $date greater than date_from