SlideShare a Scribd company logo
1 of 26
Daffodil International University
Name: Rinku Nahar Hossan
Normalization: The biggest problem needed to be solved in database is data
redundancy. Normalization is a process which can remove or reduce
redundancy of a database.
Why data redundancy is the problem?
Because it causes:
1. Insert Anomaly
2. Update Anomaly
3. Delete Anomaly
Steps of Normalization
 First Normal Form (1NF)
 Second Normal Form (2NF)
 Third Normal Form (3NF)
Table Student:
Student_ID Name Subject PostCode City
10617 Rinku DBMS,AOL 1212 Lalbagh
10571 Susmita DBMS,NETWORKI
NG
1204 Sahabagh
10741 Shakir DBMS,C 1309 Mirpur01
10546 Rod DBMS 1407 Mirpur14
1st Normal Form:
1.Each attribute name must be unique.
2. Each attribute value must be single.
3. Each row must be unique.
4. There is no repeating groups.
Student_ID Name Subject PostCode City
10617 Rinku DBMS 1212 Lalbagh
10617 Rinku AOL 1212 Lalbagh
10571 Susmita DBMS 1204 Shahabagh
10571 Susmita NETWORKING 1204 Shahabagh
10741 Shakir DBMS 1309 Mirpur01
10741 Shakir C 1309 Mirpur01
10546 Rod DBMS 1407 Mirpur14
2ND Normal Form:
1. A table is already in 1NF.
2. All nonkey attributes are fully dependent on the primary key. All partial dependencies are
removed to place in another table.
Table: Student_Info Table:Student_Sub
Student_ID Name PostCode City
10617 Rinku 1212 Lalbagh
10571 Susmita 1204 Shahabagh
10741 Shakir 1309 Mirpur01
10546 Rod 1407 Mirpur14
Student_ID Subject
10617 DBMS
10617 AOL
10571 DBMS
10571 NETWORKIN
G
10741 DBMS
10741 C
10546 DBMS
3rd Normal Form:
1. A table is already in 2NF.
2.Nonprimary key attributes do not depend on other nonprimary key attributes (i.e. no transitive
dependencies) All transitive dependencies are removed to place in another table.
Table: Student_Info Table:Student_city
Table:
Student_Sub
Student_Id Name PostCode
10617 Rinku 1212
10571 Susmita 1204
10741 Shakir 1309
10546 Rod 1407
PostCode City
1212 Lalbagh
1204 Sahabagh
1309 Mirpur01
1407 Mirpur14
Student_ID Subject
10617 DBMS
10617 AOL
10571 DBMS
10571 NETWORK
ING
10741 DBMS
10741 C
10546 DBMS
Functional Dependency: Functional dependency is a relationship that
exists when one attribute uniquely determines another attributes. If R
is a relation with attributes X and Y, a functional dependency between
the attributes is represented as X Y, which specifies Y is functionally
dependent on X.
For Example :- Suppose we have a student table with attributes:
Stu_ID, Stu_Name, Stu_Age. Here Stu_ID attribute uniquely identifies
the Stu_Name attribute of student table because ID we can tell the
student name associated with it.
Full Functional Depenedency:A Functional Dependency X Y is a full
functional dependency if removal of any attributes A from X means that
the dependency does not hold any more.
Here Roll_No, Course Grade
Roll_No Name Course Grade
01 Rinku DBMS 4
02 Susmita AOL 4
03 Shakir NETWORKING 3.75
Partial Functional Dependency: Partial Dependency occurs when a non-prime attribute
is functionally dependent on part of a candidate key.
The 2nd Normal Form (2NF) eliminates the Partial Dependency.
Here Roll_No , Project_No are the primary attributes.
Roll_No Student_Name
Project_No Project_Name
Roll_No Project_No Student_Name Project_Name
01 20 Rinku SRT
02 34 Susmita BGY
03 21 Shakir XYZ
Transitive Functional Dependency:A functional dependency is said to be
transitive if it is indirectly formed by two functional dependencies.
X->Z is a transitive dependency if the following three functional dependencies hold true:
• X->Y
• Y does not -> X
• Y->Z
A transitive dependency can only occur in a relation of three of more attributes. This
dependency helps us normalizing the database in 3NF (3rd Normal Form).
Example:
Book Author Author_Age
Sherlcok Holmes Conan Doyle 66
Harry Potter J.K.Rowling 49
Dying Of the Light George R.R Martin 68
{Book}->{Author} (if we know the book, we knows the author name)
{Author} does not->{Book}
 {Author} ->{Author_age}
 Therefore as per the rule of transitive dependency.
 {Book}->{Author_age} should hold, that makes sense because if we
know the book name we can know the author’s age.
KEY:A key part of a relational database and a vital part of the structure of a table.
They ensure each record within a table can be uniquely identified by one or a
combination of fields within the table. They help enforce integrity and help identify
the relationship between tables.
Super key: A super key is a set of one or more attributes (columns), which can
uniquely identify a row in a table.
Example:
The Car relation schema:
CAR(State, Reg, SerialNo, Make, Model, Year)
Here Super key is {SrialNo, Make}
A candidate key is a super key but vice versa is not true.
Primary Key: A primary key is used as a unique identifier to quickly parse
data within the database and find the relation between different tables. A
relational database cannot have more than one primary key.
Example:
Candidate key: A candidate key is a column, or set of columns, in a table that
can uniquely identify any database record without referring to any other data.
Each table may have one or more candidate keys, but one candidate key is
unique, and it is called the primary key.
Example:
Foreign Key: A foreign key is a column or group of columns in a relational
database table that provides a link between data in two tables. It acts as a
cross-reference between tables because it references the primary key of another
table, thereby establishing a link between them.
Example:
DDL:
 DDL stands for Data Definition Language.
 DDL statements are used to build and modify the structure of tables and other objects
in the database
 DDL is a sub-language of SQL used to create and manipulate objects in a database
Advantages of DDL :
 Shared data
 Data independence
 Improved integrity
 Multiple user
 Improved security
 Efficient data access
DML:
 DML stands for Data Manipulation Language.
 A DML is a family of syntax elements similar to a computer programming language
used for
selecting,
inserting,
deleting and
updating data in a database.
Advantages of DML:
 The DML statements can modify the data stored in a database.
 User can specify what data is needed.
 DML tends to have many different flavors and capabilities between database vendors.
 It provides efficient human interaction with the system.
Disadvantages of DML:
 DML cannot be used to change the database structure.
 Tables or columns cannot be created or deleted using DML.
 View the data without storing the data into the object.
 Restrict the view of a table i.e. Can hide some of columns in the tables.
Generalization: In generalization, a number of entities are brought together
into one generalized entity based on their similar characteristics.
Example:
Specialization: A group of entities is divided into sub-groups based on their
characteristics. Specialization is the just opposite of generalization.
Example:
Dbms

More Related Content

What's hot

Dbms interview ques
Dbms interview quesDbms interview ques
Dbms interview quesSwatiJain303
 
The relational data model part[1]
The relational data model part[1]The relational data model part[1]
The relational data model part[1]Bashir Rezaie
 
Relational Database Fundamentals
Relational Database FundamentalsRelational Database Fundamentals
Relational Database FundamentalsKHALID C
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questionsambika93
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...Mustafa Kamel Mohammadi
 
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...Raj vardhan
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational modelChirag vasava
 
DBMS VIVA QUESTIONS_CODERS LODGE.pdf
DBMS VIVA QUESTIONS_CODERS LODGE.pdfDBMS VIVA QUESTIONS_CODERS LODGE.pdf
DBMS VIVA QUESTIONS_CODERS LODGE.pdfnofakeNews
 
Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Eddyzulham Mahluzydde
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relationalJafar Nesargi
 
Relational database- Fundamentals
Relational database- FundamentalsRelational database- Fundamentals
Relational database- FundamentalsMohammed El Hedhly
 
Database Design and Normalization Techniques
Database Design and Normalization TechniquesDatabase Design and Normalization Techniques
Database Design and Normalization TechniquesNishant Munjal
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational modelATS SBGI MIRAJ
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database languageJafar Nesargi
 
Dbms Interview Question And Answer
Dbms Interview Question And AnswerDbms Interview Question And Answer
Dbms Interview Question And AnswerJagan Mohan Bishoyi
 

What's hot (20)

Dbms interview ques
Dbms interview quesDbms interview ques
Dbms interview ques
 
The relational data model part[1]
The relational data model part[1]The relational data model part[1]
The relational data model part[1]
 
Dbms relational data model and sql queries
Dbms relational data model and sql queries Dbms relational data model and sql queries
Dbms relational data model and sql queries
 
Relational Database Fundamentals
Relational Database FundamentalsRelational Database Fundamentals
Relational Database Fundamentals
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
 
Relational model
Relational modelRelational model
Relational model
 
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
 
Rdbms concepts
Rdbms conceptsRdbms concepts
Rdbms concepts
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
DBMS VIVA QUESTIONS_CODERS LODGE.pdf
DBMS VIVA QUESTIONS_CODERS LODGE.pdfDBMS VIVA QUESTIONS_CODERS LODGE.pdf
DBMS VIVA QUESTIONS_CODERS LODGE.pdf
 
Relational model
Relational modelRelational model
Relational model
 
Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
 
Relational database- Fundamentals
Relational database- FundamentalsRelational database- Fundamentals
Relational database- Fundamentals
 
Database Design and Normalization Techniques
Database Design and Normalization TechniquesDatabase Design and Normalization Techniques
Database Design and Normalization Techniques
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational model
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
 
Dbms Interview Question And Answer
Dbms Interview Question And AnswerDbms Interview Question And Answer
Dbms Interview Question And Answer
 

Similar to Dbms

Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbmsAnjaan Gajendra
 
Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)Rakibul Hasan Pranto
 
introduction of database in DBMS
introduction of database in DBMSintroduction of database in DBMS
introduction of database in DBMSAbhishekRajpoot8
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Conceptsadukkas
 
Ajit_RDBMS.pptxhhhjikjhhgfhgggggghhhhhhjj
Ajit_RDBMS.pptxhhhjikjhhgfhgggggghhhhhhjjAjit_RDBMS.pptxhhhjikjhhgfhgggggghhhhhhjj
Ajit_RDBMS.pptxhhhjikjhhgfhgggggghhhhhhjjsanketsdighe2005
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part IIKavithaA19
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)SURBHI SAROHA
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)SURBHI SAROHA
 
Islamic University Previous Year Question Solution 2019 (ADBMS)
Islamic University Previous Year Question Solution 2019 (ADBMS)Islamic University Previous Year Question Solution 2019 (ADBMS)
Islamic University Previous Year Question Solution 2019 (ADBMS)Rakibul Hasan Pranto
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database Rc Os
 
Updated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptxUpdated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptxTHEFPS
 
Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013Prosanta Ghosh
 
DBMS and Rdbms fundamental concepts
DBMS and Rdbms fundamental conceptsDBMS and Rdbms fundamental concepts
DBMS and Rdbms fundamental conceptsKuntal Bhowmick
 

Similar to Dbms (20)

NMEC RD_UNIT 1.ppt
NMEC RD_UNIT 1.pptNMEC RD_UNIT 1.ppt
NMEC RD_UNIT 1.ppt
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
 
Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)
 
introduction of database in DBMS
introduction of database in DBMSintroduction of database in DBMS
introduction of database in DBMS
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Concepts
 
Ajit_RDBMS.pptxhhhjikjhhgfhgggggghhhhhhjj
Ajit_RDBMS.pptxhhhjikjhhgfhgggggghhhhhhjjAjit_RDBMS.pptxhhhjikjhhgfhgggggghhhhhhjj
Ajit_RDBMS.pptxhhhjikjhhgfhgggggghhhhhhjj
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
 
Islamic University Previous Year Question Solution 2019 (ADBMS)
Islamic University Previous Year Question Solution 2019 (ADBMS)Islamic University Previous Year Question Solution 2019 (ADBMS)
Islamic University Previous Year Question Solution 2019 (ADBMS)
 
D B M S Animate
D B M S AnimateD B M S Animate
D B M S Animate
 
DBMS CS 4-5
DBMS CS 4-5DBMS CS 4-5
DBMS CS 4-5
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
 
Updated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptxUpdated_rdbms-161216100344 (1).pptx
Updated_rdbms-161216100344 (1).pptx
 
Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013
 
DBMS and Rdbms fundamental concepts
DBMS and Rdbms fundamental conceptsDBMS and Rdbms fundamental concepts
DBMS and Rdbms fundamental concepts
 
Sql basics
Sql basicsSql basics
Sql basics
 
RDBMS
RDBMSRDBMS
RDBMS
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 

More from RinkuNahar

Animation in Computer Graphics
Animation in Computer GraphicsAnimation in Computer Graphics
Animation in Computer GraphicsRinkuNahar
 
Fire Alarm System Project
Fire Alarm System ProjectFire Alarm System Project
Fire Alarm System ProjectRinkuNahar
 
Computer network
Computer network Computer network
Computer network RinkuNahar
 

More from RinkuNahar (7)

Animation in Computer Graphics
Animation in Computer GraphicsAnimation in Computer Graphics
Animation in Computer Graphics
 
Fire Alarm System Project
Fire Alarm System ProjectFire Alarm System Project
Fire Alarm System Project
 
Simulation
SimulationSimulation
Simulation
 
Software
SoftwareSoftware
Software
 
Computer network
Computer network Computer network
Computer network
 
Eco
EcoEco
Eco
 
Accounting
AccountingAccounting
Accounting
 

Recently uploaded

Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
hybrid Seed Production In Chilli & Capsicum.pptx
hybrid Seed Production In Chilli & Capsicum.pptxhybrid Seed Production In Chilli & Capsicum.pptx
hybrid Seed Production In Chilli & Capsicum.pptx9to5mart
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...amitlee9823
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Pooja Nehwal
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...karishmasinghjnh
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...amitlee9823
 

Recently uploaded (20)

Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
hybrid Seed Production In Chilli & Capsicum.pptx
hybrid Seed Production In Chilli & Capsicum.pptxhybrid Seed Production In Chilli & Capsicum.pptx
hybrid Seed Production In Chilli & Capsicum.pptx
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 

Dbms

  • 2.
  • 3. Normalization: The biggest problem needed to be solved in database is data redundancy. Normalization is a process which can remove or reduce redundancy of a database. Why data redundancy is the problem? Because it causes: 1. Insert Anomaly 2. Update Anomaly 3. Delete Anomaly Steps of Normalization  First Normal Form (1NF)  Second Normal Form (2NF)  Third Normal Form (3NF)
  • 4. Table Student: Student_ID Name Subject PostCode City 10617 Rinku DBMS,AOL 1212 Lalbagh 10571 Susmita DBMS,NETWORKI NG 1204 Sahabagh 10741 Shakir DBMS,C 1309 Mirpur01 10546 Rod DBMS 1407 Mirpur14
  • 5. 1st Normal Form: 1.Each attribute name must be unique. 2. Each attribute value must be single. 3. Each row must be unique. 4. There is no repeating groups. Student_ID Name Subject PostCode City 10617 Rinku DBMS 1212 Lalbagh 10617 Rinku AOL 1212 Lalbagh 10571 Susmita DBMS 1204 Shahabagh 10571 Susmita NETWORKING 1204 Shahabagh 10741 Shakir DBMS 1309 Mirpur01 10741 Shakir C 1309 Mirpur01 10546 Rod DBMS 1407 Mirpur14
  • 6. 2ND Normal Form: 1. A table is already in 1NF. 2. All nonkey attributes are fully dependent on the primary key. All partial dependencies are removed to place in another table. Table: Student_Info Table:Student_Sub Student_ID Name PostCode City 10617 Rinku 1212 Lalbagh 10571 Susmita 1204 Shahabagh 10741 Shakir 1309 Mirpur01 10546 Rod 1407 Mirpur14 Student_ID Subject 10617 DBMS 10617 AOL 10571 DBMS 10571 NETWORKIN G 10741 DBMS 10741 C 10546 DBMS
  • 7. 3rd Normal Form: 1. A table is already in 2NF. 2.Nonprimary key attributes do not depend on other nonprimary key attributes (i.e. no transitive dependencies) All transitive dependencies are removed to place in another table. Table: Student_Info Table:Student_city Table: Student_Sub Student_Id Name PostCode 10617 Rinku 1212 10571 Susmita 1204 10741 Shakir 1309 10546 Rod 1407 PostCode City 1212 Lalbagh 1204 Sahabagh 1309 Mirpur01 1407 Mirpur14 Student_ID Subject 10617 DBMS 10617 AOL 10571 DBMS 10571 NETWORK ING 10741 DBMS 10741 C 10546 DBMS
  • 8.
  • 9. Functional Dependency: Functional dependency is a relationship that exists when one attribute uniquely determines another attributes. If R is a relation with attributes X and Y, a functional dependency between the attributes is represented as X Y, which specifies Y is functionally dependent on X. For Example :- Suppose we have a student table with attributes: Stu_ID, Stu_Name, Stu_Age. Here Stu_ID attribute uniquely identifies the Stu_Name attribute of student table because ID we can tell the student name associated with it. Full Functional Depenedency:A Functional Dependency X Y is a full functional dependency if removal of any attributes A from X means that the dependency does not hold any more.
  • 10. Here Roll_No, Course Grade Roll_No Name Course Grade 01 Rinku DBMS 4 02 Susmita AOL 4 03 Shakir NETWORKING 3.75
  • 11. Partial Functional Dependency: Partial Dependency occurs when a non-prime attribute is functionally dependent on part of a candidate key. The 2nd Normal Form (2NF) eliminates the Partial Dependency. Here Roll_No , Project_No are the primary attributes. Roll_No Student_Name Project_No Project_Name Roll_No Project_No Student_Name Project_Name 01 20 Rinku SRT 02 34 Susmita BGY 03 21 Shakir XYZ
  • 12. Transitive Functional Dependency:A functional dependency is said to be transitive if it is indirectly formed by two functional dependencies. X->Z is a transitive dependency if the following three functional dependencies hold true: • X->Y • Y does not -> X • Y->Z A transitive dependency can only occur in a relation of three of more attributes. This dependency helps us normalizing the database in 3NF (3rd Normal Form). Example: Book Author Author_Age Sherlcok Holmes Conan Doyle 66 Harry Potter J.K.Rowling 49 Dying Of the Light George R.R Martin 68
  • 13. {Book}->{Author} (if we know the book, we knows the author name) {Author} does not->{Book}  {Author} ->{Author_age}  Therefore as per the rule of transitive dependency.  {Book}->{Author_age} should hold, that makes sense because if we know the book name we can know the author’s age.
  • 14.
  • 15. KEY:A key part of a relational database and a vital part of the structure of a table. They ensure each record within a table can be uniquely identified by one or a combination of fields within the table. They help enforce integrity and help identify the relationship between tables. Super key: A super key is a set of one or more attributes (columns), which can uniquely identify a row in a table. Example: The Car relation schema: CAR(State, Reg, SerialNo, Make, Model, Year) Here Super key is {SrialNo, Make} A candidate key is a super key but vice versa is not true.
  • 16. Primary Key: A primary key is used as a unique identifier to quickly parse data within the database and find the relation between different tables. A relational database cannot have more than one primary key. Example:
  • 17. Candidate key: A candidate key is a column, or set of columns, in a table that can uniquely identify any database record without referring to any other data. Each table may have one or more candidate keys, but one candidate key is unique, and it is called the primary key. Example:
  • 18. Foreign Key: A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables. It acts as a cross-reference between tables because it references the primary key of another table, thereby establishing a link between them. Example:
  • 19.
  • 20. DDL:  DDL stands for Data Definition Language.  DDL statements are used to build and modify the structure of tables and other objects in the database  DDL is a sub-language of SQL used to create and manipulate objects in a database Advantages of DDL :  Shared data  Data independence  Improved integrity  Multiple user  Improved security  Efficient data access
  • 21. DML:  DML stands for Data Manipulation Language.  A DML is a family of syntax elements similar to a computer programming language used for selecting, inserting, deleting and updating data in a database. Advantages of DML:  The DML statements can modify the data stored in a database.  User can specify what data is needed.  DML tends to have many different flavors and capabilities between database vendors.  It provides efficient human interaction with the system.
  • 22. Disadvantages of DML:  DML cannot be used to change the database structure.  Tables or columns cannot be created or deleted using DML.  View the data without storing the data into the object.  Restrict the view of a table i.e. Can hide some of columns in the tables.
  • 23.
  • 24. Generalization: In generalization, a number of entities are brought together into one generalized entity based on their similar characteristics. Example:
  • 25. Specialization: A group of entities is divided into sub-groups based on their characteristics. Specialization is the just opposite of generalization. Example: