Which of the following commands is a part of Transaction Control Language (TCL) in SQL? MCQ with Answer and Explanation

Which of the following commands is a part of Transaction Control Language (TCL) in SQL?
A. COMMIT
B. DELETE
C. GRANT
D. ALTER
Answer: Option A
Solution (By JKSSB Mock Tests)
COMMIT is a TCL command used to permanently save all modifications made during the current transaction into the database.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
Which SQL operator returns only the rows that are common and present in the outputs of both executing SELECT queries?
A. INTERSECT
B. UNION
C. EXCEPT / MINUS
D. JOIN

Correct Answer: Option A


Explanation:
The INTERSECT operator returns only the distinct rows that appear in the result sets of both SELECT statements.

This question belongs to: Computer Database Management System (DBMS)
Question #2
In SQL, which statement is used to create a new database?
A. CREATE SCHEMA
B. CREATE TABLE
C. NEW DATABASE
D. CREATE DATABASE

Correct Answer: Option D


Explanation:
CREATE DATABASE is used to create a new database in SQL.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which key establishes a logical relationship between two tables by referencing the primary key of another table?
A. Super Key
B. Candidate Key
C. Foreign Key
D. Alternate Key

Correct Answer: Option C


Explanation:
A Foreign Key is an attribute or collection of attributes in one table that references the primary key of another table to maintain referential integrity.

This question belongs to: Computer Database Management System (DBMS)