This document discusses database anomalies that can occur when data is stored in a single, unnormalized table. It provides examples of insert, delete, and update anomalies and how normalization helps address these issues. The document also demonstrates how to model relationships between entities as relations and add foreign keys to represent those relationships without anomalies.
Database normalization is the process of refining the data in accordance with a series of normal forms. This is done to reduce data redundancy and improve data integrity. This process divides large tables into small tables and links them using relationships.
Here is the link of full article: https://www.support.dbagenesis.com/post/database-normalization
Database normalization is the process of refining the data in accordance with a series of normal forms. This is done to reduce data redundancy and improve data integrity. This process divides large tables into small tables and links them using relationships.
Here is the link of full article: https://www.support.dbagenesis.com/post/database-normalization
Introduction to Relational algebra in DBMS - The relational algebra is explained with all the operations. Some of the examples from the textbook is also solved and explained.
Introduction to Relational algebra in DBMS - The relational algebra is explained with all the operations. Some of the examples from the textbook is also solved and explained.
Cherwell administrators can work and design solutions more efficiently simply by following a few tips that will help solve business challenges more effectively. Whether you are a seasoned Cherwell administrator or fresh out of training, these design tips from a Cherwell Service Management guru will help you unleash the power of the Cherwell platform and ensure your design and automation is efficient and scalable.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.
This PPT will help to understand how learning happens in brain. How you can adjust your skill acquisition in the right way so that maximum output is obtained.
Baabtra.com has a solution to provide programming for kids in school. This is based on the CBSE curriculum of India. The main subjects covered are Mathematics and Physics.
99LMS is a mobile based comprehensive enterprise learning environment in which learning processes of a company can be managed and integrated. It ensures employees have the right skills by enabling course content management, providing classroom training and e-learning. Through the APIs, you can develop your resources before they join your company.
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
2. Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
4. Anomaly
Normalization is a technique for producing
relational schema with the following
properties.
• no information redundancy.
• no anomalies.
so we are clear when the process of reducing
the anomaly comes into action.
5. What is an Anomaly?
• Definition
– Problems that can occur in poorly planned, un-
normalized databases where all the data is stored
in one table (a flat-file database).
7. Insert Anomaly
• An Insert Anomaly occurs when certain
attributes cannot be inserted into the
database without the presence of other
attributes.
8. Insert Anomaly
Course _no Tutor Room Room_size En_limit
353 Smith A532 45 40
351 Smith C320 100 60
355 Clark H940 400 300
456 Turner H940 400 45
e.g. we have built a new room (e.g. B123) but it has not yet been timetabled
for any courses or members of staff.
9. Delete Anomaly
• A Delete Anomaly exists when certain
attributes are lost because of the deletion of
other attributes.
10. Delete Anomaly
Course_no Tutor Room Room_size En_limit
353 Smith A532 45 40
351 Smith C320 100 60
355 Clark H940 400 300
456 Turner H940 400 45
e.g. if we remove the entity, course_no:351 from the above table, the details of
room C320 get deleted. Which implies the corresponding course will also get
deleted.
11. Update Anomaly
• An Update Anomaly exists when one or more
instances of duplicated data is updated, but
not all.
12. Update Anomaly
Course_no Tutor Room Room_size En_limit
353 Smith A532 45 40
351 Smith C320 100 60
355 Clark H940 400 300
456 Turner H940 400 45
e.g. Room H940 has been improved, it is now of RSize = 500. For updating
a single entity, we have to update all other columns where room=H940.
13. A conceptual model
• Consider the following ‘simple’ conceptual
data model:
Staff( Staff-id, Name,address, scale_point, Rate_of_pay, DOB..)
Student(Enroll-no, Name, Address, Olevelpoints..)
Course(Course-code, Name, Duration..)
Course StudentStaff
M M1N
14. The ‘Translation’ process
• Entities become relations.
• Attributes become attributes.
• Entity identifier (s) become primary key(s)
• Relationships are represented by additional
foreign keys attributes in those relation that
are at the ‘M’ end of the 1:M relationship.
15. The ‘Staff’ and ‘Student’ relations
• Staff(Staff-id, Name , Address, Rate-of-pay, DOB)
• Student(Enrol-no, Name, Address, Olevelpoints, Tutor);
NB: Foreign Key Tutor references Staff.Staff_id
Staff_id Name Address Scale point Rate_of_pay DOB
Enrol-no Name Address Olevelpoints Tutor
16. The ‘Staff’ & ‘Course’ relations
• Staff
• Course
NB: according to the conceptual model specified, both the above entities
have M:M relationships at the end.
We must create an artificial link in between these two entities.
Staff_id Name Address Scalepoint Rate_of_pay DOB
Course-code Name Duration
17. The ‘Staff’, ‘Course’ and ‘Team’ relations
• Staff
• Team
• Course
Staff_id Name Address Scalepoint Rate_of_pay DOB
Course_code Staff_id
Course_code Name Duration
18. The ‘Staff’, ‘Course’ and ‘Team’ relations
• In our new relation ‘Team’:
– Primary key is the combination of Course_code
and Staff_id.
– Foreign key Course_code references
Course.Course_code.
– Foreign key Staff_id references Staff.Staff_id.
19. For 3 entities 4 relations
• Student
• Staff
• Team
• Course
But these tables are not free from the above anomalies!
Enrol_no Name Address Olevelpoints Tutor
Staff_id Name Address Scalepoint RateofPay DOB
Course_code Staff_id
Course_code Name Duration
20. Checking for anomalies
• every tuple unique?
• no hidden meaning from location?
• data cells atomic?
• For relations with single_attribute keys:
– every attribute depends upon the primary key
• For relations with composite keys:
– Every attribute depends upon the whole key(the
components of this key are prime attributes?)
21. Relation fails
• Especially when we check dependency between
various attributes in a relationship.
• So we must split that relation into two relations.
• And we should create a foreign key in the new table
which references the primary key in the old table.
22. Problem arises
• The attribute ‘Rate_of_pay’ does not depends on the ‘Staff_id’ but on
‘Scalepoint’ in the relation Staff.
• So the next step will be splitting the relation Staff into relation Staff and
relation Pay.
Staff
Pay
Where in new relation Pay;
Combination of Scalepoint and rate_of_pay is taken as primary key.
Foreign key Scalepoint references Staff.Scalepoint.
Staff_id Name Address Scalepoint DOB
Scalepoint Rate_of_Pay
23. For 3 entities 5 relations
• Student
• Staff
• Team
• Course
• Pay
Enrol_no Name Address Olevelpoints Tutor
Staff_id Name Address Scalepoint DOB
Course_code Staff_id
Course_code Name Duration
Scalepoint Rate_of_pay
24. If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com