A user opened the note with id = 3 and tapped the pin icon. The backend should flip is_pinned to TRUE for that single row in notes. Leave the other notes alone.
id = 3
is_pinned
TRUE
notes
Sign in to see submission history
Sign in to use AI Mentor
Your query result will appear here