first time poster and just looking for some guidance on writing a case statement. I'd like to pull the following from a single table
total orders by week cancelled orders by week % of orders cancelled
I did some reading on case statements, but couldn't find exactly what I was looking for. I assume the case statement would be something along the lines of
"case when order = 'cancelled' THEN count orders", but I also know that's wrong, so just looking for some assistance.
Thanks in advance!
-ET