©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

PPT
databasemanagementsystempptforbeginners.ppt
PPT
Introduction to Database System Concepts
PPT
DATABASE MANAGEMENT SYSTEM POLYTECHNICch2.ppt
PDF
DATABASE RELATIONSHIP MODEL FOR WHO WANT TO BE A DATABASE ADMINISTRATOR
PPT
ER Modeling for making database more properly
PPT
Data Base Management Systems 93884-81831-ch2.ppt
PPT
databasemanagementsystempptforbeginners.ppt
Introduction to Database System Concepts
DATABASE MANAGEMENT SYSTEM POLYTECHNICch2.ppt
DATABASE RELATIONSHIP MODEL FOR WHO WANT TO BE A DATABASE ADMINISTRATOR
ER Modeling for making database more properly
Data Base Management Systems 93884-81831-ch2.ppt

Similar to ch2_jayarao.ppt (20)

PPT
E-r Model.ppt
PPT
database system query optimization in on
PPT
ER.ppt
PPT
PPT
relational algebra and calculus queries .ppt
PDF
Data base management systems ppt
PPT
check 11
PPT
database management System how we handle it
PPT
database managment hsahjgsahdhggdhasdasghasg
PPT
ch01-25038fdhfhgddsdgasfTTRYTUJGHFGJ.ppt
PPT
Database Management Systems 93884-81828-ch1.ppt
PPT
PPT
ch1.ppt
PPT
PPTX
DBMS PPT 3.pptx
PPT
ch1.ppt
PPTX
ch13.pptx Database effefiency and tuning
PPT
chapter3 of DBMS includes relational algebra.ppt
E-r Model.ppt
database system query optimization in on
ER.ppt
relational algebra and calculus queries .ppt
Data base management systems ppt
check 11
database management System how we handle it
database managment hsahjgsahdhggdhasdasghasg
ch01-25038fdhfhgddsdgasfTTRYTUJGHFGJ.ppt
Database Management Systems 93884-81828-ch1.ppt
ch1.ppt
DBMS PPT 3.pptx
ch1.ppt
ch13.pptx Database effefiency and tuning
chapter3 of DBMS includes relational algebra.ppt
Ad

More from jayarao21 (11)

PPTX
Unit-1&2,mdngmnd,mngmdnmgnmdnfmngdf.pptx
PPTX
Unit-3sdmghhkjdhjghjkdshjghnsbnmgbh.pptx
PPTX
Introtodiscteremath123456789qwertyu.pptx
PPT
authentication.ppt
DOCX
6.Lab Syllabus.docx
PPTX
unit5_part2.pptx
PDF
CCCDjango2010.pdf
PPT
digital_sign_interview.ppt
PPTX
introdution-to-html_jayarao27_11_22.pptx
PDF
DFS.pdf
PDF
MFCS PPT.pdf
Unit-1&2,mdngmnd,mngmdnmgnmdnfmngdf.pptx
Unit-3sdmghhkjdhjghjkdshjghnsbnmgbh.pptx
Introtodiscteremath123456789qwertyu.pptx
authentication.ppt
6.Lab Syllabus.docx
unit5_part2.pptx
CCCDjango2010.pdf
digital_sign_interview.ppt
introdution-to-html_jayarao27_11_22.pptx
DFS.pdf
MFCS PPT.pdf
Ad

Recently uploaded (20)

PPTX
AI-Reporting for Emerging Technologies(BS Computer Engineering)
PDF
ASPEN PLUS USER GUIDE - PROCESS SIMULATIONS
PPTX
Environmental studies, Moudle 3-Environmental Pollution.pptx
PPTX
Unit IImachinemachinetoolopeartions.pptx
PDF
Principles of operation, construction, theory, advantages and disadvantages, ...
PPTX
Design ,Art Across Digital Realities and eXtended Reality
PPT
Programmable Logic Controller PLC and Industrial Automation
PDF
Cryptography and Network Security-Module-I.pdf
PDF
MACCAFERRY GUIA GAVIONES TERRAPLENES EN ESPAÑOL
PPTX
Micro1New.ppt.pptx the main themes if micro
PPTX
Environmental studies, Moudle 3-Environmental Pollution.pptx
PPTX
MAD Unit - 3 User Interface and Data Management (Diploma IT)
PDF
Micro 4 New.ppt.pdf a servay of cells and microorganism
PDF
electrical machines course file-anna university
PDF
Micro 3 New.ppt.pdf tools the laboratory the method
PPTX
WN UNIT-II CH4_MKaruna_BapatlaEngineeringCollege.pptx
PDF
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
DOCX
ENVIRONMENTAL PROTECTION AND MANAGEMENT (18CVL756)
PDF
Project_Mgmt_Institute_-Marc Marc Marc .pdf
PDF
[jvmmeetup] next-gen integration with apache camel and quarkus.pdf
AI-Reporting for Emerging Technologies(BS Computer Engineering)
ASPEN PLUS USER GUIDE - PROCESS SIMULATIONS
Environmental studies, Moudle 3-Environmental Pollution.pptx
Unit IImachinemachinetoolopeartions.pptx
Principles of operation, construction, theory, advantages and disadvantages, ...
Design ,Art Across Digital Realities and eXtended Reality
Programmable Logic Controller PLC and Industrial Automation
Cryptography and Network Security-Module-I.pdf
MACCAFERRY GUIA GAVIONES TERRAPLENES EN ESPAÑOL
Micro1New.ppt.pptx the main themes if micro
Environmental studies, Moudle 3-Environmental Pollution.pptx
MAD Unit - 3 User Interface and Data Management (Diploma IT)
Micro 4 New.ppt.pdf a servay of cells and microorganism
electrical machines course file-anna university
Micro 3 New.ppt.pdf tools the laboratory the method
WN UNIT-II CH4_MKaruna_BapatlaEngineeringCollege.pptx
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
ENVIRONMENTAL PROTECTION AND MANAGEMENT (18CVL756)
Project_Mgmt_Institute_-Marc Marc Marc .pdf
[jvmmeetup] next-gen integration with apache camel and quarkus.pdf

ch2_jayarao.ppt