Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Clean Up City Names | String Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL

bookChallenge: Clean Up City Names

Tarea

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.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 6
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookChallenge: Clean Up City Names

Desliza para mostrar el menú

Tarea

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 6
single

single

some-alt