Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Clean Up City Names | String Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL

bookChallenge: Clean Up City Names

Завдання

Swipe to start coding

Practice using string functions to clean up city names in the customers table. Your goal is to remove any leading or trailing spaces from each city name and ensure the first letter is uppercase while the remaining letters are lowercase.

  • Use the TRIM function to remove any leading or trailing spaces from the city column.
  • Use string functions to capitalize only the first letter of the city name.
  • Convert the rest of the city name to lowercase.
  • Return the columns id, name, email, and the cleaned-up city name as cleaned_city.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 6
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

Can you explain this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: Clean Up City Names

Свайпніть щоб показати меню

Завдання

Swipe to start coding

Practice using string functions to clean up city names in the customers table. Your goal is to remove any leading or trailing spaces from each city name and ensure the first letter is uppercase while the remaining letters are lowercase.

  • Use the TRIM function to remove any leading or trailing spaces from the city column.
  • Use string functions to capitalize only the first letter of the city name.
  • Convert the rest of the city name to lowercase.
  • Return the columns id, name, email, and the cleaned-up city name as cleaned_city.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 6
single

single

some-alt