Which are DML statements? (Choose all that apply)

  1. COMMIT

  2. MERGE

  3. UPDATE

  4. DELETE

  5. CREATE

  6. DROP


Correct Option: A,B,C,D

AI Explanation

To answer this question, you need to understand the concept of Data Manipulation Language (DML). DML statements are used to manipulate the data stored in the database. Let's go through each option to understand why it is correct or incorrect:

Option A) COMMIT - This option is a DML statement. It is used to save the changes made to the database since the last COMMIT or ROLLBACK statement.

Option B) MERGE - This option is a DML statement. It is used to perform insert, update, or delete operations on a target table based on the results of a join with a source table.

Option C) UPDATE - This option is a DML statement. It is used to modify existing records in a table.

Option D) DELETE - This option is a DML statement. It is used to delete existing records from a table.

Option E) CREATE - This option is not a DML statement. CREATE statements are part of the Data Definition Language (DDL) and are used to create database objects such as tables, indexes, and views.

Option F) DROP - This option is not a DML statement. DROP statements are part of the DDL and are used to remove database objects such as tables, indexes, and views.

The correct answers are A, B, C, and D. These options are correct because they are DML statements used for manipulating data in the database.

Find more quizzes: