if else statement in query

Printable View