: What is the "A" in ACID database properties? Give an example of the use of this property and what might happen if the property is not met
A: The “A” in ACID database properties represents Atomicity. Atomicity is described easily using “all or nothing” i.e, if we consider that the database processes the transactions either it should be fully completed or not at all done. If a single task in a transaction fails then the whole transaction fails. According to this ACID rule, Let us consider two persons John and Bean. When John wants to transfer 1$ from his account to Beans account a Transaction will be performed. This transaction consists of two actions
1, withdrawing 1$ from Johns account.
2, Depositing 1$ to Beans account.
By using this
…show more content…
If suppose the system fails before johns transaction is updated in the database then john will be unable to withdraw and Toms account goes to its previous state. If the durability property is not met then even after the transaction is complete and if the system fails then the changes will be lost from the database.
10Q, Describe the general idea of an ORM. What are some advantages and disadvantages of using an ORM for database code?
A: The acronym for ORM is object relational Mapper. The name object relational mapper itself specifies that it is used to map the objects to the database. ORM is just a library written in any language that we use and there is no need to use any sql because we can use interact with the object in the language which we are using.
Advantages of using ORM for database code:
In ORM the data model is written in a single place so maintainence becomes easier.
As everything is done automatically it saves a lot of time and cost.
The main use of ORM is there is no need to use sql
As we can select our own language it will be flexible to do
As the model is only done at a single place, changing it becomes easy.
Disadvantages of using ORM for database code:
• Eventhough it’s a library, need to know all the tools about
…show more content…
insert into library values(“physics”,1,”john”);
Select query: Select query is used to display the table. select * from library;
Update query: Update query is used to update the data in the table. Update library set book name = “social” where id =3;
Delete query: delete query is used to delete the data from the table. Delete from library where book id = 1;
2Q , What is a covering index and why is it useful. As with all the questions, give an example.
A: A covering index is an index that contains all and more columns that we need for a query. A covering index can satisfy the query without the analysis of data. Using the covering index the rows or columns can be retrieved using criteria. As the covering index contains retrieved columns, the speed will be increased.The improvement of query performance is done with covering index. Now consider the employee table and take the sum of employee salary as the covering index for the employee
An acid becomes a solution, when a hydrogen ion is released. A base becomes a solution, when a hydroxide ion is released. There are three classes of acids and bases. An acid produces H+ in a solution and a base produces OH. This is a theory called the Arrhenius definition. A man by the name of Svante Arrhenius developed this theory. Acids and bases can be defined their physical and chemical observations.
Polyprotic acids are acids that are capable of donating more than one proton per molecule in acid-base reactions, hence the prefix poly- meaning many, and prot- referring to protons. Polyprotic acids are acids that have more than one ionizable hydrogen atom per molecule. When acids are added to the solution, the acid ionizes. When the acid partially ionizes in solution that means it is a weak acid. Weak acids partially dissociate to produce equilibrium concentration. K_a is the acid ionization constant that refers to when an acid donates a proton. We determine
When there is loss of packet, the sender doesn’t wait for the time out and resends the packets immediately using the mechanism of fast recovery and fast retransmit.
If the maximum packet lifetime is not large enough a duplicate packet could be sent while the ACK is still in the process of being transmitted back to the original sender. This could cause issues where there are duplicate packets being sent. Additionally, this will cause unnecessary congestion issues if there are extra packets and ACKs being sent.
money is spent then the shopper has on the current account, the last written check will be rejected and account will be
In 1977, Larry Ellison, Bob Miner, and Ed Oates founded System Development Laboratories. After being inspired by a research paper written in 1970 by an IBM researcher titled “A Relational Model of Data for Large Shared Data Banks” they decided to build a new type of database called a relational database system. The original project on the relational database system was for the government (Central Intelligence Agency) and was dubbed ‘Oracle.’ They thought this would be appropriate because the meaning of Oracle is source of wisdom.
An acid is a substance that produces hydrogen ions, H+ or hydrodium ionsH3O+ in solution. There are three “kinds of acids”: Arrhenius, BrØnsted-Lowry, and Lewis Acid. An Arrhenius acid is a substance the increases the concentration of hydrogen ion, H+ or hydronium ions H3O+when dissolved in water. You must have water. A BrØnsted-Lowry acid is any substance that donates a hydrogen ion, H+ to another substance. A Lewis acid is any substance that accepts a lone pair of electrons.A strong acid is one that breaks apart close to 100% when in solution (example HCl). When dissolved in water, HCl breaks apart into H+ and Cl- ions. Not all acids break apart. A weak acid is/are chemicals that do not break apart well. Acids have a sour taste, they are: corrosive and electrolytes. Acids react with active metals (group 1 or 2) to produce hydrogen gas, H2 They also react with bases to produce salt and water (a neutralization reaction). An Arrhenius base is any substance that increases the concentration of hydroxide ions (OH-) when dissolved in water. A BrØnsted-Lowry base is one that accepts a hydrogen ion, H+. A Lewis base is any substance that donates a lone pair of electrons. Bases have a bitter taste, bases react with acids to produce a neutralization reaction, and solutions that are basic feel slippery. On the pH scale, 7 is neutral. An acidic solution will have a greater hydrogen ion than hydroxide ion concent...
Acid-Base balance is the state of equilibrium between proton donors and proton acceptors in the buffering system of the blood that is maintained at approximately pH 7.35 to 7.45 under normal conditions in arterial blood. It is important to regulate chemical balance or homeostasis of body fluids. Acidity or alkalinity has to be regulated. An acid is a substance that lets out hydrogen ions in solution. Strong acid like hydrochloric acid release all or nearly all their hydrogen ions and weak acids like carbonic acid release some hydrogen ions.
[7] Elmasri & Navathe. Fundamentals of database systems, 4th edition. Addison-Wesley, Redwood City, CA. 2004.
One of them could be the system could crash as if not saved data can
Normalization, Integrity and Security are the important role for a DBA, Normalization helps to avoid data redundancy by reviewing data base structure at certain level. It helps to build an effective data model. Data Integrity provide some level of assurance over the information getting store and retrieved from database, DBA has to understand all DBMS features use them correctly for Data Integrity. Data Security is toughest part for DBA, auditing and multiple level security can protect data but none of them provide complete security, security can also be managed by encrypting and masking the organization data.
A database is a structured collection of data. Data refers to the characteristics of people, things, and events. Oracle stores each data item in its own field. For example, a person's first name, date of birth, and their postal code are each stored in separate fields. The name of a field usually reflects...
After successfully checking out it will delete the details from the local database and update the history for security issues.
The Database Management System (DBMS) is software that enables the users to define, create, maintain and control the access to the database. It is a software that interact with the user’s applications programs and it database. Meanwhile, information retrieval system is a system that involved the activity that the systems obtain the information. The obtaining information action need the information from it resources.
of multiple types of end users. The data is stored in one location so that they