Relative Content

Tag Archive for sqlcase

SQL – When using a WHEN THEN ELSE statement, how can I remove the ELSE rows?

I have 3 conditions that I am looking for approval dates, all accounted for in WHEN THEN statements. I use the ELSE at the end of this because I know there are some that have not been approved yet and name them ‘N/A’ instead of the date. When I export this list I only want the 3 conditions of the approval dates and not those N/A ones. How can I remove those ELSE results or is there a better way to do this?