PostgreSQL - Set Operations and Advanced Queries
Given the table
Assuming a row with username 'alice' and score 5 already exists.
users(id SERIAL PRIMARY KEY, username TEXT UNIQUE, score INT), what will be the result of this query?INSERT INTO users (username, score) VALUES ('alice', 10) ON CONFLICT (username) DO UPDATE SET score = users.score + EXCLUDED.score RETURNING *;Assuming a row with username 'alice' and score 5 already exists.
