Data Modification interview questions

18 real Data Modification questions from the SQL bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is INSERT?

Junior
  1. A.a statement that adds one or more new rows of data into a table
  2. B.a statement that modifies the values of existing rows, typically restricted by a WHERE clause to avoid changing every row
  3. C.a Postgres feature that makes a modifying statement output the affected rows, commonly used to fetch a server-generated key right after an insert
  4. D.an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.INSERT — a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters
  2. B.INSERT — a Postgres feature that makes a modifying statement output the affected rows, commonly used to fetch a server-generated key right after an insert
  3. C.INSERT — a statement that adds one or more new rows of data into a table
  4. D.INSERT — an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL
Reveal the answer + AI explanation — free account

4. What is UPDATE?

Junior
  1. A.a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters
  2. B.a statement that modifies the values of existing rows, typically restricted by a WHERE clause to avoid changing every row
  3. C.an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL
  4. D.a Postgres feature that makes a modifying statement output the affected rows, commonly used to fetch a server-generated key right after an insert
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.UPDATE — a DDL statement that removes all rows from a table almost instantly without logging individual deletions, cannot be easily rolled back in many engines, and resets the identity sequence
  2. B.UPDATE — a Postgres feature that makes a modifying statement output the affected rows, commonly used to fetch a server-generated key right after an insert
  3. C.UPDATE — an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL
  4. D.UPDATE — a statement that modifies the values of existing rows, typically restricted by a WHERE clause to avoid changing every row
Reveal the answer + AI explanation — free account

7. What is DELETE?

Junior
  1. A.a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters
  2. B.a DDL statement that removes all rows from a table almost instantly without logging individual deletions, cannot be easily rolled back in many engines, and resets the identity sequence
  3. C.a statement that adds one or more new rows of data into a table
  4. D.a Postgres feature that makes a modifying statement output the affected rows, commonly used to fetch a server-generated key right after an insert
Reveal the answer + AI explanation — free account

8. Which term means: "a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters"?

Junior
  1. A.RETURNING clause
  2. B.DELETE
  3. C.UPDATE
  4. D.INSERT
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.DELETE — an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL
  2. B.DELETE — a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters
  3. C.DELETE — a statement that modifies the values of existing rows, typically restricted by a WHERE clause to avoid changing every row
  4. D.DELETE — a statement that adds one or more new rows of data into a table
Reveal the answer + AI explanation — free account

10. What is UPSERT?

Mid
  1. A.a statement that modifies the values of existing rows, typically restricted by a WHERE clause to avoid changing every row
  2. B.an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL
  3. C.a DDL statement that removes all rows from a table almost instantly without logging individual deletions, cannot be easily rolled back in many engines, and resets the identity sequence
  4. D.a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters
Reveal the answer + AI explanation — free account

11. Which term means: "an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL"?

Mid
  1. A.TRUNCATE
  2. B.DELETE
  3. C.INSERT
  4. D.UPSERT
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.UPSERT — a statement that modifies the values of existing rows, typically restricted by a WHERE clause to avoid changing every row
  2. B.UPSERT — a Postgres feature that makes a modifying statement output the affected rows, commonly used to fetch a server-generated key right after an insert
  3. C.UPSERT — an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL
  4. D.UPSERT — a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters
Reveal the answer + AI explanation — free account

13. What is TRUNCATE?

Mid
  1. A.a Postgres feature that makes a modifying statement output the affected rows, commonly used to fetch a server-generated key right after an insert
  2. B.a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters
  3. C.an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL
  4. D.a DDL statement that removes all rows from a table almost instantly without logging individual deletions, cannot be easily rolled back in many engines, and resets the identity sequence
Reveal the answer + AI explanation — free account

14. Which term means: "a DDL statement that removes all rows from a table almost instantly without logging individual deletions, cannot be easily rolled back in many engines, and resets the identity sequence"?

Mid
  1. A.UPDATE
  2. B.INSERT
  3. C.UPSERT
  4. D.TRUNCATE
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.TRUNCATE — a statement that modifies the values of existing rows, typically restricted by a WHERE clause to avoid changing every row
  2. B.TRUNCATE — a DDL statement that removes all rows from a table almost instantly without logging individual deletions, cannot be easily rolled back in many engines, and resets the identity sequence
  3. C.TRUNCATE — an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL
  4. D.TRUNCATE — a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters
Reveal the answer + AI explanation — free account

16. What is RETURNING clause?

Senior
  1. A.a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters
  2. B.a Postgres feature that makes a modifying statement output the affected rows, commonly used to fetch a server-generated key right after an insert
  3. C.a DDL statement that removes all rows from a table almost instantly without logging individual deletions, cannot be easily rolled back in many engines, and resets the identity sequence
  4. D.an operation that inserts a row or, when it would violate a unique key, updates the existing row instead, written as INSERT ... ON CONFLICT in Postgres or MERGE in standard SQL
Reveal the answer + AI explanation — free account

17. Which term means: "a Postgres feature that makes a modifying statement output the affected rows, commonly used to fetch a server-generated key right after an insert"?

Senior
  1. A.UPDATE
  2. B.UPSERT
  3. C.RETURNING clause
  4. D.INSERT
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.RETURNING clause — a DDL statement that removes all rows from a table almost instantly without logging individual deletions, cannot be easily rolled back in many engines, and resets the identity sequence
  2. B.RETURNING clause — a row-by-row data statement that removes selected rows, can be filtered by WHERE, is fully transactional, and does not reset identity counters
  3. C.RETURNING clause — a Postgres feature that makes a modifying statement output the affected rows, commonly used to fetch a server-generated key right after an insert
  4. D.RETURNING clause — a statement that adds one or more new rows of data into a table
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Data Modification free