Challenge: Update User Age
Task
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_dataso that the value of theagefield is increased by 1. - Only the
agefield in the JSON data should be changed; all other data must remain the same. - The update must apply to all rows in the
user_profilestable.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 6. ChapterΒ 5
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me an example?
Awesome!
Completion rate improved to 2.86
Challenge: Update User Age
Swipe to show menu
Task
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_dataso that the value of theagefield is increased by 1. - Only the
agefield in the JSON data should be changed; all other data must remain the same. - The update must apply to all rows in the
user_profilestable.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 6. ChapterΒ 5
single