{"id":3184,"date":"2025-07-07T14:01:21","date_gmt":"2025-07-07T14:01:21","guid":{"rendered":"https:\/\/diznr.com\/?p=3184"},"modified":"2025-07-07T14:01:21","modified_gmt":"2025-07-07T14:01:21","slug":"gate-cseit-database-transaction-in-database-with-introduction-basic","status":"publish","type":"post","link":"https:\/\/www.reilsolar.com\/pdf\/gate-cseit-database-transaction-in-database-with-introduction-basic\/","title":{"rendered":"GATE CSEIT\/Database\/ Transaction in Database ( With basic introduction)."},"content":{"rendered":"<p>GATE CSEIT\/Database\/. Transaction in Database ( With basic introduction).<\/p>\n<p>[fvplayer id=&#8221;290&#8243;]<\/p>\n<h3 class=\"\" data-start=\"0\" data-end=\"58\"><strong data-start=\"4\" data-end=\"56\">Transaction in Database Management System (DBMS)<\/strong><\/h3>\n<h4 class=\"\" data-start=\"60\" data-end=\"99\"><strong data-start=\"65\" data-end=\"97\">Introduction to Transactions<\/strong><\/h4>\n<p class=\"\" data-start=\"100\" data-end=\"357\">A <strong data-start=\"102\" data-end=\"117\">transaction<\/strong> in a Database Management System (DBMS) is a sequence of one or more database operations that are executed as a single logical unit of work. Transactions are used to maintain <strong data-start=\"292\" data-end=\"340\">data integrity, consistency, and reliability<\/strong> in a database.<\/p>\n<p class=\"\" data-start=\"359\" data-end=\"469\">For example, in a banking system, transferring money from one account to another involves multiple operations:<\/p>\n<ol data-start=\"470\" data-end=\"534\">\n<li class=\"\" data-start=\"470\" data-end=\"504\">\n<p class=\"\" data-start=\"473\" data-end=\"504\">Deducting money from Account A.<\/p>\n<\/li>\n<li class=\"\" data-start=\"505\" data-end=\"534\">\n<p class=\"\" data-start=\"508\" data-end=\"534\">Adding money to Account B.<\/p>\n<\/li>\n<\/ol>\n<p class=\"\" data-start=\"536\" data-end=\"642\">If any of these operations fail, the entire transaction must be <strong data-start=\"600\" data-end=\"615\">rolled back<\/strong> to maintain consistency.<\/p>\n<h4 class=\"\" data-start=\"644\" data-end=\"699\"><strong data-start=\"649\" data-end=\"697\">Properties of Transactions (ACID Properties)<\/strong><\/h4>\n<p class=\"\" data-start=\"700\" data-end=\"756\">Transactions in a database follow <strong data-start=\"734\" data-end=\"742\">ACID<\/strong> properties:<\/p>\n<ol data-start=\"757\" data-end=\"1159\">\n<li class=\"\" data-start=\"757\" data-end=\"847\">\n<p class=\"\" data-start=\"760\" data-end=\"847\"><strong data-start=\"760\" data-end=\"773\">Atomicity<\/strong> \u2013 A transaction is either <strong data-start=\"800\" data-end=\"819\">fully completed<\/strong> or <strong data-start=\"823\" data-end=\"844\">fully rolled back<\/strong>.<\/p>\n<\/li>\n<li class=\"\" data-start=\"848\" data-end=\"942\">\n<p class=\"\" data-start=\"851\" data-end=\"942\"><strong data-start=\"851\" data-end=\"866\">Consistency<\/strong> \u2013 The database remains in a valid state before and after the transaction.<\/p>\n<\/li>\n<li class=\"\" data-start=\"943\" data-end=\"1040\">\n<p class=\"\" data-start=\"946\" data-end=\"1040\"><strong data-start=\"946\" data-end=\"959\">Isolation<\/strong> \u2013 Transactions are executed independently without interfering with each other.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1041\" data-end=\"1159\">\n<p class=\"\" data-start=\"1044\" data-end=\"1159\"><strong data-start=\"1044\" data-end=\"1058\">Durability<\/strong> \u2013 Once a transaction is committed, the changes are <strong data-start=\"1110\" data-end=\"1123\">permanent<\/strong>, even if a system failure occurs.<\/p>\n<\/li>\n<\/ol>\n<h4 class=\"\" data-start=\"1161\" data-end=\"1195\"><strong data-start=\"1166\" data-end=\"1193\">States of a Transaction<\/strong><\/h4>\n<p class=\"\" data-start=\"1196\" data-end=\"1259\">A transaction goes through different states during execution:<\/p>\n<ol data-start=\"1260\" data-end=\"1615\">\n<li class=\"\" data-start=\"1260\" data-end=\"1311\">\n<p class=\"\" data-start=\"1263\" data-end=\"1311\"><strong data-start=\"1263\" data-end=\"1273\">Active<\/strong> \u2013 The transaction starts execution.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1312\" data-end=\"1403\">\n<p class=\"\" data-start=\"1315\" data-end=\"1403\"><strong data-start=\"1315\" data-end=\"1338\">Partially Committed<\/strong> \u2013 All operations are performed, but changes are not yet saved.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1404\" data-end=\"1472\">\n<p class=\"\" data-start=\"1407\" data-end=\"1472\"><strong data-start=\"1407\" data-end=\"1420\">Committed<\/strong> \u2013 Changes are permanently stored in the database.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1473\" data-end=\"1544\">\n<p class=\"\" data-start=\"1476\" data-end=\"1544\"><strong data-start=\"1476\" data-end=\"1486\">Failed<\/strong> \u2013 Transaction execution is interrupted due to an error.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1545\" data-end=\"1615\">\n<p class=\"\" data-start=\"1548\" data-end=\"1615\"><strong data-start=\"1548\" data-end=\"1559\">Aborted<\/strong> \u2013 Transaction is rolled back to maintain consistency.<\/p>\n<\/li>\n<\/ol>\n<h4 class=\"\" data-start=\"1617\" data-end=\"1649\"><strong data-start=\"1622\" data-end=\"1647\">Types of Transactions<\/strong><\/h4>\n<ol data-start=\"1650\" data-end=\"1802\">\n<li class=\"\" data-start=\"1650\" data-end=\"1719\">\n<p class=\"\" data-start=\"1653\" data-end=\"1719\"><strong data-start=\"1653\" data-end=\"1678\">Read-Only Transaction<\/strong> \u2013 Retrieves data without modifying it.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1720\" data-end=\"1802\">\n<p class=\"\" data-start=\"1723\" data-end=\"1802\"><strong data-start=\"1723\" data-end=\"1749\">Read-Write Transaction<\/strong> \u2013 Reads data, modifies it, and stores the changes.<\/p>\n<\/li>\n<\/ol>\n<h4 class=\"\" data-start=\"1804\" data-end=\"1850\"><strong data-start=\"1809\" data-end=\"1848\">Transaction Control Commands in SQL<\/strong><\/h4>\n<ol data-start=\"1851\" data-end=\"2171\">\n<li class=\"\" data-start=\"1851\" data-end=\"1921\">\n<p class=\"\" data-start=\"1854\" data-end=\"1921\"><strong data-start=\"1854\" data-end=\"1864\">COMMIT<\/strong> \u2013 Saves all changes made by a transaction permanently.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1922\" data-end=\"1983\">\n<p class=\"\" data-start=\"1925\" data-end=\"1983\"><strong data-start=\"1925\" data-end=\"1937\">ROLLBACK<\/strong> \u2013 Undoes all changes made by a transaction.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1984\" data-end=\"2079\">\n<p class=\"\" data-start=\"1987\" data-end=\"2079\"><strong data-start=\"1987\" data-end=\"2000\">SAVEPOINT<\/strong> \u2013 Creates a checkpoint within a transaction to rollback to a specific point.<\/p>\n<\/li>\n<li class=\"\" data-start=\"2080\" data-end=\"2171\">\n<p class=\"\" data-start=\"2083\" data-end=\"2171\"><strong data-start=\"2083\" data-end=\"2102\">SET TRANSACTION<\/strong> \u2013 Defines the properties of a transaction (e.g., isolation level).<\/p>\n<\/li>\n<\/ol>\n<h4 class=\"\" data-start=\"2173\" data-end=\"2194\"><strong data-start=\"2178\" data-end=\"2192\">Conclusion<\/strong><\/h4>\n<p class=\"\" data-start=\"2195\" data-end=\"2421\">Transactions play a crucial role in maintaining database <strong data-start=\"2252\" data-end=\"2281\">integrity and consistency<\/strong>. By following <strong data-start=\"2296\" data-end=\"2304\">ACID<\/strong> properties and using transaction control commands, databases ensure that operations are <strong data-start=\"2393\" data-end=\"2420\">reliable and error-free<\/strong>.<\/p>\n<h3 data-start=\"2195\" data-end=\"2421\"><a href=\"https:\/\/www.lsraheja.org\/wp-content\/uploads\/2019\/09\/DB_Unit1.pdf\" target=\"_blank\" rel=\"noopener\">GATE CSEIT\/Database\/ Transaction in Database ( With basic introduction).<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/gnindia.dronacharya.info\/CSE\/Downloads\/Sub_info\/5thSem\/Gate\/Databases.pdf\" target=\"_blank\" rel=\"noopener\">Institute of Engineering Studies (IES, Bangalore)<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/mrcet.com\/downloads\/digital_notes\/CSE\/II%20Year\/DBMS.pdf\" target=\"_blank\" rel=\"noopener\">Database Management Systems Lecture Notes<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.db-book.com\/slides-dir\/PDF-dir\/ch17.pdf\" target=\"_blank\" rel=\"noopener\">Chapter 17: Transactions<\/a><\/h3>\n<p data-start=\"0\" data-end=\"175\">Here\u2019s a <strong data-start=\"9\" data-end=\"45\">simple and complete introduction<\/strong> to <strong data-start=\"49\" data-end=\"78\">Transactions in Databases<\/strong>, ideal for <strong data-start=\"90\" data-end=\"105\">GATE CSE\/IT<\/strong> preparation under the <strong data-start=\"128\" data-end=\"166\">Database Management Systems (DBMS)<\/strong> subject.<\/p>\n<hr data-start=\"177\" data-end=\"180\" \/>\n<h2 data-start=\"182\" data-end=\"228\">\ud83d\udcd8 <strong data-start=\"188\" data-end=\"228\">What is a Transaction in a Database?<\/strong><\/h2>\n<h3 data-start=\"230\" data-end=\"251\">\u2705 <strong data-start=\"236\" data-end=\"250\">Definition<\/strong>:<\/h3>\n<p data-start=\"252\" data-end=\"375\">A <strong data-start=\"254\" data-end=\"269\">transaction<\/strong> is a <strong data-start=\"275\" data-end=\"317\">sequence of one or more SQL operations<\/strong> that perform a single logical unit of work in a database.<\/p>\n<blockquote data-start=\"377\" data-end=\"586\">\n<p data-start=\"379\" data-end=\"444\">Example: Transferring money from Account A to Account B involves:<\/p>\n<ol data-start=\"447\" data-end=\"586\">\n<li data-start=\"447\" data-end=\"475\">\n<p data-start=\"450\" data-end=\"475\">Deducting amount from A<\/p>\n<\/li>\n<li data-start=\"478\" data-end=\"586\">\n<p data-start=\"481\" data-end=\"586\">Adding amount to B<br data-start=\"499\" data-end=\"502\" \/>\u2192 These two must happen <strong data-start=\"528\" data-end=\"540\">together<\/strong> or <strong data-start=\"544\" data-end=\"558\">not at all<\/strong> \u2014 that\u2019s a <strong data-start=\"570\" data-end=\"585\">transaction<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<\/blockquote>\n<hr data-start=\"588\" data-end=\"591\" \/>\n<h2 data-start=\"593\" data-end=\"642\">\ud83e\uddf1 <strong data-start=\"599\" data-end=\"642\">Basic Properties of Transactions \u2013 ACID<\/strong><\/h2>\n<div class=\"_tableContainer_16hzy_1\">\n<div class=\"_tableWrapper_16hzy_14 group flex w-fit flex-col-reverse\">\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"644\" data-end=\"1172\">\n<thead data-start=\"644\" data-end=\"730\">\n<tr data-start=\"644\" data-end=\"730\">\n<th data-start=\"644\" data-end=\"655\" data-col-size=\"sm\">Property<\/th>\n<th data-start=\"655\" data-end=\"730\" data-col-size=\"md\">Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"818\" data-end=\"1172\">\n<tr data-start=\"818\" data-end=\"905\">\n<td data-start=\"818\" data-end=\"838\" data-col-size=\"sm\"><strong data-start=\"820\" data-end=\"837\">A \u2013 Atomicity<\/strong><\/td>\n<td data-start=\"838\" data-end=\"905\" data-col-size=\"md\">All operations in a transaction are performed or none at all.<\/td>\n<\/tr>\n<tr data-start=\"906\" data-end=\"995\">\n<td data-start=\"906\" data-end=\"928\" data-col-size=\"sm\"><strong data-start=\"908\" data-end=\"927\">C \u2013 Consistency<\/strong><\/td>\n<td data-start=\"928\" data-end=\"995\" data-col-size=\"md\">Transaction takes the database from one valid state to another.<\/td>\n<\/tr>\n<tr data-start=\"996\" data-end=\"1082\">\n<td data-start=\"996\" data-end=\"1016\" data-col-size=\"sm\"><strong data-start=\"998\" data-end=\"1015\">I \u2013 Isolation<\/strong><\/td>\n<td data-start=\"1016\" data-end=\"1082\" data-col-size=\"md\">Concurrent transactions should not interfere with each other.<\/td>\n<\/tr>\n<tr data-start=\"1083\" data-end=\"1172\">\n<td data-start=\"1083\" data-end=\"1104\" data-col-size=\"sm\"><strong data-start=\"1085\" data-end=\"1103\">D \u2013 Durability<\/strong><\/td>\n<td data-start=\"1104\" data-end=\"1172\" data-col-size=\"md\">Once committed, changes are permanent even if the system crashes.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sticky end-(--thread-content-margin) h-0 self-end select-none\">\n<div class=\"absolute end-0 flex items-end\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<hr data-start=\"1174\" data-end=\"1177\" \/>\n<h2 data-start=\"1179\" data-end=\"1207\">\ud83d\udd04 <strong data-start=\"1185\" data-end=\"1207\">Transaction States<\/strong><\/h2>\n<ol data-start=\"1209\" data-end=\"1441\">\n<li data-start=\"1209\" data-end=\"1255\">\n<p data-start=\"1212\" data-end=\"1255\"><strong data-start=\"1212\" data-end=\"1222\">Active<\/strong> \u2013 Transaction is being executed.<\/p>\n<\/li>\n<li data-start=\"1256\" data-end=\"1312\">\n<p data-start=\"1259\" data-end=\"1312\"><strong data-start=\"1259\" data-end=\"1282\">Partially Committed<\/strong> \u2013 Last statement is executed.<\/p>\n<\/li>\n<li data-start=\"1313\" data-end=\"1362\">\n<p data-start=\"1316\" data-end=\"1362\"><strong data-start=\"1316\" data-end=\"1329\">Committed<\/strong> \u2013 Changes are saved permanently.<\/p>\n<\/li>\n<li data-start=\"1363\" data-end=\"1399\">\n<p data-start=\"1366\" data-end=\"1399\"><strong data-start=\"1366\" data-end=\"1376\">Failed<\/strong> \u2013 Some error occurred.<\/p>\n<\/li>\n<li data-start=\"1400\" data-end=\"1441\">\n<p data-start=\"1403\" data-end=\"1441\"><strong data-start=\"1403\" data-end=\"1414\">Aborted<\/strong> \u2013 Changes are rolled back.<\/p>\n<\/li>\n<\/ol>\n<hr data-start=\"1443\" data-end=\"1446\" \/>\n<h2 data-start=\"1448\" data-end=\"1483\">\ud83e\uddea <strong data-start=\"1454\" data-end=\"1483\">Example Transaction (SQL)<\/strong><\/h2>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]\">sql<\/div>\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-sidebar-surface-primary text-token-text-secondary dark:bg-token-main-surface-secondary flex items-center rounded-sm px-2 font-sans text-xs\"><button class=\"flex gap-1 items-center select-none px-4 py-1\" aria-label=\"Copy\">Copy<\/button><span class=\"\" data-state=\"closed\"><button class=\"flex items-center gap-1 px-4 py-1 select-none\">Edit<\/button><\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\">\n<p><code class=\"whitespace-pre! language-sql\"><span class=\"hljs-keyword\">BEGIN<\/span>;<\/code><\/p>\n<p><span class=\"hljs-keyword\">UPDATE<\/span> accounts <span class=\"hljs-keyword\">SET<\/span> balance <span class=\"hljs-operator\">=<\/span> balance <span class=\"hljs-operator\">&#8211;<\/span> <span class=\"hljs-number\">500<\/span> <span class=\"hljs-keyword\">WHERE<\/span> id <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-string\">&#8216;A&#8217;<\/span>;<br \/>\n<span class=\"hljs-keyword\">UPDATE<\/span> accounts <span class=\"hljs-keyword\">SET<\/span> balance <span class=\"hljs-operator\">=<\/span> balance <span class=\"hljs-operator\">+<\/span> <span class=\"hljs-number\">500<\/span> <span class=\"hljs-keyword\">WHERE<\/span> id <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-string\">&#8216;B&#8217;<\/span>;<\/p>\n<p><span class=\"hljs-keyword\">COMMIT<\/span>;<\/p>\n<\/div>\n<\/div>\n<blockquote data-start=\"1634\" data-end=\"1700\">\n<p data-start=\"1636\" data-end=\"1700\">\u2705 Either both updates succeed and commit, or they both rollback.<\/p>\n<\/blockquote>\n<hr data-start=\"1702\" data-end=\"1705\" \/>\n<h2 data-start=\"1707\" data-end=\"1736\">\ud83d\udd04 <strong data-start=\"1713\" data-end=\"1736\">COMMIT and ROLLBACK<\/strong><\/h2>\n<ul data-start=\"1738\" data-end=\"1846\">\n<li data-start=\"1738\" data-end=\"1782\">\n<p data-start=\"1740\" data-end=\"1782\"><strong data-start=\"1740\" data-end=\"1750\">COMMIT<\/strong>: Saves changes to the database.<\/p>\n<\/li>\n<li data-start=\"1783\" data-end=\"1846\">\n<p data-start=\"1785\" data-end=\"1846\"><strong data-start=\"1785\" data-end=\"1797\">ROLLBACK<\/strong>: Undoes changes made in the current transaction.<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"1848\" data-end=\"1851\" \/>\n<h2 data-start=\"1853\" data-end=\"1897\">\u2694\ufe0f <strong data-start=\"1859\" data-end=\"1897\">Concurrency Issues in Transactions<\/strong><\/h2>\n<p data-start=\"1899\" data-end=\"1967\">When multiple transactions run at the same time, problems can occur:<\/p>\n<div class=\"_tableContainer_16hzy_1\">\n<div class=\"_tableWrapper_16hzy_14 group flex w-fit flex-col-reverse\">\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"1969\" data-end=\"2424\">\n<thead data-start=\"1969\" data-end=\"2042\">\n<tr data-start=\"1969\" data-end=\"2042\">\n<th data-start=\"1969\" data-end=\"1989\" data-col-size=\"sm\">Issue<\/th>\n<th data-start=\"1989\" data-end=\"2042\" data-col-size=\"md\">Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"2116\" data-end=\"2424\">\n<tr data-start=\"2116\" data-end=\"2188\">\n<td data-start=\"2116\" data-end=\"2136\" data-col-size=\"sm\"><strong data-start=\"2118\" data-end=\"2133\">Lost Update<\/strong><\/td>\n<td data-start=\"2136\" data-end=\"2188\" data-col-size=\"md\">Two transactions overwrite each other\u2019s update.<\/td>\n<\/tr>\n<tr data-start=\"2189\" data-end=\"2266\">\n<td data-start=\"2189\" data-end=\"2209\" data-col-size=\"sm\"><strong data-start=\"2191\" data-end=\"2205\">Dirty Read<\/strong><\/td>\n<td data-start=\"2209\" data-end=\"2266\" data-col-size=\"md\">Reading uncommitted changes from another transaction.<\/td>\n<\/tr>\n<tr data-start=\"2267\" data-end=\"2351\">\n<td data-start=\"2267\" data-end=\"2293\" data-col-size=\"sm\"><strong data-start=\"2269\" data-end=\"2292\">Non-repeatable Read<\/strong><\/td>\n<td data-col-size=\"md\" data-start=\"2293\" data-end=\"2351\">Same read gives different values within a transaction.<\/td>\n<\/tr>\n<tr data-start=\"2352\" data-end=\"2424\">\n<td data-start=\"2352\" data-end=\"2372\" data-col-size=\"sm\"><strong data-start=\"2354\" data-end=\"2370\">Phantom Read<\/strong><\/td>\n<td data-start=\"2372\" data-end=\"2424\" data-col-size=\"md\">New rows appear during repeated reads.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sticky end-(--thread-content-margin) h-0 self-end select-none\">\n<div class=\"absolute end-0 flex items-end\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<blockquote data-start=\"2426\" data-end=\"2484\">\n<p data-start=\"2428\" data-end=\"2484\">These are handled by <strong data-start=\"2449\" data-end=\"2483\">concurrency control techniques<\/strong>.<\/p>\n<\/blockquote>\n<hr data-start=\"2486\" data-end=\"2489\" \/>\n<h2 data-start=\"2491\" data-end=\"2537\">\ud83e\udde0 <strong data-start=\"2497\" data-end=\"2537\">For GATE \u2013 Key Concepts to Remember:<\/strong><\/h2>\n<ul data-start=\"2539\" data-end=\"2729\">\n<li data-start=\"2539\" data-end=\"2556\">\n<p data-start=\"2541\" data-end=\"2556\">ACID properties<\/p>\n<\/li>\n<li data-start=\"2557\" data-end=\"2577\">\n<p data-start=\"2559\" data-end=\"2577\">Transaction States<\/p>\n<\/li>\n<li data-start=\"2578\" data-end=\"2640\">\n<p data-start=\"2580\" data-end=\"2640\">Schedule types (serial, serializable, conflict serializable)<\/p>\n<\/li>\n<li data-start=\"2641\" data-end=\"2695\">\n<p data-start=\"2643\" data-end=\"2695\">Concurrency issues and solutions (locks, timestamps)<\/p>\n<\/li>\n<li data-start=\"2696\" data-end=\"2729\">\n<p data-start=\"2698\" data-end=\"2729\">Recoverability (undo\/redo logs)<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"2731\" data-end=\"2734\" \/>\n<h2 data-start=\"2736\" data-end=\"2769\">\ud83d\udcda <strong data-start=\"2742\" data-end=\"2768\">GATE-Level MCQ Example<\/strong>:<\/h2>\n<p data-start=\"2771\" data-end=\"2829\"><strong data-start=\"2771\" data-end=\"2777\">Q:<\/strong> Which of the following ensures Atomicity in a DBMS?<\/p>\n<p data-start=\"2831\" data-end=\"2908\">A. Locking<br data-start=\"2841\" data-end=\"2844\" \/>B. Write-ahead logging<br data-start=\"2866\" data-end=\"2869\" \/>C. Checkpoints<br data-start=\"2883\" data-end=\"2886\" \/>D. Deadlock prevention<\/p>\n<p data-start=\"2910\" data-end=\"2951\">\ud83d\udfe9 <strong data-start=\"2913\" data-end=\"2923\">Answer<\/strong>: B. <strong data-start=\"2928\" data-end=\"2951\">Write-ahead logging<\/strong><\/p>\n<hr data-start=\"2953\" data-end=\"2956\" \/>\n<p data-start=\"2958\" data-end=\"2982\">Let me know if you want:<\/p>\n<ul data-start=\"2983\" data-end=\"3116\" data-is-last-node=\"\" data-is-only-node=\"\">\n<li data-start=\"2983\" data-end=\"2997\">\n<p data-start=\"2985\" data-end=\"2997\">Notes PDF \ud83d\udcc4<\/p>\n<\/li>\n<li data-start=\"2998\" data-end=\"3016\">\n<p data-start=\"3000\" data-end=\"3016\">Practice MCQs \ud83e\udde0<\/p>\n<\/li>\n<li data-start=\"3017\" data-end=\"3052\">\n<p data-start=\"3019\" data-end=\"3052\">Detailed video recommendations \ud83c\udfa5<\/p>\n<\/li>\n<li data-start=\"3053\" data-end=\"3116\" data-is-last-node=\"\">\n<p data-start=\"3055\" data-end=\"3116\" data-is-last-node=\"\">Serializability examples or concurrency control algorithms \ud83d\udd01<\/p>\n<\/li>\n<\/ul>\n<h3><a href=\"https:\/\/www.du.ac.in\/du\/uploads\/departments\/Operational%20Research\/24042020_Transaction%20Management%20in%20DBMS.pdf\" target=\"_blank\" rel=\"noopener\">GATE CSEIT\/Database\/ Transaction in Database ( With basic introduction).<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.cet.edu.in\/noticefiles\/279_DBMS%20Complete1.pdf\" target=\"_blank\" rel=\"noopener\">INTRODUCTION TO DBMS &#8211; Bhubaneswar<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>GATE CSEIT\/Database\/. Transaction in Database ( With basic introduction). [fvplayer id=&#8221;290&#8243;] Transaction in Database Management System (DBMS) Introduction to Transactions A transaction in a Database Management System (DBMS) is a sequence of one or more database operations that are executed as a single logical unit of work. Transactions are used to maintain data integrity, consistency, [&hellip;]<\/p>\n","protected":false},"author":66,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[],"class_list":["post-3184","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/3184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/comments?post=3184"}],"version-history":[{"count":0,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/3184\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/media?parent=3184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/categories?post=3184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/tags?post=3184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}