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

bookChallenge: Update User Age

Uppgift

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.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 6. Kapitel 5
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Update User Age

Svep för att visa menyn

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 6. Kapitel 5
single

single

some-alt