Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Update User Age | JSON Functions
Functions in SQL

bookChallenge: Update User Age

Tarea

Swipe to start coding

Write a query to increment the age field in the profile_data JSON column by 1 for all users in the user_profiles table.

  • Update each user's profile_data so that the value of the age field is increased by 1.
  • Only the age field in the JSON data should be changed; all other data must remain the same.
  • The update must apply to all rows in the user_profiles table.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 6. Capítulo 5
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: Update User Age

Desliza para mostrar el menú

Tarea

Swipe to start coding

Write a query to increment the age field in the profile_data JSON column by 1 for all users in the user_profiles table.

  • Update each user's profile_data so that the value of the age field is increased by 1.
  • Only the age field in the JSON data should be changed; all other data must remain the same.
  • The update must apply to all rows in the user_profiles table.

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 6. Capítulo 5
single

single

some-alt