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
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 }}