SlideShare a Scribd company logo
1 of 41
©Silberschatz, Korth and Sudarshan
1.1
Database System Concepts
Chapter 2:Introduction to the Relational
Model
 Structure of Relational Databases
 Database schema
 Keys
 SQL
©Silberschatz, Korth and Sudarshan
1.2
Database System Concepts
 A relational database consists of a collection of tables, each of
which is assigned a unique name. For example, consider the
instructor table
©Silberschatz, Korth and Sudarshan
1.3
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.4
Database System Concepts
 Relation
 Tuple
 Attribute
 Relation schema
 Relation instance
 Degree
 Cardinality
 Domain
 Atomic
 Null Values
©Silberschatz, Korth and Sudarshan
1.5
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.6
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.7
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.8
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.9
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.10
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.11
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.12
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.13
Database System Concepts
 The null value is a special value that signifies that the value is
unknown or does not exist.
©Silberschatz, Korth and Sudarshan
1.14
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.15
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.16
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.17
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.18
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.19
Database System Concepts
Keys
 A superkey is a set of one or more attributes that, taken collectively,
allow us to identify uniquely a tuple in the relation.
©Silberschatz, Korth and Sudarshan
1.20
Database System Concepts
 Candidate keys are super keys for which no proper subset is a
super key. Such minimal super keys are called candidate keys.
©Silberschatz, Korth and Sudarshan
1.21
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.22
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.23
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.24
Database System Concepts
Keep email as one of the superkey
above,,,,
©Silberschatz, Korth and Sudarshan
1.25
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.26
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.27
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.28
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.29
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.30
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.31
Database System Concepts
Foreign key
 It is an attribute in the table which refers the primary key
of the another table
 It is used to link the two tables together.
 Maintains referential integrity.
©Silberschatz, Korth and Sudarshan
1.32
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.33
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.34
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.35
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.36
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.37
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.38
Database System Concepts
©Silberschatz, Korth and Sudarshan
1.39
Database System Concepts
Primary key
©Silberschatz, Korth and Sudarshan
1.40
Database System Concepts
Alternate/secondary key
 All candidate key other than the primary key.
 Unique key :all candidate key which can support null values
©Silberschatz, Korth and Sudarshan
1.41
Database System Concepts

More Related Content

Similar to ch2_jayarao.ppt (20)

Ch1
Ch1Ch1
Ch1
 
Data base management systems ppt
Data base management systems pptData base management systems ppt
Data base management systems ppt
 
check 11
check 11check 11
check 11
 
Ch2
Ch2Ch2
Ch2
 
DBMS PPT 3.pptx
DBMS PPT 3.pptxDBMS PPT 3.pptx
DBMS PPT 3.pptx
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
PPT (2).ppt
PPT (2).pptPPT (2).ppt
PPT (2).ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
App a
App aApp a
App a
 
Ch3 a
Ch3 aCh3 a
Ch3 a
 
Ch3
Ch3Ch3
Ch3
 
UNIT-1 PPT.pptCS 3492 DBMS UNIT 1 to 5 overview Unit 1 slides including purpo...
UNIT-1 PPT.pptCS 3492 DBMS UNIT 1 to 5 overview Unit 1 slides including purpo...UNIT-1 PPT.pptCS 3492 DBMS UNIT 1 to 5 overview Unit 1 slides including purpo...
UNIT-1 PPT.pptCS 3492 DBMS UNIT 1 to 5 overview Unit 1 slides including purpo...
 
Basic er diagram
Basic er diagramBasic er diagram
Basic er diagram
 
DDL DML sysytems
DDL DML sysytemsDDL DML sysytems
DDL DML sysytems
 
Relational algebra.pptx
Relational algebra.pptxRelational algebra.pptx
Relational algebra.pptx
 
Network model.ppt
Network model.pptNetwork model.ppt
Network model.ppt
 
DBMS ch1.pdf
DBMS ch1.pdfDBMS ch1.pdf
DBMS ch1.pdf
 
Database System Concepts ch4.pdf
Database System Concepts ch4.pdfDatabase System Concepts ch4.pdf
Database System Concepts ch4.pdf
 
PPT demo
PPT demoPPT demo
PPT demo
 

More from jayarao21 (8)

authentication.ppt
authentication.pptauthentication.ppt
authentication.ppt
 
6.Lab Syllabus.docx
6.Lab Syllabus.docx6.Lab Syllabus.docx
6.Lab Syllabus.docx
 
unit5_part2.pptx
unit5_part2.pptxunit5_part2.pptx
unit5_part2.pptx
 
CCCDjango2010.pdf
CCCDjango2010.pdfCCCDjango2010.pdf
CCCDjango2010.pdf
 
digital_sign_interview.ppt
digital_sign_interview.pptdigital_sign_interview.ppt
digital_sign_interview.ppt
 
introdution-to-html_jayarao27_11_22.pptx
introdution-to-html_jayarao27_11_22.pptxintrodution-to-html_jayarao27_11_22.pptx
introdution-to-html_jayarao27_11_22.pptx
 
DFS.pdf
DFS.pdfDFS.pdf
DFS.pdf
 
MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdf
 

Recently uploaded

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 

Recently uploaded (20)

Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 

ch2_jayarao.ppt