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

bookChallenge: Product Name Formatting

Opgave

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.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 7
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Product Name Formatting

Stryg for at vise menuen

Opgave

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 7
single

single

some-alt