sql inline if stateme code example Example: sql query inline if case MyFlag when 1 then 'Yes' else 'No' end