Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Update User Age | Section
Functions in SQL
Sectionย 1. Chapterย 35
single

single

bookChallenge: 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_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 desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Sectionย 1. Chapterย 35
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt