SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Database
Concepts
Data:Collection of facts in raw form.
Information : Organized and
Processed data is information.
Database : A Collection of data
files in which logically related
information is stored.
Data Base Management System :
A Collection of programs for storing and
retrieving information from the database
is called DBMS.
1.Data Redundancy ( Duplication of Data )
is removed.
2.Data Inconsistency can be controlled.
3.Sharing of Data.
4.Security of Data.
It means data can be protected from an
unauthorized user.
5.Integrity Rules can be applied.
Advantages of DBMS
Levels of Database
Implementation
Internal Level ( Physical Level )
Conceptual Level
External Level ( View Level )
Internal Level
( Physical Level )
The lowest level of database which
is closest to the physical storage.
It describes how the data is
actually stored on the storage
medium.
Conceptual Level
The level of database which
describes what data is actually
stored in the database.At this
level the relationship between the
data elements is described.
View Level
( External Level )
The level of database which is closest
to the user. It is only concerned with
the way how the data is viewed to
the users .The System is able to
create more than one views for the
end user on the basis of the data
stored.
Levels of Data Abstraction
Physical Level
Conceptual Level
View 3
View 2
View 1
Data Independence
The ability to modify a scheme
definition at one level without
affecting scheme definition of
next higher level.
It is of two types:
( 1 ) Physical Data Independence
( 2 ) Logical Data Independence
( 1 ) Physical Data Independence:
The ability to modify physical level
without affecting the conceptual
level. In this the application
programs remains the same.
( 2 ) Logical Data Independence:
The ability to modify conceptual
level without affecting the view
level.
Relational Data Model
A Data Model where data is organized in the
form of tables. These tables are called relations.
A relation or table is collection of horizontal
rows and vertical columns. This model was
proposed by E.F.Codd of IBM . The data stored
in these relations is logically related.
Advantages :
( 1 ) Easy to understand.
( 2 ) In this model the relationship between
databases is established by data values.
S.No. Name Age
Basic Terminology
1. Relation : A relation is a table which a
collection of rows and columns.
2.Domain : It is a pool of values from which
the actual values are taken.
3.Tuple : The horizontal rows of a relation are
called tuples.
4.Attribute : The vertical columns of a
relation are called attributes.
5.Degree of a relation : The total number
of attributes of a relation are termed as
degree of a relation.
6.Cardinality of a relation:The total
number of rows in a relation are known as
cardinality of a relation.
7.View:A view is a virtual table whose
contents are taken from a existing
table(base table) depending upon a condition.
A vies does not have data of its own.
8.Primary Key:A key or a set of keys which
can be used to uniquely identify the tuples
of a relation.
9.Candidate Key:A key or a set of keys
which can be used as a primary key to
identify the tuples of a relation.
10.Alternate Key:
A key or a set of keys which can not be used
to identify the tuples of a relation.
11.Foreign Key:
A key in a relation which can be used to make
a relationship with some other relation and it
appears as a primary key in that relation .
Relational Algebra
Operators in Relational Algebra
1. Select Operation :
2. Project Operation :
3. Cartesian Product Operation :
4. Union Operation :
5. Set Difference Operation :
6. Set Intersection Operation :
1. Select Operation :It is a unary operator
which selects the tuples ( horizontal subset )
from a relation that satisfy a given predict or
condition. The selection is denoted by the
symbol sigma ( σ ) .
2. Project Operation :It is a unary operator
which selects the specified attributes ( vertical
subset ) from a relation that satisfy a given
predict or condition. The projection is denoted
by the symbol pi ( π ) .
3. Cartesian Product Operation :
It is a binary operator which yields a new
relation which has a degree ( number of
attributes ) equal to the sum of the degrees of
the two relations operated upon and number
of tuples ( Cardinality ) equal to the product
of the number of tuples of two relations. The
Cartesian Product of two relations A and B is
denoted by A X B .
4. Union Operation :It is a binary operator which
operates on two relations and yields a new relation
that contain tuples from both the relations. The
condition to apply this operator are :
( a ) The two relations A and B must have same
degree.
( b ) The domain of ith attribute of relation A and the
domain of ith attribute of relation B must be same.
All the duplicate tuples are automatically removed
using this operated. The Union Operation of two
relations A and B is denoted by A U B .
5. Set Difference Operation :
It is a binary operator which operates on two
relations and yields a new relation that contain
tuples which are present in first relation but
not in the second table . The condition to apply
this operator is that the two relations A and B
must have same degree. The new relation will
contain the tuples which are present in A but
not in B . The Set difference Operation of two
relations A and B is denoted by A – B.
6. Set Intersection Operation :
It is a binary operator which operates on two
relations and yields a new relation that contain
tuples which are present both the relations.
The condition to apply this operator is that the
two relations A and B must have same degree.
The new relation will contain the common
tuples of A and B . The Set Intersection
operation of two relations A and B is denoted
by A B .
Disadvantages of Database
System
1.Extra hardware may be required.
2.System is likely to be very
complex.
Thanks

Weitere ähnliche Inhalte

Was ist angesagt?

2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
koolkampus
 
7. Relational Database Design in DBMS
7. Relational Database Design in DBMS7. Relational Database Design in DBMS
7. Relational Database Design in DBMS
koolkampus
 
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
Jafar Nesargi
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
koolkampus
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
koolkampus
 

Was ist angesagt? (20)

Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
 
joins in database
 joins in database joins in database
joins in database
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Entity relationship diagram - Concept on normalization
Entity relationship diagram - Concept on normalizationEntity relationship diagram - Concept on normalization
Entity relationship diagram - Concept on normalization
 
7. Relational Database Design in DBMS
7. Relational Database Design in DBMS7. Relational Database Design in DBMS
7. Relational Database Design in DBMS
 
Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management system
 
Measures of query cost
Measures of query costMeasures of query cost
Measures of query cost
 
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
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
 
Functional dependancy
Functional dependancyFunctional dependancy
Functional dependancy
 
Database systems - Chapter 2
Database systems - Chapter 2Database systems - Chapter 2
Database systems - Chapter 2
 
ER MODEL
ER MODELER MODEL
ER MODEL
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 
Query optimization in SQL
Query optimization in SQLQuery optimization in SQL
Query optimization in SQL
 
Normalization PRESENTATION
Normalization PRESENTATIONNormalization PRESENTATION
Normalization PRESENTATION
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Decomposition using Functional Dependency
Decomposition using Functional DependencyDecomposition using Functional Dependency
Decomposition using Functional Dependency
 

Ähnlich wie Database schema architecture.ppt

Database Management Systems Tutorial
Database Management Systems TutorialDatabase Management Systems Tutorial
Database Management Systems Tutorial
Sachin MK
 
17032658 database-management-systems-tutorial-090917034406-phpapp02
17032658 database-management-systems-tutorial-090917034406-phpapp0217032658 database-management-systems-tutorial-090917034406-phpapp02
17032658 database-management-systems-tutorial-090917034406-phpapp02
Samina Sam Sam
 

Ähnlich wie Database schema architecture.ppt (20)

DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
DATA BASE MANAGEMENT SYSTEM - SHORT NOTESDATA BASE MANAGEMENT SYSTEM - SHORT NOTES
DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
 
5th chapter Relational algebra.pptx
5th chapter Relational algebra.pptx5th chapter Relational algebra.pptx
5th chapter Relational algebra.pptx
 
Nagaraju
NagarajuNagaraju
Nagaraju
 
Relational Database & Database Management System
Relational Database & Database Management SystemRelational Database & Database Management System
Relational Database & Database Management System
 
Dbms basic nots
Dbms basic notsDbms basic nots
Dbms basic nots
 
DBMS (1).pptx
DBMS (1).pptxDBMS (1).pptx
DBMS (1).pptx
 
Rdbms
RdbmsRdbms
Rdbms
 
DBMS.pdf
DBMS.pdfDBMS.pdf
DBMS.pdf
 
Online eaxmination
Online eaxminationOnline eaxmination
Online eaxmination
 
Technical Note on DBMS
Technical Note on DBMSTechnical Note on DBMS
Technical Note on DBMS
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
 
OOSE UNIT-2.pdf
OOSE UNIT-2.pdfOOSE UNIT-2.pdf
OOSE UNIT-2.pdf
 
DBMS interview questions
DBMS interview questionsDBMS interview questions
DBMS interview questions
 
1resume
1resume1resume
1resume
 
Rdbms
RdbmsRdbms
Rdbms
 
uml.pptx
uml.pptxuml.pptx
uml.pptx
 
Sql interview questions and answers
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answers
 
Database Management Systems Tutorial
Database Management Systems TutorialDatabase Management Systems Tutorial
Database Management Systems Tutorial
 
17032658 database-management-systems-tutorial-090917034406-phpapp02
17032658 database-management-systems-tutorial-090917034406-phpapp0217032658 database-management-systems-tutorial-090917034406-phpapp02
17032658 database-management-systems-tutorial-090917034406-phpapp02
 

Mehr von ImXaib

ERD introduction in databases model.pptx
ERD introduction in databases model.pptxERD introduction in databases model.pptx
ERD introduction in databases model.pptx
ImXaib
 
SDA presentation the basics of computer science .pptx
SDA presentation the basics of computer science .pptxSDA presentation the basics of computer science .pptx
SDA presentation the basics of computer science .pptx
ImXaib
 
terminal a clear presentation on the topic.pptx
terminal a clear presentation on the topic.pptxterminal a clear presentation on the topic.pptx
terminal a clear presentation on the topic.pptx
ImXaib
 
What is Machine Learning_updated documents.pptx
What is Machine Learning_updated documents.pptxWhat is Machine Learning_updated documents.pptx
What is Machine Learning_updated documents.pptx
ImXaib
 
Grid Computing and it's applications.PPTX
Grid Computing and it's applications.PPTXGrid Computing and it's applications.PPTX
Grid Computing and it's applications.PPTX
ImXaib
 
lecture2.ppt
lecture2.pptlecture2.ppt
lecture2.ppt
ImXaib
 
lec3_10.ppt
lec3_10.pptlec3_10.ppt
lec3_10.ppt
ImXaib
 
Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.ppt
ImXaib
 
mis9_ch08_ppt.ppt
mis9_ch08_ppt.pptmis9_ch08_ppt.ppt
mis9_ch08_ppt.ppt
ImXaib
 
rooster-ipsecindepth.ppt
rooster-ipsecindepth.pptrooster-ipsecindepth.ppt
rooster-ipsecindepth.ppt
ImXaib
 
Policy formation and enforcement.ppt
Policy formation and enforcement.pptPolicy formation and enforcement.ppt
Policy formation and enforcement.ppt
ImXaib
 
Transport layer security.ppt
Transport layer security.pptTransport layer security.ppt
Transport layer security.ppt
ImXaib
 
Trends in DM.pptx
Trends in DM.pptxTrends in DM.pptx
Trends in DM.pptx
ImXaib
 
AleksandrDoroninSlides.ppt
AleksandrDoroninSlides.pptAleksandrDoroninSlides.ppt
AleksandrDoroninSlides.ppt
ImXaib
 
dm15-visualization-data-mining.ppt
dm15-visualization-data-mining.pptdm15-visualization-data-mining.ppt
dm15-visualization-data-mining.ppt
ImXaib
 

Mehr von ImXaib (20)

ERD introduction in databases model.pptx
ERD introduction in databases model.pptxERD introduction in databases model.pptx
ERD introduction in databases model.pptx
 
SDA presentation the basics of computer science .pptx
SDA presentation the basics of computer science .pptxSDA presentation the basics of computer science .pptx
SDA presentation the basics of computer science .pptx
 
terminal a clear presentation on the topic.pptx
terminal a clear presentation on the topic.pptxterminal a clear presentation on the topic.pptx
terminal a clear presentation on the topic.pptx
 
What is Machine Learning_updated documents.pptx
What is Machine Learning_updated documents.pptxWhat is Machine Learning_updated documents.pptx
What is Machine Learning_updated documents.pptx
 
Grid Computing and it's applications.PPTX
Grid Computing and it's applications.PPTXGrid Computing and it's applications.PPTX
Grid Computing and it's applications.PPTX
 
Firewall.pdf
Firewall.pdfFirewall.pdf
Firewall.pdf
 
4966709.ppt
4966709.ppt4966709.ppt
4966709.ppt
 
lecture2.ppt
lecture2.pptlecture2.ppt
lecture2.ppt
 
Tools.pptx
Tools.pptxTools.pptx
Tools.pptx
 
lec3_10.ppt
lec3_10.pptlec3_10.ppt
lec3_10.ppt
 
ch12.ppt
ch12.pptch12.ppt
ch12.ppt
 
Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.ppt
 
mis9_ch08_ppt.ppt
mis9_ch08_ppt.pptmis9_ch08_ppt.ppt
mis9_ch08_ppt.ppt
 
rooster-ipsecindepth.ppt
rooster-ipsecindepth.pptrooster-ipsecindepth.ppt
rooster-ipsecindepth.ppt
 
Policy formation and enforcement.ppt
Policy formation and enforcement.pptPolicy formation and enforcement.ppt
Policy formation and enforcement.ppt
 
Transport layer security.ppt
Transport layer security.pptTransport layer security.ppt
Transport layer security.ppt
 
Trends in DM.pptx
Trends in DM.pptxTrends in DM.pptx
Trends in DM.pptx
 
AleksandrDoroninSlides.ppt
AleksandrDoroninSlides.pptAleksandrDoroninSlides.ppt
AleksandrDoroninSlides.ppt
 
dm15-visualization-data-mining.ppt
dm15-visualization-data-mining.pptdm15-visualization-data-mining.ppt
dm15-visualization-data-mining.ppt
 
Cyber Crime.pptx
Cyber Crime.pptxCyber Crime.pptx
Cyber Crime.pptx
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Kürzlich hochgeladen (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 

Database schema architecture.ppt

  • 2. Data:Collection of facts in raw form. Information : Organized and Processed data is information. Database : A Collection of data files in which logically related information is stored. Data Base Management System : A Collection of programs for storing and retrieving information from the database is called DBMS.
  • 3. 1.Data Redundancy ( Duplication of Data ) is removed. 2.Data Inconsistency can be controlled. 3.Sharing of Data. 4.Security of Data. It means data can be protected from an unauthorized user. 5.Integrity Rules can be applied. Advantages of DBMS
  • 4. Levels of Database Implementation Internal Level ( Physical Level ) Conceptual Level External Level ( View Level )
  • 5. Internal Level ( Physical Level ) The lowest level of database which is closest to the physical storage. It describes how the data is actually stored on the storage medium.
  • 6. Conceptual Level The level of database which describes what data is actually stored in the database.At this level the relationship between the data elements is described.
  • 7. View Level ( External Level ) The level of database which is closest to the user. It is only concerned with the way how the data is viewed to the users .The System is able to create more than one views for the end user on the basis of the data stored.
  • 8. Levels of Data Abstraction Physical Level Conceptual Level View 3 View 2 View 1
  • 9. Data Independence The ability to modify a scheme definition at one level without affecting scheme definition of next higher level. It is of two types: ( 1 ) Physical Data Independence ( 2 ) Logical Data Independence
  • 10. ( 1 ) Physical Data Independence: The ability to modify physical level without affecting the conceptual level. In this the application programs remains the same. ( 2 ) Logical Data Independence: The ability to modify conceptual level without affecting the view level.
  • 11. Relational Data Model A Data Model where data is organized in the form of tables. These tables are called relations. A relation or table is collection of horizontal rows and vertical columns. This model was proposed by E.F.Codd of IBM . The data stored in these relations is logically related. Advantages : ( 1 ) Easy to understand. ( 2 ) In this model the relationship between databases is established by data values.
  • 13. Basic Terminology 1. Relation : A relation is a table which a collection of rows and columns. 2.Domain : It is a pool of values from which the actual values are taken. 3.Tuple : The horizontal rows of a relation are called tuples. 4.Attribute : The vertical columns of a relation are called attributes. 5.Degree of a relation : The total number of attributes of a relation are termed as degree of a relation.
  • 14. 6.Cardinality of a relation:The total number of rows in a relation are known as cardinality of a relation. 7.View:A view is a virtual table whose contents are taken from a existing table(base table) depending upon a condition. A vies does not have data of its own. 8.Primary Key:A key or a set of keys which can be used to uniquely identify the tuples of a relation. 9.Candidate Key:A key or a set of keys which can be used as a primary key to identify the tuples of a relation.
  • 15. 10.Alternate Key: A key or a set of keys which can not be used to identify the tuples of a relation. 11.Foreign Key: A key in a relation which can be used to make a relationship with some other relation and it appears as a primary key in that relation .
  • 16. Relational Algebra Operators in Relational Algebra 1. Select Operation : 2. Project Operation : 3. Cartesian Product Operation : 4. Union Operation : 5. Set Difference Operation : 6. Set Intersection Operation :
  • 17. 1. Select Operation :It is a unary operator which selects the tuples ( horizontal subset ) from a relation that satisfy a given predict or condition. The selection is denoted by the symbol sigma ( σ ) . 2. Project Operation :It is a unary operator which selects the specified attributes ( vertical subset ) from a relation that satisfy a given predict or condition. The projection is denoted by the symbol pi ( π ) .
  • 18. 3. Cartesian Product Operation : It is a binary operator which yields a new relation which has a degree ( number of attributes ) equal to the sum of the degrees of the two relations operated upon and number of tuples ( Cardinality ) equal to the product of the number of tuples of two relations. The Cartesian Product of two relations A and B is denoted by A X B .
  • 19. 4. Union Operation :It is a binary operator which operates on two relations and yields a new relation that contain tuples from both the relations. The condition to apply this operator are : ( a ) The two relations A and B must have same degree. ( b ) The domain of ith attribute of relation A and the domain of ith attribute of relation B must be same. All the duplicate tuples are automatically removed using this operated. The Union Operation of two relations A and B is denoted by A U B .
  • 20. 5. Set Difference Operation : It is a binary operator which operates on two relations and yields a new relation that contain tuples which are present in first relation but not in the second table . The condition to apply this operator is that the two relations A and B must have same degree. The new relation will contain the tuples which are present in A but not in B . The Set difference Operation of two relations A and B is denoted by A – B.
  • 21. 6. Set Intersection Operation : It is a binary operator which operates on two relations and yields a new relation that contain tuples which are present both the relations. The condition to apply this operator is that the two relations A and B must have same degree. The new relation will contain the common tuples of A and B . The Set Intersection operation of two relations A and B is denoted by A B .
  • 22. Disadvantages of Database System 1.Extra hardware may be required. 2.System is likely to be very complex.