<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3048986950355073952</id><updated>2024-09-02T01:38:33.078-07:00</updated><category term="ACID Property"/><category term="Aggregation"/><category term="Composite Vs Multi Valued Attributes"/><category term="DBMS Vs File Processing"/><category term="Foreign Key vs Primary Key"/><category term="Responsibilities of DBA"/><category term="Three Levels of Data Abstraction"/><title type='text'>EDUCATION</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://becompengg.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://becompengg.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>vj guides</name><uri>http://www.blogger.com/profile/14138589464217257518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9qdzQJXw927wM2uwAdX4ithw03ApmmooBY88KKMCgFmULuaaQAqK5f-QjfdAGRycBerXWwZaYoYUYCvrAEsBByM4RQBSTLVzQwSdxL-3-RsxuFa4W6-4JumsUGfWgyA/s220/John_Abraham.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3048986950355073952.post-4465203725597771207</id><published>2011-10-26T09:18:00.000-07:00</published><updated>2011-10-26T09:18:21.703-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Three Levels of Data Abstraction"/><title type='text'>Three Levels of Data Abstraction</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;Question :: Three Levels of Data Abstraction&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt;&lt;br /&gt;
Data abstraction is a process of representing the essential features without&lt;br /&gt;
including implementation details.&lt;br /&gt;
many database-systems users are not computer trained, developers hide the&lt;br /&gt;
complexity from users through several levels of abstraction, to simplify users’&lt;br /&gt;
interactions with the system:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1) Physical level.&lt;/b&gt;&lt;br /&gt;
The lowest level of abstraction describes how the data are&lt;br /&gt;
actually stored. The physical level describes complex low-level data&lt;br /&gt;
structures in detail.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2) Logical level.&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
The next-higher level of abstraction describes what data are&lt;br /&gt;
stored in the database, and what relationships exist among those data. The&lt;br /&gt;
logical level thus describes the entire database in terms of a small number of&lt;br /&gt;
relatively simple structures.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPlUMmgQNNZy3vD7IrbfniOcsCXF8Yb4pLeiKEFbfxwR-oqQk1dkreBQrbh4_3O7T_snxmjgm_1LmKSqBzqWhyBcxiPFkO_yKEqPxqky8YDfzjFeYvny1dUKrQtjKz5eG_3GYU_BhkEg4/s1600/3.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPlUMmgQNNZy3vD7IrbfniOcsCXF8Yb4pLeiKEFbfxwR-oqQk1dkreBQrbh4_3O7T_snxmjgm_1LmKSqBzqWhyBcxiPFkO_yKEqPxqky8YDfzjFeYvny1dUKrQtjKz5eG_3GYU_BhkEg4/s400/3.bmp&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;3) View level&lt;/b&gt;.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;The highest level of abstraction describes only part of the entire&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;database. The variety of information stored in a large database. Many users&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;of the database system do not need all this information; instead, they need&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;to access only a part of the database. The view level of abstraction exists to&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;simplify their interaction with the system.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://becompengg.blogspot.com/feeds/4465203725597771207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://becompengg.blogspot.com/2011/10/three-levels-of-data-abstraction.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/4465203725597771207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/4465203725597771207'/><link rel='alternate' type='text/html' href='http://becompengg.blogspot.com/2011/10/three-levels-of-data-abstraction.html' title='Three Levels of Data Abstraction'/><author><name>vj guides</name><uri>http://www.blogger.com/profile/14138589464217257518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9qdzQJXw927wM2uwAdX4ithw03ApmmooBY88KKMCgFmULuaaQAqK5f-QjfdAGRycBerXWwZaYoYUYCvrAEsBByM4RQBSTLVzQwSdxL-3-RsxuFa4W6-4JumsUGfWgyA/s220/John_Abraham.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPlUMmgQNNZy3vD7IrbfniOcsCXF8Yb4pLeiKEFbfxwR-oqQk1dkreBQrbh4_3O7T_snxmjgm_1LmKSqBzqWhyBcxiPFkO_yKEqPxqky8YDfzjFeYvny1dUKrQtjKz5eG_3GYU_BhkEg4/s72-c/3.bmp" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3048986950355073952.post-5522981653506553167</id><published>2011-10-26T09:11:00.000-07:00</published><updated>2011-10-26T09:11:22.401-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Composite Vs Multi Valued Attributes"/><title type='text'>Composite Vs. Multi Valued Attributes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;Question :: Composite Vs. Multi Valued Attributes&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Composite &lt;/b&gt;:&lt;br /&gt;
Composite attributes can be divided into subparts. For example, an attribute name&lt;br /&gt;
could be structured as a composite attribute consisting of first-name, middle-initial,&lt;br /&gt;
and last-name.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Multivalued:&lt;/b&gt;&lt;br /&gt;
There may be instances where an attribute has a set of values for a specific&lt;br /&gt;
entity. Consider an employee entity set with the attribute phone-number. An&lt;br /&gt;
employee may have zero, one, or several phone numbers, and different employees&lt;br /&gt;
may have different numbers of phones. This type of attribute is said to be&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Composite Attributes :&lt;/b&gt;&amp;nbsp;Attribute Divided into sub parts. Eg. Name (First name,&lt;br /&gt;
Middle Name, last name)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Multivalued Attributes :&lt;/b&gt;&amp;nbsp;Attribute having more than one values. Eg. Phone&lt;br /&gt;
Number.&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://becompengg.blogspot.com/feeds/5522981653506553167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://becompengg.blogspot.com/2011/10/composite-vs-multi-valued-attributes.html#comment-form' title='21 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/5522981653506553167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/5522981653506553167'/><link rel='alternate' type='text/html' href='http://becompengg.blogspot.com/2011/10/composite-vs-multi-valued-attributes.html' title='Composite Vs. Multi Valued Attributes'/><author><name>vj guides</name><uri>http://www.blogger.com/profile/14138589464217257518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9qdzQJXw927wM2uwAdX4ithw03ApmmooBY88KKMCgFmULuaaQAqK5f-QjfdAGRycBerXWwZaYoYUYCvrAEsBByM4RQBSTLVzQwSdxL-3-RsxuFa4W6-4JumsUGfWgyA/s220/John_Abraham.jpg'/></author><thr:total>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3048986950355073952.post-6633195503248359956</id><published>2011-10-26T09:07:00.000-07:00</published><updated>2011-10-26T09:07:54.672-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Foreign Key vs Primary Key"/><title type='text'>Foreign Key vs Primary Key</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;Question :: Difference Foreign Key and Primary Key ?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Answer&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgi7hxCcRvaDfKgm7mXlH3Zf5aTEgo0QBhWIcA0m59HscivN4e3GNPAeA8mgt8J712Z0atUP_YbGXIEOulVUlS0ko0p1xAWxSHqx2VsdfLkjnbGNXfaeeLiPgPwIffrHB_Ssgs5b2WKyY/s1600/2.bmp&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgi7hxCcRvaDfKgm7mXlH3Zf5aTEgo0QBhWIcA0m59HscivN4e3GNPAeA8mgt8J712Z0atUP_YbGXIEOulVUlS0ko0p1xAWxSHqx2VsdfLkjnbGNXfaeeLiPgPwIffrHB_Ssgs5b2WKyY/s400/2.bmp&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://becompengg.blogspot.com/feeds/6633195503248359956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://becompengg.blogspot.com/2011/10/foreign-key-vs-primary-key.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/6633195503248359956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/6633195503248359956'/><link rel='alternate' type='text/html' href='http://becompengg.blogspot.com/2011/10/foreign-key-vs-primary-key.html' title='Foreign Key vs Primary Key'/><author><name>vj guides</name><uri>http://www.blogger.com/profile/14138589464217257518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9qdzQJXw927wM2uwAdX4ithw03ApmmooBY88KKMCgFmULuaaQAqK5f-QjfdAGRycBerXWwZaYoYUYCvrAEsBByM4RQBSTLVzQwSdxL-3-RsxuFa4W6-4JumsUGfWgyA/s220/John_Abraham.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgi7hxCcRvaDfKgm7mXlH3Zf5aTEgo0QBhWIcA0m59HscivN4e3GNPAeA8mgt8J712Z0atUP_YbGXIEOulVUlS0ko0p1xAWxSHqx2VsdfLkjnbGNXfaeeLiPgPwIffrHB_Ssgs5b2WKyY/s72-c/2.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3048986950355073952.post-4856895748046075663</id><published>2011-10-26T09:01:00.000-07:00</published><updated>2011-10-26T09:01:53.979-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ACID Property"/><title type='text'>ACID Property</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;Question &amp;nbsp;:: Explain ACID Property and Importance of each ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Answer:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;ACID Means:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;A -Atomicity&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;C - Consistency&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;I - Isolation&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;D - Durability&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Atomicity:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Either all operations of the transaction are reflected properly in the&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Database, or none are.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Let Ti be a transaction that transfers $50 from account A to account B. This&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;transaction can be defined as&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Ti: read(A);&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;A := A − 50;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;write(A);&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;read(B);&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;B := B + 50;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;write(B)&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Suppose that, just before the execution of transaction Ti the values of&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;accounts A and B are $1000 and $2000, respectively. Now suppose that, during the&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;execution of transaction Ti, a failure occurs that prevents Ti from completing its&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;execution successfully. Examples of such failures include power failures, hardware&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;failures, and software errors. Further, suppose that the failure happened after the&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;write(A) operation but before the write(B) operation. In this case, the values of&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;accounts A and B reflected in the database are $950 and $2000. The system&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;destroyed $50 as a result of this failure. In particular, we note that the sum A + B&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;is no longer preserved.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;The basic idea behind ensuring atomicity is this: The database system keeps&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;track (on disk) of the old values of any data on which a transaction performs a&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;write, and, if the transaction does not complete its execution, the database system&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;restores the old values to make it appear as though the transaction never executed.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Consistency:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;If single transaction or more than two transactions executing&amp;nbsp;concurrently then it should preserve the consistency of the database, i.e.&amp;nbsp;Transaction must be in consistent states.&amp;nbsp;The consistency requirement here is that the sum of A and B be unchanged&amp;nbsp;by the execution of the transaction. Without the consistency requirement, money&amp;nbsp;could be created or destroyed by the transaction! It can be verified easily that, if&amp;nbsp;the database is consistent before an execution of the transaction, the database&amp;nbsp;remains consistent after the execution of the transaction.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Isolation:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Even if the consistency and atomicity properties are ensured for each&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;transaction, if several transactions are executed concurrently, their operations may&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;interleave in some undesirable way, resulting in an inconsistent state. Even though&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;multiple transactions may execute concurrently, the system guarantees that, for&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;every pair of transactions Ti and Tj , it appears to Ti that either Tj finished&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;execution before Ti started, or Tj started execution after Ti finished. Thus, each&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;transaction is unaware of other transactions executing concurrently in the system.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Durability:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;After a transaction completes successfully, the changes it has made&amp;nbsp;to the database persist, even if there are system failures.Once the execution of the transaction completes successfully, and the user&amp;nbsp;who initiated the transaction has been notified that the transfer of funds has taken&amp;nbsp;place, it must be the case that no system failure will result in a loss of&amp;nbsp;data corresponding&amp;nbsp;to this transfer of funds.The durability property guarantees that, once a transaction completes&amp;nbsp;successfully, all the updates that it carried out on the database persist, even if&amp;nbsp;there is a system failure after the transaction completes execution.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://becompengg.blogspot.com/feeds/4856895748046075663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://becompengg.blogspot.com/2011/10/acid-property.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/4856895748046075663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/4856895748046075663'/><link rel='alternate' type='text/html' href='http://becompengg.blogspot.com/2011/10/acid-property.html' title='ACID Property'/><author><name>vj guides</name><uri>http://www.blogger.com/profile/14138589464217257518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9qdzQJXw927wM2uwAdX4ithw03ApmmooBY88KKMCgFmULuaaQAqK5f-QjfdAGRycBerXWwZaYoYUYCvrAEsBByM4RQBSTLVzQwSdxL-3-RsxuFa4W6-4JumsUGfWgyA/s220/John_Abraham.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3048986950355073952.post-2216124965295551023</id><published>2011-10-26T08:54:00.000-07:00</published><updated>2011-10-26T08:54:23.597-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Responsibilities of DBA"/><title type='text'>Responsibilities of DBA</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;Question :: What are the Responsibilities of&amp;nbsp;DBA&amp;nbsp;?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt;&lt;br /&gt;
One of the main reasons for using DBMSs is to have central control of both the data&lt;br /&gt;
and the programs that access those data. A person who has such central control&lt;br /&gt;
over the system is called a database administrator (DBA). The functions of a&lt;br /&gt;
DBA include:&lt;br /&gt;
• Schema definition. The DBA creates the original database schema by executing&lt;br /&gt;
a set of data definition statements in the DDL.&lt;br /&gt;
• Storage structure and access-method definition.&lt;br /&gt;
• Schema and physical-organization modification. The DBA carries out&lt;br /&gt;
changes to the schema and physical organization to reflect the changing needs of&lt;br /&gt;
the organization, or to alter the physical organization to improve performance.&lt;br /&gt;
• Granting of authorization for data access. By granting different types of&lt;br /&gt;
authorization, the database administrator can regulate which parts of the database&lt;br /&gt;
various users can access. The authorization information is kept in a special system&lt;br /&gt;
structure that the database system consults whenever someone attempts to access&lt;br /&gt;
the data in the system.&lt;br /&gt;
• Routine maintenance. Examples of the database administrator’s routine&lt;br /&gt;
maintenance activities are:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Periodically backing up the database, either onto tapes or onto remoteservers, to prevent loss of data in case of disasters such as flooding.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&amp;nbsp;Ensuring that enough free disk space is available for normal operations, andupgrading disk space as required.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&amp;nbsp;Monitoring jobs running on the database and ensuring that performance isnot degraded by very expensive tasks submitted by some users.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://becompengg.blogspot.com/feeds/2216124965295551023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://becompengg.blogspot.com/2011/10/responsibilities-of-dba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/2216124965295551023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/2216124965295551023'/><link rel='alternate' type='text/html' href='http://becompengg.blogspot.com/2011/10/responsibilities-of-dba.html' title='Responsibilities of DBA'/><author><name>vj guides</name><uri>http://www.blogger.com/profile/14138589464217257518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9qdzQJXw927wM2uwAdX4ithw03ApmmooBY88KKMCgFmULuaaQAqK5f-QjfdAGRycBerXWwZaYoYUYCvrAEsBByM4RQBSTLVzQwSdxL-3-RsxuFa4W6-4JumsUGfWgyA/s220/John_Abraham.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3048986950355073952.post-5453477717543624946</id><published>2011-10-26T08:49:00.000-07:00</published><updated>2011-10-26T08:50:07.577-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Aggregation"/><title type='text'>Aggregation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;Question &amp;nbsp;:: What do you mean by aggregation ?Explain How&amp;nbsp;Aggregation&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3d85c6;&quot;&gt;used to remove Redundant Relationship ?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Answer :&lt;/b&gt;&lt;br /&gt;
Aggregation (Definition): One limitation of the E-R model is that it cannot&lt;br /&gt;
express relationships among relationships. Aggregation is an abstraction through&lt;br /&gt;
which relationships are treated as higher-level entities. Aggregation is an&lt;br /&gt;
abstraction through which we can express relationships among two relationships.&lt;br /&gt;
&lt;br /&gt;
Let’s consider manger wants to manage Employee, branch in which employee&lt;br /&gt;
working and jobs. Using the basic E-R modeling constructs, we obtain the E-R&lt;br /&gt;
diagram as shown in Figure 1. It appears that the relationship sets works-on and&lt;br /&gt;
manages can be combined into one single relationship set. We should not combine&lt;br /&gt;
them into a single relationship, since some employee, branch, job combinations&lt;br /&gt;
many not have a manager.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCg10gauSqzgcxqt-FbOF9fygUPVPies7cshh6hI7630kEliPQLFHaJh9wiWvQHztll98NO0_0c8_Bkb6j9MUOyJ7JjX-W-u5eOPRpKWJuq2Urvy45IJgj-kyKatJzmaQGOt8QduxwzMo/s1600/untitled.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCg10gauSqzgcxqt-FbOF9fygUPVPies7cshh6hI7630kEliPQLFHaJh9wiWvQHztll98NO0_0c8_Bkb6j9MUOyJ7JjX-W-u5eOPRpKWJuq2Urvy45IJgj-kyKatJzmaQGOt8QduxwzMo/s320/untitled.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Figure : E-R diagram with redundant relationships&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;As shown in Figure 1, Every Employee, Job and Branch combined with&lt;br /&gt;
manager, also combined with works-on. Therefore we can say this diagram have&lt;br /&gt;
many redundant relationships. If the manager were a value rather than a manager&lt;br /&gt;
entity, we could instead make manager a multivalued attribute&lt;br /&gt;
of the relationship works-on and we can avoid redundant relationships. But doing it&lt;br /&gt;
is more difficult task because manager is entity.&lt;br /&gt;
The best way to model such a situation is to use aggregation. Aggregation&lt;br /&gt;
is an abstraction through which relationships are treated as higher-level entities.&lt;br /&gt;
Thus, for our example, we can take works-on(relating the entity sets employee,&lt;br /&gt;
branch, and job) as higher level entity set .Then we can create binary relationship&lt;br /&gt;
with manages that react as lower level entity sets.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP9bQJPymad01wHxqR45M-9oSSxFZ5B7WW0MlNf87IH_LWjymbtUASZ5NaW78CgiiuiN4Ccoe4dZyhsdW3N7ccxe6DJgS23qAJ4mWW92aOd5Vsic11md40NNvH0xgqup1k0M9nafxX73Q/s1600/1.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP9bQJPymad01wHxqR45M-9oSSxFZ5B7WW0MlNf87IH_LWjymbtUASZ5NaW78CgiiuiN4Ccoe4dZyhsdW3N7ccxe6DJgS23qAJ4mWW92aOd5Vsic11md40NNvH0xgqup1k0M9nafxX73Q/s400/1.bmp&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;As shown in Figure 2, Works-on relationships set acting as higher level entity&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;set with combination with Employee, Job and branch. This higher level entity set&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;creates binary relationship with manages, a lower level entity set i.e. relationship&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;between two relationship sets and redundant relationships can be reduced.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://becompengg.blogspot.com/feeds/5453477717543624946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://becompengg.blogspot.com/2011/10/question-what-do-you-mean-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/5453477717543624946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/5453477717543624946'/><link rel='alternate' type='text/html' href='http://becompengg.blogspot.com/2011/10/question-what-do-you-mean-by.html' title='Aggregation'/><author><name>vj guides</name><uri>http://www.blogger.com/profile/14138589464217257518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9qdzQJXw927wM2uwAdX4ithw03ApmmooBY88KKMCgFmULuaaQAqK5f-QjfdAGRycBerXWwZaYoYUYCvrAEsBByM4RQBSTLVzQwSdxL-3-RsxuFa4W6-4JumsUGfWgyA/s220/John_Abraham.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCg10gauSqzgcxqt-FbOF9fygUPVPies7cshh6hI7630kEliPQLFHaJh9wiWvQHztll98NO0_0c8_Bkb6j9MUOyJ7JjX-W-u5eOPRpKWJuq2Urvy45IJgj-kyKatJzmaQGOt8QduxwzMo/s72-c/untitled.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3048986950355073952.post-5003298799632395243</id><published>2011-10-26T08:36:00.000-07:00</published><updated>2011-10-26T08:39:50.921-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DBMS Vs File Processing"/><title type='text'>DBMS Vs File Processing</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;Question &amp;nbsp;:: Explain the Advantages of DBMS over File Processing System.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Answer ::&lt;/b&gt;&lt;/div&gt;&lt;div&gt;This typical file-processing system is supported by a conventional operating&lt;/div&gt;&lt;div&gt;system. The system stores permanent records in various files, and it needs&lt;/div&gt;&lt;div&gt;different application programs to extract records from, and add records to, the&lt;/div&gt;&lt;div&gt;appropriate files. Before database management systems (DBMSs) came along,&lt;/div&gt;&lt;div&gt;organizations usually stored information in such systems.&lt;/div&gt;&lt;div&gt;Keeping organizational information in a file-processing system has a number of&lt;/div&gt;&lt;div&gt;major disadvantages:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;1) Data redundancy and inconsistency.&lt;/b&gt; Since different programmers create&lt;/div&gt;&lt;div&gt;the files and application programs over a long period, the various files are&lt;/div&gt;&lt;div&gt;likely to have different formats and the programs may be written in several&lt;/div&gt;&lt;div&gt;programming languages. Moreover, the same information may be duplicated&lt;/div&gt;&lt;div&gt;in several places (files). For example, the address and telephone number of a&lt;/div&gt;&lt;div&gt;particular customer may appear in a file that consists of savings-account&lt;/div&gt;&lt;div&gt;records and in a file that consists of checking-account records. This&lt;/div&gt;&lt;div&gt;redundancy leads to higher storage and access cost. In addition, it may lead&lt;/div&gt;&lt;div&gt;to data inconsistency; that is, the various copies of the same data may no&lt;/div&gt;&lt;div&gt;longer agree. For example, a changed customer address may be reflected in&lt;/div&gt;&lt;div&gt;savings-account records but not elsewhere in the system.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;2) Difficulty in accessing data : &lt;/b&gt;Conventional file-processing environments do&lt;/div&gt;&lt;div&gt;not allow Needed data to be retrieved in a convenient and efficient manner.&lt;/div&gt;&lt;div&gt;More Responsive data-retrieval systems are required for general use.This&lt;/div&gt;&lt;div&gt;problem can be easily accommodate by Databast management system.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;3) Data isolation ::&lt;/b&gt; Because data are scattered in various files, and files may&lt;/div&gt;&lt;div&gt;be in different formats, writing new application programs to retrieve the&lt;/div&gt;&lt;div&gt;appropriate data is difficult.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;4) Integrity problems.&lt;/b&gt; The data values stored in the database must satisfy&lt;/div&gt;&lt;div&gt;certain types of consistency constraints. For example, the balance of a&lt;/div&gt;&lt;div&gt;bank account may never fall below a prescribed amount (say, $25).&lt;/div&gt;&lt;div&gt;Developers enforce these constraints in the system by adding appropriate&lt;/div&gt;&lt;div&gt;code in the various application programs. However, when new constraints are&lt;/div&gt;&lt;div&gt;added, it is difficult to change the programs to enforce them. The problem is&lt;/div&gt;&lt;div&gt;harder when constraints involve several data items from different files.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;5) Atomicity problems.&lt;/b&gt; A computer system, like any other mechanical or&lt;/div&gt;&lt;div&gt;electrical device, is subject to failure. In many applications, it is crucial that,&lt;/div&gt;&lt;div&gt;if a failure occurs, the data be restored to the consistent state that existed&lt;/div&gt;&lt;div&gt;prior to the failure. Consider a program to transfer $50 from account A to&lt;/div&gt;&lt;div&gt;account B.&lt;/div&gt;&lt;div&gt;If a system failure occurs during the execution of the program, it is&lt;/div&gt;&lt;div&gt;possible that the $50 was removed from account A but was not credited to&lt;/div&gt;&lt;div&gt;account B, resulting in an inconsistent database state. This inconsistent state&lt;/div&gt;&lt;div&gt;must be removed. The fund transfer must be atomic that is if failure occurs&lt;/div&gt;&lt;div&gt;whatever updates performed must be reversible. It is difficult to ensure&lt;/div&gt;&lt;div&gt;atomicity in a conventional file-processing system.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;6) Concurrent-access anomalies ::&lt;/b&gt; For the sake of overall performance of the&lt;/div&gt;&lt;div&gt;system and faster response, many systems allow multiple users to update&lt;/div&gt;&lt;div&gt;the data simultaneously. In such an environment, interaction of concurrent&lt;/div&gt;&lt;div&gt;updates may result in inconsistent data. Consider bank account A, containing&lt;/div&gt;&lt;div&gt;$500. If two customers withdraw funds (say $50 and $100 respectively) from&lt;/div&gt;&lt;div&gt;account A at about the same time, the result of the concurrent executions&lt;/div&gt;&lt;div&gt;may leave the account in an incorrect (or inconsistent) state.&lt;/div&gt;&lt;div&gt;To guard against this possibility, the system must maintain some form&lt;/div&gt;&lt;div&gt;of supervision. But supervision is difficult to provide because data may be&lt;/div&gt;&lt;div&gt;accessed by many different application programs that have not been&lt;/div&gt;&lt;div&gt;coordinated.&lt;/div&gt;&lt;div&gt;DBMS provides locking mechanism to guard such a anomalies.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;7) Security Problem::&lt;/b&gt; Not every user of the database system should be able&lt;/div&gt;&lt;div&gt;to access all the data. Based on user’s role or privilege users are restricted to&lt;/div&gt;&lt;div&gt;access all data.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://becompengg.blogspot.com/feeds/5003298799632395243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://becompengg.blogspot.com/2011/10/dbms-vs-file-processing.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/5003298799632395243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3048986950355073952/posts/default/5003298799632395243'/><link rel='alternate' type='text/html' href='http://becompengg.blogspot.com/2011/10/dbms-vs-file-processing.html' title='DBMS Vs File Processing'/><author><name>vj guides</name><uri>http://www.blogger.com/profile/14138589464217257518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9qdzQJXw927wM2uwAdX4ithw03ApmmooBY88KKMCgFmULuaaQAqK5f-QjfdAGRycBerXWwZaYoYUYCvrAEsBByM4RQBSTLVzQwSdxL-3-RsxuFa4W6-4JumsUGfWgyA/s220/John_Abraham.jpg'/></author><thr:total>5</thr:total></entry></feed>