SlideShare a Scribd company logo
1 of 11
MIS 301 RELATIONAL DATABASE
MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
Concepts of tables, records, attributes, keys, integrity constraints, data independence
LECTURES 2&3
PROF. KRISHNA ROY
PROF. KRISHNA ROY, FMS, BCREC 1
Three levels of data abstraction
• Physical: This is the lowest level of data abstraction. It tells us how the data is actually stored in
memory. The access methods like sequential or random access and file organisation methods like
B+ trees, hashing are used for the same. Suppose we need to store the details of an employee.
Blocks of storage and the amount of memory used for these purposes is kept hidden from the
user.
• Logical: This level comprises of the information that is actually stored in the database in the form
of tables. It also stores the relationship among the data entities in relatively simple structures. At
this level, the information available to the user at the view level is unknown.
We can store the various attributes of an employee and relationships, e.g. with the manager can
also be stored.
• View: This is the highest level of abstraction. Only a part of the actual database is viewed by the
users. This level exists to ease the accessibility of the database by an individual user. Users view
data in the form of rows and columns. Tables and relations are used to store data. Multiple views
of the same database may exist. Users can just view the data and interact with the database,
storage and implementation details are hidden from them.
PROF. KRISHNA ROY, FMS, BCREC 2
Three levels of data abstraction
PROF. KRISHNA ROY, FMS, BCREC 3
Data independence
• Physical Data Independence :
Physical Data Independence is defined as the ability to make changes
in the structure of the lowest level of the Database Management
System (DBMS) without affecting the higher-level schemas. Hence,
modification in the Physical level should not result in any changes in
the Logical or View levels.
• Logical Data Independence :
Logical Data Independence is defined as the ability to make changes
in the structure of the middle level of the Database Management
System (DBMS) without affecting the highest-level schema or
application programs. Hence, modification in the logical level should
not result in any changes in the view levels or application programs.
PROF. KRISHNA ROY, FMS, BCREC 4
Concepts of tables, records, attributes, keys
PROF. KRISHNA ROY, FMS, BCREC 5
relations
PROF. KRISHNA ROY, FMS, BCREC 6
• A table or relation is a collection of data elements for an entity set
organized in terms of rows and columns.
• A single entry in a table is called a Tuple or Record or Row. It is
represented by a row in a relation.
• An attribute is a specific characteristic taken up by each entity in a
particular column of the relation
• The attribute description is also called a fieldname.
• The value taken up by an attribute in a tuple is called the field value.
• An attribute or combination of attributes that is never duplicated in a
relation is called a candidate key.
• A candidate key chosen for unique identification of tuples in a relation is
called a primary key.
• Candidate keys which are not primary keys are called alternate keys.
• An attribute which is not a primary key in the current relation but draws
values from the domain shared by the primary key of some other
relation in the same database is called a foreign key.
Integrity constraints
PROF. KRISHNA ROY, FMS, BCREC 7
Integrity constraints
Key Constraints or Entity Integrity
• There must be at least one minimal subset of
attributes in the relation, which can identify a
tuple uniquely. This minimal subset of
attributes is called key for that relation. If there
are more than one such minimal subsets, these
are called candidate keys.
• Key constraints force that −
• in a relation with a key attribute, no two tuples
can have identical values for key attributes.
• a key attribute can not have NULL values.
• Key constraints are also referred to as Entity
Constraints.
PROF. KRISHNA ROY, FMS, BCREC 8
Integrity constraints
Domain Constraints
• Attributes have specific values in real-
world scenario. For example, age can
only be a positive integer. The same
constraints have been tried to employ
on the attributes of a relation. Every
attribute is bound to have a specific
range of values. For example, age
cannot be less than zero and
telephone numbers cannot contain a
digit outside 0-9.
PROF. KRISHNA ROY, FMS, BCREC 9
Integrity constraints
Referential integrity Constraints
• Referential integrity constraints work
on the concept of Foreign Keys. A
foreign key is a key attribute of a
relation that can be referred in other
relation.
• Referential integrity constraint states
that if a relation refers to a key
attribute of a different or same
relation, then that key element must
exist.
PROF. KRISHNA ROY, FMS, BCREC 10
• Till we meet again in the next class……….
PROF. KRISHNA ROY, FMS, BCREC 11

More Related Content

Similar to MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptx

Database environment
Database environmentDatabase environment
Database environment
Shefali Jain
 
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdfSQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
RiturajDas28
 
Database Management System NOTES for 2nd year
Database Management System NOTES for 2nd yearDatabase Management System NOTES for 2nd year
Database Management System NOTES for 2nd year
dhasamalika
 

Similar to MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptx (20)

Database Systems - introduction
Database Systems - introductionDatabase Systems - introduction
Database Systems - introduction
 
database
databasedatabase
database
 
Architecture of dbms
Architecture of dbmsArchitecture of dbms
Architecture of dbms
 
PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
 
Database environment
Database environmentDatabase environment
Database environment
 
Unit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptxUnit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptx
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
database management system - overview of entire dbms
database management system - overview of entire dbmsdatabase management system - overview of entire dbms
database management system - overview of entire dbms
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
 
Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)
 
Architecture of dbms
Architecture of dbmsArchitecture of dbms
Architecture of dbms
 
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)
 
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdfSQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
 
Relational database design
Relational database designRelational database design
Relational database design
 
RDMS AND SQL
RDMS AND SQLRDMS AND SQL
RDMS AND SQL
 
Database Management System NOTES for 2nd year
Database Management System NOTES for 2nd yearDatabase Management System NOTES for 2nd year
Database Management System NOTES for 2nd year
 
Data Abstraction and Independance (1).pptx
Data Abstraction and Independance (1).pptxData Abstraction and Independance (1).pptx
Data Abstraction and Independance (1).pptx
 
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 1.pptx
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 1.pptxMIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 1.pptx
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 1.pptx
 
Data Abstraction
Data AbstractionData Abstraction
Data Abstraction
 
Codds rules & keys
Codds rules & keysCodds rules & keys
Codds rules & keys
 

More from KrishnaRoy45

More from KrishnaRoy45 (20)

MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 10,11&12.pptx
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 10,11&12.pptxMIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 10,11&12.pptx
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 10,11&12.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 17.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT  17.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT  17.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 17.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 15&16.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT  15&16.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT  15&16.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 15&16.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 6&7.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 6&7.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 6&7.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 6&7.pptx
 
MB301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 9&10.pptx
MB301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 9&10.pptxMB301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 9&10.pptx
MB301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 9&10.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 5.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 5.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 5.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 5.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 11&12.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 11&12.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 11&12.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 11&12.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 19.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT  19.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT  19.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 19.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 3.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 3.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 3.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 3.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 13&14.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT  13&14.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT  13&14.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 13&14.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 1.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 1.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 1.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 1.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 2.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 2.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 2.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 2.pptx
 
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 18.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT  18.pptxMB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT  18.pptx
MB 301 ENTREPRENEURSHIP & PROJECT MANAGEMENT 18.pptx
 
MB 103 business communication 5_6.pptx
MB 103 business communication 5_6.pptxMB 103 business communication 5_6.pptx
MB 103 business communication 5_6.pptx
 
MB 103 business communication 7_8.pptx
MB 103 business communication 7_8.pptxMB 103 business communication 7_8.pptx
MB 103 business communication 7_8.pptx
 
MB 103 business communication 3_4.pptx
MB 103 business communication 3_4.pptxMB 103 business communication 3_4.pptx
MB 103 business communication 3_4.pptx
 
MB 103 business communication 9_10.pptx
MB 103 business communication 9_10.pptxMB 103 business communication 9_10.pptx
MB 103 business communication 9_10.pptx
 
MB 103 business communication 2.pptx
MB 103 business communication 2.pptxMB 103 business communication 2.pptx
MB 103 business communication 2.pptx
 
MB 103 business communication 1.pptx
MB 103 business communication 1.pptxMB 103 business communication 1.pptx
MB 103 business communication 1.pptx
 
Mb 106 quantitative techniques 17
Mb 106 quantitative techniques 17 Mb 106 quantitative techniques 17
Mb 106 quantitative techniques 17
 

Recently uploaded

The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
daisycvs
 
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan CytotecJual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
ZurliaSoop
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
vineshkumarsajnani12
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
allensay1
 

Recently uploaded (20)

Buy gmail accounts.pdf buy Old Gmail Accounts
Buy gmail accounts.pdf buy Old Gmail AccountsBuy gmail accounts.pdf buy Old Gmail Accounts
Buy gmail accounts.pdf buy Old Gmail Accounts
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptxQSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
 
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan CytotecJual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
 
Phases of Negotiation .pptx
 Phases of Negotiation .pptx Phases of Negotiation .pptx
Phases of Negotiation .pptx
 
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service AvailableBerhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
 
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGBerhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
New 2024 Cannabis Edibles Investor Pitch Deck Template
New 2024 Cannabis Edibles Investor Pitch Deck TemplateNew 2024 Cannabis Edibles Investor Pitch Deck Template
New 2024 Cannabis Edibles Investor Pitch Deck Template
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investors
 
HomeRoots Pitch Deck | Investor Insights | April 2024
HomeRoots Pitch Deck | Investor Insights | April 2024HomeRoots Pitch Deck | Investor Insights | April 2024
HomeRoots Pitch Deck | Investor Insights | April 2024
 
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGBerhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
 
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All TimeCall 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
 
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
 
Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...
Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...
Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentation
 

MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptx

  • 1. MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM DATABASE MANAGEMENT SYSTEM Concepts of tables, records, attributes, keys, integrity constraints, data independence LECTURES 2&3 PROF. KRISHNA ROY PROF. KRISHNA ROY, FMS, BCREC 1
  • 2. Three levels of data abstraction • Physical: This is the lowest level of data abstraction. It tells us how the data is actually stored in memory. The access methods like sequential or random access and file organisation methods like B+ trees, hashing are used for the same. Suppose we need to store the details of an employee. Blocks of storage and the amount of memory used for these purposes is kept hidden from the user. • Logical: This level comprises of the information that is actually stored in the database in the form of tables. It also stores the relationship among the data entities in relatively simple structures. At this level, the information available to the user at the view level is unknown. We can store the various attributes of an employee and relationships, e.g. with the manager can also be stored. • View: This is the highest level of abstraction. Only a part of the actual database is viewed by the users. This level exists to ease the accessibility of the database by an individual user. Users view data in the form of rows and columns. Tables and relations are used to store data. Multiple views of the same database may exist. Users can just view the data and interact with the database, storage and implementation details are hidden from them. PROF. KRISHNA ROY, FMS, BCREC 2
  • 3. Three levels of data abstraction PROF. KRISHNA ROY, FMS, BCREC 3
  • 4. Data independence • Physical Data Independence : Physical Data Independence is defined as the ability to make changes in the structure of the lowest level of the Database Management System (DBMS) without affecting the higher-level schemas. Hence, modification in the Physical level should not result in any changes in the Logical or View levels. • Logical Data Independence : Logical Data Independence is defined as the ability to make changes in the structure of the middle level of the Database Management System (DBMS) without affecting the highest-level schema or application programs. Hence, modification in the logical level should not result in any changes in the view levels or application programs. PROF. KRISHNA ROY, FMS, BCREC 4
  • 5. Concepts of tables, records, attributes, keys PROF. KRISHNA ROY, FMS, BCREC 5
  • 6. relations PROF. KRISHNA ROY, FMS, BCREC 6 • A table or relation is a collection of data elements for an entity set organized in terms of rows and columns. • A single entry in a table is called a Tuple or Record or Row. It is represented by a row in a relation. • An attribute is a specific characteristic taken up by each entity in a particular column of the relation • The attribute description is also called a fieldname. • The value taken up by an attribute in a tuple is called the field value. • An attribute or combination of attributes that is never duplicated in a relation is called a candidate key. • A candidate key chosen for unique identification of tuples in a relation is called a primary key. • Candidate keys which are not primary keys are called alternate keys. • An attribute which is not a primary key in the current relation but draws values from the domain shared by the primary key of some other relation in the same database is called a foreign key.
  • 8. Integrity constraints Key Constraints or Entity Integrity • There must be at least one minimal subset of attributes in the relation, which can identify a tuple uniquely. This minimal subset of attributes is called key for that relation. If there are more than one such minimal subsets, these are called candidate keys. • Key constraints force that − • in a relation with a key attribute, no two tuples can have identical values for key attributes. • a key attribute can not have NULL values. • Key constraints are also referred to as Entity Constraints. PROF. KRISHNA ROY, FMS, BCREC 8
  • 9. Integrity constraints Domain Constraints • Attributes have specific values in real- world scenario. For example, age can only be a positive integer. The same constraints have been tried to employ on the attributes of a relation. Every attribute is bound to have a specific range of values. For example, age cannot be less than zero and telephone numbers cannot contain a digit outside 0-9. PROF. KRISHNA ROY, FMS, BCREC 9
  • 10. Integrity constraints Referential integrity Constraints • Referential integrity constraints work on the concept of Foreign Keys. A foreign key is a key attribute of a relation that can be referred in other relation. • Referential integrity constraint states that if a relation refers to a key attribute of a different or same relation, then that key element must exist. PROF. KRISHNA ROY, FMS, BCREC 10
  • 11. • Till we meet again in the next class………. PROF. KRISHNA ROY, FMS, BCREC 11