Instruction
You did well! Let's do one more exercise of this kind.
Exercise
Let's create a report that will divide all products into vegetarian and non-vegetarian categories. For each product, show the following columns:
ProductNameCategoryNameDietType:N'Non-vegetarian'for products from the categoriesN'Meat/Poultry'andN'Seafood'.N'Vegetarian'for any other category.
Stuck? Here's a hint!
You will need to join the Categories and Products tables.
Here's an example of using CASE WHEN (from the previous exercise):
CASE WHEN Country IN (N'Germany', N'Switzerland', N'Austria') THEN N'German' WHEN Country IN (N'UK', N'Canada', N'USA', N'Ireland') THEN N'English' ELSE N'Other' END AS Language




