โ† Visa questions

Upsert row in employee table

Filed under Visa

The question

Write a single SQL query to insert a new row into an employee table if the primary key does not exist, or update the row if it does.

No write-up yet. Related questions below have one.

Related Visa questions

Collected from public candidate posts and coding forums. Updated Nov 2026.