how to write a select query with condition ?

Printable View