[Solved] IF condition in select my sql query


You’ve got an extra (:

SELECT IF (
    DATE_ADD( initial_time, length_of_duration )
    <=
    CONCAT( closing_date )
    , 1, 0
)

FROM tablename

solved IF condition in select my sql query