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.
If a sum of money is to be divided among A, B, C such that A’s share is equal to thrice B’s share and B’s share is 8 times C’s share then their ...
Amit and Bhanu put Rs. 14,400 and Rs. 19,200, respectively, into a startup. After 4 months, Chinu joined them with an investment of Rs. 10,800. If by th...
If a sum of money is to be divided among A, B, C such that A’s share is equal to twice B’s share and B’s share is 8 times C’s share then their s...
Paras and Punit started a business by investing Rs. 18,000 and Rs. 24,000 respectively. Paras also worked as the active manager and for that he is enti...
‘A’ started a business by investing Rs. 2000. Three months later, ‘B’ joined by investing Rs. ‘x’. If at the end of the year ‘B’ receive...
- X and Y opened a joint venture by investing Rs. 1200 and Rs. ‘k’ respectively. Y left the business after 6 months. If X got Rs. 5400 from the total pro...
'Pawan' and 'Qureshi' initiated a business venture with investments in the ratio of 2:3, respectively. After 8 months, 'Rita' became a partner in the bu...
The contributions made by A and B are in the ratio of 6:5. If 12% of total profit is donated and A gets 1320 as his share of profit, what is the total p...
P and Q invested in a partnership with Rs.400 and Rs.700 respectively. After 4 months Q added Rs. 'x' more. If at the end of the year profit share of P ...
Makhan Lal started a business with the capital investing Rs 18,400. After 6 months Arvind Lal invested Rs 16200. At the end of one year they made a prof...