Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Product Name Formatting | Advanced SQL for Data Analysis
SQL for Data Analysis

bookChallenge: Product Name Formatting

Task

Swipe to start coding

  1. Select all rows from the products table.
  2. Include product_id and the original product_name in the result.
  3. Add a new column that converts product_name to uppercase using a string function.
  4. Add another new column that extracts the first 3 characters of product_name using a string function.
  5. Give both new columns clear aliases: product_name_upper and product_name_first3.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 7
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Product Name Formatting

Swipe to show menu

Task

Swipe to start coding

  1. Select all rows from the products table.
  2. Include product_id and the original product_name in the result.
  3. Add a new column that converts product_name to uppercase using a string function.
  4. Add another new column that extracts the first 3 characters of product_name using a string function.
  5. Give both new columns clear aliases: product_name_upper and product_name_first3.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 7
single

single

some-alt