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

bookChallenge: Update User Age

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 6. Chapitre 5
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Update User Age

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 6. Chapitre 5
single

single

some-alt