I want to write a sql query for the following excel-query. What should be the appropriate query?
IF
(
    (project. PA_SUBMIT_DATE )-(project. PA_AGREED_SUBMIT_DATE) 
    >=0;
    "YES";
    "NO"
)
i.e Date difference should be greater than or equal to zero. If so return yes else no.Please help me here.
 
     
     
    