I have a table T1 with the following columns and rows/row data:
table T1 child_id | childOne | ChildHired | ChildProgress 1 Yes No Good 2 No No Poor 3 Yes Yes Fair
I need to use a select case condition so that only the rows which satisfy my condition appear in the result and the rows which don't fulfill the condition should not show up in my result.
When I execute:
select (case when childOne='yes' then true else false end) from T1;
The query works but the [childOne='No']
rows appear too. How can make the rows that don't satisfy a certain condition not show up in my result set?