Switch user plan
Find user by ID
Find if a user exists with their ID.
user_id
SELECT * FROM DEEPNOTE.DEMO.USERS WHERE user_id = {{ user_id }} LIMIT 100
user_idobject
signed_up_atdatetime64[ns, UTC]
0
e4fb855c6cf94c2a80830e9ea17fd4a2
2021-11-07 00:00:00+00:00
Select user ID & plan to update
Update the plan of a user with given ID.
user_id_to_update
new_plan
UPDATE DEEPNOTE.DEMO.USERS SET plan = {{ user_plan }} WHERE user_id = {{ user_id_to_update }}