SlideShare a Scribd company logo
Integrity Rule
Submitted By:
Girdhar Ratne
B.Sc.(I.T.)
Contents
• Introduction to DBMS
• Integrity Constraints
• Need of Integrity Constraints
• Types of Integrity Constraints
• Domain Integrity Constraint
• Key Integrity Constraint
• Referential Integrity Constraint
Data Base Management System
• DBMS is a software.
• A DBMS is a collection of interrelated data and a set of programs to
Access those data.
• Management of data involve both defining structure for storage of
information & providing mechanism for manipulation of information.
• Data base system ensure the safety of information stored, despite system
or an unauthorized access in attempted on data base.
Integrity Constraints
• Integrity means something like 'be right' and consistent.
• The data in a database must be right and in good condition.
Cont…
• Constraints are a very important feature in a relational model.
• The relational model supports the well-defined theory of constraints on
attributes or tables.
• Constraints are useful because they allow a designer to specify the
semantics of data in the database.
Need of Integrity Constraints
• Integrity rules are needed to inform the DBMS about certain constraints in
the real world.
• Many user enter data item in database becomes very important that the
data item & association among them destroy.
• Data insertion, updating & deletion processes have to be perform in such a
way that data integrity is not affected.
Types of Integrity Constraints
Integrity Constraints
Key Constraints
Domain Constraints
Referential Integrity
Constraints
Domain Integrity Constraint
• Domain integrity means the definition of a valid set of values for an
attribute.
- data type
- length or size
- is null value allowed
- is the value unique or not for an attribute
Example of Domain Constraints
Emp_ID ADD Phone No. Age Name
X1 HR 111 22 A
X2 DEL 123 25 E
X3 MUB 432 21 D
Varchar Integer Character
(Age>=18)
Key Integrity Constraint
• Value of Primary Key must be unique and can not duplicate.
• In a relation with a key attribute, no two tuples can have identical values
for key attributes.
S.No. Emp_id Add
1 X1 KNP
2 X2 JHS
3 X3 LUK
3 X4 MUM
Duplication of data not allowed
Entity Integrity Constraints
• The entity integrity constraint states that primary keys cannot be null.
• The entity integrity constraints assure that a specific row in a table can be
identified.
Reg.No Model_Id Rate
ABC-112 2 4,50,000
XYZ-324 1 5,40,000
NULL 4 4,70,000
ACX-395 3 3,50,000
NULL value not allowed
Referential Integrity Constraints
• Referential Integrity Constraints work on concepts of Foreign Keys.
• A Foreign key is a key attribute of a relation that can be referred in other
relation.
• This is specified between two relations and it is used to maintain the
consistency among rows between the two relations.
Example of Referential Constraints
Reg.No Model_Id Rate
ABC-112 2 4,50,000
XYZ-324 4 5,40,000
ACC-432 6 4,70,000
ACX-395 3 3,50,000
BSA-325 1 5,00,000
CCE-326 5 3,33,000
Model_Id Mark Model
1 Ford Focus
2 Ford Mondeo
3 Peugeot 307
4 Peugeot 407
R
S
Referred to
References:-
• Fundamentals of Database Systems
- Ramez Elmasri and Shamkant B. Navathe
• An Introduction to Database Systems
- Bipin C. Desai
• http://people.cs.pitt.edu/~chang/156/12integrity.html
 When the values in one or more attributes being used
as a foreign key must exist in another set of one or
more attributes in another table, we have created a(n):
A. transitive dependency.
B. insertion anomaly.
C.referential integrity constraint.
D.normal form.
Multiple Choice Questions
 Which of the following data constraints would be used
to specify that the value of cells in a column must be
one of a specific set of possible values?
A. A domain constraint
B. A range constraint
C. An intrarelation constraint
D. An interrelation constraint
 A foreign key is:
A. a column containing the primary key of another table.
B. used to define data types.
C. used to define null status.
D. all of the above are correct.
DBMS Integrity rule

More Related Content

What's hot

Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
Archit Saxena
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
Saranya Natarajan
 
Er model ppt
Er model pptEr model ppt
Er model ppt
Pihu Goel
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMSkoolkampus
 
database recovery techniques
database recovery techniques database recovery techniques
database recovery techniques Kalhan Liyanage
 
Adbms 6 three schema database architecture
Adbms 6 three schema database architectureAdbms 6 three schema database architecture
Adbms 6 three schema database architecture
Vaibhav Khanna
 
Database abstraction
Database abstractionDatabase abstraction
Database abstraction
RituBhargava7
 
Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management system
Pooja Dixit
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
sunanditaAnand
 
Acid properties
Acid propertiesAcid properties
Acid properties
Abhilasha Lahigude
 
Distributed DBMS - Unit 5 - Semantic Data Control
Distributed DBMS - Unit 5 - Semantic Data ControlDistributed DBMS - Unit 5 - Semantic Data Control
Distributed DBMS - Unit 5 - Semantic Data Control
Gyanmanjari Institute Of Technology
 
B and B+ tree
B and B+ treeB and B+ tree
B and B+ tree
Ashish Arun
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
Kabindra Koirala
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
BIT Durg
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database SystemSulemang
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
Megha Patel
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra ppt
GirdharRatne
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Hitesh Mohapatra
 

What's hot (20)

Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
 
Er model ppt
Er model pptEr model ppt
Er model ppt
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS
 
database recovery techniques
database recovery techniques database recovery techniques
database recovery techniques
 
Adbms 6 three schema database architecture
Adbms 6 three schema database architectureAdbms 6 three schema database architecture
Adbms 6 three schema database architecture
 
Database abstraction
Database abstractionDatabase abstraction
Database abstraction
 
Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management system
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
 
Acid properties
Acid propertiesAcid properties
Acid properties
 
Distributed DBMS - Unit 5 - Semantic Data Control
Distributed DBMS - Unit 5 - Semantic Data ControlDistributed DBMS - Unit 5 - Semantic Data Control
Distributed DBMS - Unit 5 - Semantic Data Control
 
B and B+ tree
B and B+ treeB and B+ tree
B and B+ tree
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database System
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra ppt
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
encapsulation
encapsulationencapsulation
encapsulation
 

Similar to DBMS Integrity rule

Pre-sentation.pdf
Pre-sentation.pdfPre-sentation.pdf
Pre-sentation.pdf
RajaAbdullahArshad
 
Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2
eidah20
 
DBMS ppts unit1.pptx
DBMS ppts  unit1.pptxDBMS ppts  unit1.pptx
DBMS ppts unit1.pptx
VaibhavSaluja1
 
Relational data base management system (Unit 1)
Relational data base management system (Unit 1)Relational data base management system (Unit 1)
Relational data base management system (Unit 1)
Ismail Mukiibi
 
Relational database (Unit 2)
Relational database (Unit 2)Relational database (Unit 2)
Relational database (Unit 2)
Ismail Mukiibi
 
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
MaryJoseph79
 
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
Tetala Vishnu Vardhan Reddy
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management system
Prerana Bhattarai
 
Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)
Vijayananda Ratnam Ch
 
Cp7101 design and management of computer networks -network
Cp7101 design and management of computer networks -networkCp7101 design and management of computer networks -network
Cp7101 design and management of computer networks -network
Dr Geetha Mohan
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational Model
Amiya9439793168
 
Database security and security in networks
Database security and security in networksDatabase security and security in networks
Database security and security in networks
G Prachi
 
Csld phan tan va song song
Csld phan tan va song songCsld phan tan va song song
Csld phan tan va song songLê Anh Trung
 
CH05-CompSec4e.pptx
CH05-CompSec4e.pptxCH05-CompSec4e.pptx
CH05-CompSec4e.pptx
Ikmal71
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
uwmctesting
 
Database and Data Warehousing-Building Business Intelligence
Database and Data Warehousing-Building Business IntelligenceDatabase and Data Warehousing-Building Business Intelligence
Database and Data Warehousing-Building Business IntelligenceYeng Ferraris Portes
 
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptx
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptxMIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptx
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptx
KrishnaRoy45
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA19
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptx
Riannel Tecson
 
Sql server ___________session_1-intro
Sql server  ___________session_1-introSql server  ___________session_1-intro
Sql server ___________session_1-intro
Ehtisham Ali
 

Similar to DBMS Integrity rule (20)

Pre-sentation.pdf
Pre-sentation.pdfPre-sentation.pdf
Pre-sentation.pdf
 
Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2
 
DBMS ppts unit1.pptx
DBMS ppts  unit1.pptxDBMS ppts  unit1.pptx
DBMS ppts unit1.pptx
 
Relational data base management system (Unit 1)
Relational data base management system (Unit 1)Relational data base management system (Unit 1)
Relational data base management system (Unit 1)
 
Relational database (Unit 2)
Relational database (Unit 2)Relational database (Unit 2)
Relational database (Unit 2)
 
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
 
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
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management system
 
Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)
 
Cp7101 design and management of computer networks -network
Cp7101 design and management of computer networks -networkCp7101 design and management of computer networks -network
Cp7101 design and management of computer networks -network
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational Model
 
Database security and security in networks
Database security and security in networksDatabase security and security in networks
Database security and security in networks
 
Csld phan tan va song song
Csld phan tan va song songCsld phan tan va song song
Csld phan tan va song song
 
CH05-CompSec4e.pptx
CH05-CompSec4e.pptxCH05-CompSec4e.pptx
CH05-CompSec4e.pptx
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
 
Database and Data Warehousing-Building Business Intelligence
Database and Data Warehousing-Building Business IntelligenceDatabase and Data Warehousing-Building Business Intelligence
Database and Data Warehousing-Building Business Intelligence
 
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptx
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptxMIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptx
MIS 301 RELATIONAL DATABASE MANAGEMENT SYSTEM 2&3.pptx
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptx
 
Sql server ___________session_1-intro
Sql server  ___________session_1-introSql server  ___________session_1-intro
Sql server ___________session_1-intro
 

More from GirdharRatne

SQL commands
SQL commandsSQL commands
SQL commands
GirdharRatne
 
System analysis and design logical design
System analysis and design  logical designSystem analysis and design  logical design
System analysis and design logical design
GirdharRatne
 
Transmisssion media
Transmisssion mediaTransmisssion media
Transmisssion media
GirdharRatne
 
Mobile telephone system
Mobile telephone systemMobile telephone system
Mobile telephone system
GirdharRatne
 
Introduction to journal entry
Introduction to journal entryIntroduction to journal entry
Introduction to journal entry
GirdharRatne
 
Programming language and process
Programming language and processProgramming language and process
Programming language and process
GirdharRatne
 

More from GirdharRatne (6)

SQL commands
SQL commandsSQL commands
SQL commands
 
System analysis and design logical design
System analysis and design  logical designSystem analysis and design  logical design
System analysis and design logical design
 
Transmisssion media
Transmisssion mediaTransmisssion media
Transmisssion media
 
Mobile telephone system
Mobile telephone systemMobile telephone system
Mobile telephone system
 
Introduction to journal entry
Introduction to journal entryIntroduction to journal entry
Introduction to journal entry
 
Programming language and process
Programming language and processProgramming language and process
Programming language and process
 

Recently uploaded

Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 

Recently uploaded (20)

Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 

DBMS Integrity rule

  • 2. Contents • Introduction to DBMS • Integrity Constraints • Need of Integrity Constraints • Types of Integrity Constraints • Domain Integrity Constraint • Key Integrity Constraint • Referential Integrity Constraint
  • 3. Data Base Management System • DBMS is a software. • A DBMS is a collection of interrelated data and a set of programs to Access those data. • Management of data involve both defining structure for storage of information & providing mechanism for manipulation of information. • Data base system ensure the safety of information stored, despite system or an unauthorized access in attempted on data base.
  • 4. Integrity Constraints • Integrity means something like 'be right' and consistent. • The data in a database must be right and in good condition.
  • 5. Cont… • Constraints are a very important feature in a relational model. • The relational model supports the well-defined theory of constraints on attributes or tables. • Constraints are useful because they allow a designer to specify the semantics of data in the database.
  • 6. Need of Integrity Constraints • Integrity rules are needed to inform the DBMS about certain constraints in the real world. • Many user enter data item in database becomes very important that the data item & association among them destroy. • Data insertion, updating & deletion processes have to be perform in such a way that data integrity is not affected.
  • 7. Types of Integrity Constraints Integrity Constraints Key Constraints Domain Constraints Referential Integrity Constraints
  • 8. Domain Integrity Constraint • Domain integrity means the definition of a valid set of values for an attribute. - data type - length or size - is null value allowed - is the value unique or not for an attribute
  • 9. Example of Domain Constraints Emp_ID ADD Phone No. Age Name X1 HR 111 22 A X2 DEL 123 25 E X3 MUB 432 21 D Varchar Integer Character (Age>=18)
  • 10. Key Integrity Constraint • Value of Primary Key must be unique and can not duplicate. • In a relation with a key attribute, no two tuples can have identical values for key attributes. S.No. Emp_id Add 1 X1 KNP 2 X2 JHS 3 X3 LUK 3 X4 MUM Duplication of data not allowed
  • 11. Entity Integrity Constraints • The entity integrity constraint states that primary keys cannot be null. • The entity integrity constraints assure that a specific row in a table can be identified. Reg.No Model_Id Rate ABC-112 2 4,50,000 XYZ-324 1 5,40,000 NULL 4 4,70,000 ACX-395 3 3,50,000 NULL value not allowed
  • 12. Referential Integrity Constraints • Referential Integrity Constraints work on concepts of Foreign Keys. • A Foreign key is a key attribute of a relation that can be referred in other relation. • This is specified between two relations and it is used to maintain the consistency among rows between the two relations.
  • 13. Example of Referential Constraints Reg.No Model_Id Rate ABC-112 2 4,50,000 XYZ-324 4 5,40,000 ACC-432 6 4,70,000 ACX-395 3 3,50,000 BSA-325 1 5,00,000 CCE-326 5 3,33,000 Model_Id Mark Model 1 Ford Focus 2 Ford Mondeo 3 Peugeot 307 4 Peugeot 407 R S Referred to
  • 14. References:- • Fundamentals of Database Systems - Ramez Elmasri and Shamkant B. Navathe • An Introduction to Database Systems - Bipin C. Desai • http://people.cs.pitt.edu/~chang/156/12integrity.html
  • 15.  When the values in one or more attributes being used as a foreign key must exist in another set of one or more attributes in another table, we have created a(n): A. transitive dependency. B. insertion anomaly. C.referential integrity constraint. D.normal form. Multiple Choice Questions
  • 16.  Which of the following data constraints would be used to specify that the value of cells in a column must be one of a specific set of possible values? A. A domain constraint B. A range constraint C. An intrarelation constraint D. An interrelation constraint
  • 17.  A foreign key is: A. a column containing the primary key of another table. B. used to define data types. C. used to define null status. D. all of the above are correct.