Check out example codes for "sql query inline if". It will help you in understanding the concepts better.

Code Example 1

case MyFlag when 1 then 'Yes' else 'No' end

Learn ReactJs, React Native from akashmittal.com