You're a data analyst for a chain of city cafes. Over the years, different managers have entered menu items inconsistently: some typed dish names in ALL CAPS, others used lowercase, and categories vary too. The marketing team is launching a unified digital menu and wants a consistent style: capitalize the first letter of each word in dish names, use lowercase for categories, and use uppercase for internal item codes, as in the inventory system.
Return these columns:
- item_id — the menu item ID (integer);
- dish_display — the dish name with the first letter of each word uppercase and all other letters lowercase;
- category_norm — the category in lowercase; if the category is missing (NULL), keep it as NULL;
- code_norm — the item code in uppercase.
Sort by item_id in ascending order. Return all rows, including items without a category.
item_iddish_displaycategory_normcode_normShowing the first 3 rows of the sample — the full sample comes with Premium
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in