Hi everyone, I have so much difficulty trying to understand this code. I am stuck at part 2
I don't know what to fill in and don't understand what it means for order by 2 desc, and how to get denominator and numerator. Thank you so much guys.
when 'kale-smoothie' then 'smoothie'
when 'banana-smoothie' then 'smoothie'
when 'orange-juice' then 'drink'
when 'soda' then 'drink'
when 'blt' then 'sandwich'
when 'grilled-cheese' then 'sandwich'
when 'tikka-masala' then 'dinner'
when 'chicken-parm' then 'dinner'
end as category,
/(select case name from order items)* 100,2) as pct
group by 1
order by 2 desc;