Need help in using if condition to select query

Printable View