Question: select f . title, c . name, CASE WHEN c . name IN ( ' Children ' , 'Family','Sports','Animation' ) THEN 'All Ages' WHEN c
select ftitle, cname,
CASE
WHEN cname IN Children'Family','Sports','Animation'
THEN 'All Ages'
WHEN cname 'Horror'
THEN 'Adult'
WHEN cname IN Music'Games'
THEN 'Teens'
ELSE 'Other'
END forAges
from film f
inner join filmcategory fc
on ffilmid fcfilmid
inner join category c
on ccategoryid fccategoryid;
Please draw a workflow for the query and please be clear about the logic embedded in the case expression
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
