Question
Which of the following commands is part of the
Transaction Control Language (TCL) in SQL?Solution
Transaction Control Language (TCL) commands in SQL are used to manage transactions in a database, ensuring that operations are executed reliably. COMMIT is a TCL command that finalizes a transaction, making all its changes permanent in the database. For example, in a banking application, if a transaction involves debiting one account and crediting another, the COMMIT command ensures these changes are saved only when both operations succeed. This guarantees data integrity. Without TCL commands like COMMIT, rollback mechanisms would not work effectively, and transactional integrity could be compromised. Why Other Options Are Incorrect :
- SELECT : This is a Data Query Language (DQL) command used for retrieving data, not managing transactions.
- UPDATE : This is a Data Manipulation Language (DML) command used to modify data, not a TCL command.
- ALTER : This is a Data Definition Language (DDL) command used for modifying table structures, unrelated to transactions.
- DROP : Another DDL command, used for deleting database objects, not for controlling transactions.
Tarjan’s Algorithm finds:
Which tree traversal gives nodes in non-decreasing order for a BST?
Which of the following is the primary goal of a Cross-Site Scripting (XSS) attack?
Fibonacci heaps support which operation in O(1) amortized time?
Which of the following types of software testing ensures that previously working functionality is still operational after changes?
Which of the following traversal methods is used to visit nodes in the order "left child, root, right child" in a binary tree?
Which of the following best describes the key benefit of blockchain technology in supply chain management?
What is the primary goal of the OWASP Top 10 project?
- Natural Language Processing (NLP)
In the context of sentiment analysis, which of the following NLP techniques provides the most accurate classification ...
Which of the following is a primary feature of Mobile Computing?