PostgreSQL - Set Operations and Advanced Queries
What will be the output of this query?
Assuming an employee with id=1 and salary=4000 already exists.
INSERT INTO employees(id, name, salary) VALUES (1, 'Alice', 5000) ON CONFLICT (id) DO UPDATE SET salary = EXCLUDED.salary + 1000 RETURNING salary;
Assuming an employee with id=1 and salary=4000 already exists.
