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.
12 of 8 - 9 ÷ 3 × 16 - 17 + 6 of 4 - 15
f(x)=x+ ∣ x ∣ , then the function is:
P can complete a work in 25 days, while Q can complete the same work in 30 days. They work together for 5 days, and then P is replaced by R, who can com...
A particular sum of money, when invested at a simple interest rate, yields Rs. 3,000 as interest after 2 years. The same sum, whe...
A cone has a height of 12 cm and a base radius of 5 cm. A sphere with the same volume as the cone is constructed. What is the radius of the sphere?
Pipe ‘X’ can fill a tank in 20 hours while pipe ‘Y’ can empty it in 24 hours. They were operated alternately starting with pipe ‘X’. Find th...
A shopkeeper sold an article for Rs. 500 after offering a discount of 20%. If he earned a profit of 25%, then find the ratio of cost price to the marked...
If log₂(x) + log₄(x) + log₈(x) = 11, with x > 0, then the value of x is:
20, 247, 447, 620, ?, 885
315 people went to a park. The number of men is 25 more than the number of women and the number of adults is 15 more than the number of children. How ma...