Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Standardize Customer Names | String Functions
Functions in SQL
Sektion 1. Kapitel 2
single

single

bookChallenge: Standardize Customer Names

Stryg for at vise menuen

Opgave

Swipe to start coding

Write a SQL query against the customers table that returns each customer's name in uppercase along with its character count.

  • Select from the customers table
  • Return exactly two columns:
    • uppercase_name — the customer's name converted to uppercase using UPPER()
    • name_length — the number of characters in the original name using LENGTH()
  • Column aliases must match exactly: uppercase_name and name_length

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 1. Kapitel 2
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

some-alt