COMPUTERS Database

R

COMPUTERS Database

Overview of Database
A Database is a collection of logically related data stored in a
particular manner, from which information/data can be easily
accessed, managed and updated at a very fast speed.
An electronic data processing system that uses a database for
the storage of data is known as a database system.
Example: Payroll Management System, Banking, Booking
Tickets.
Database Management System (DBMS)
A DBMS is a software that allows creation, definition and
manipulation of database. DBMS is actually a tool used to
perform any kind of operation on data in database. DBMS also
provides protection and security to database. It maintains
data consistency in case of multiple users. Here are some
EDP is referred to the use of automated
methods to process commercial data.
examples of popular DBMS, MySQL, Oracle, Microsoft Access
and IBM DB2 etc.
Advantages of DBMS
Reduced data redundancy (duplicacy of data)
Data independence and consistency
Easy retrieval of data
Information protection (data integrity & security)
Components of database system
Users - Users may be of various type such as DB
administrator, System developer and End users.
Database application - Database application may be Personal,
Enterprise and Internal.
DBMS - Software that allow users to define, create and
manages database access, Ex: MySQL, Oracle etc.
Database - Collection of logical data.
Purposes of Databases
- Databases reduce the data redundancy to a large extent.
- Databases can control data inconsistency to a large extent.
- Databases facilitate sharing of data.
- Databases can ensure data security
- Data integrity can be maintained through databases
Database Abstraction
Data Abstraction is a process of hiding irrelevant details from
user. The major purpose is to provide only that much
information that is required by them.
Various levels of database implementation
Physical Level: In this level it describes how data are actually
stored on the storage medium. You can get the complex data
structure details at this level.
Conceptual Level: In this level it describes what data are
actually stored and also describes the relationships among
data.
View Level: In this level it describes only the information from
the database which is required by the individual user.
Concept of data independence
The ability to modify a scheme definition in one level without
effecting a scheme definition in the next level is called Data
Independence.
Physical data independence refers to the ability to modify the
scheme followed at the physical level without affecting the
scheme followed at conceptual level.
Logical data independence refers to the ability to modify the
conceptual scheme without causing any changes in the scheme
followed at view levels.
Different Data models
A Data model is a collection of concepts that can be used to
describe the structure of a database, including the
relationships and constraints that determine how data can be
stored and accessed.
Three models are commonly used. They are,
Hierarchical Model
The hierarchical model organizes data into a tree-like
structure, where each record has a single parent or root.
Sibling records are sorted in a particular order. That order is
used as the physical order for storing the database. This model
is good for describing many real-world relationships.
Network Model
This data model represents many to many relationship. It is
represented by collection of records and relationships among
data are represented as links.
Relational Model
This model was proposed by Dr. Edgar F. Codd in 1970. It
uses table to store the data. The data is organized in two
dimensional tables called relations.
The Relational model
The relational model was proposed by E. F. Codd of the IBM
and acknowledged as a very important concept in DBMS.
RDBMS stores data in the form of related tables and describes
how data is related or how it will be extracted from the
database.
Entity - An Entity is an object which can be distinctly
identified.
Relation - A relation is similar to table which consists of rows
and columns. It is the basic storage structure of RDBMS.
Domain - The domain is a set of possible values that an
attribute can have.
Tuple - A row in a relation is also called as a tuple.
Attribute - a column in a relation is also called as an attribute.
Degree - The number of attributes in a relation is called the
degree of the relation.
Cardinality - The number of tuples in a relation is called the
cardinality of that relation.
Views - A view is a kind of table whose contents are taken
from other tables depending upon a condition. The contents of
a view are determined by carrying out the execution of the
given query.
Structure of Relational Databases
Keys - Keys are used to establish and identify relations
between tables. They also ensure that each record within a
table can be uniquely identified by combination of one or more
attributes within a table.
Primary key
A primary key is a set of one or more attributes that can
uniquely identify tuples within the relation.
Candidate key
Candidate keys are defined as the set of fields from which
primary key can be selected. It is an attribute or set of
attribute that can act as a primary key for a table to uniquely
identify each record in that table.
Alternate key
The candidate key which are not selected for primary key are
known as alternative keys
Let's take an example of student it can contain NAME, ROLL
NO., ID and CLASS.
Here ROLL NO. is primary key and rest of all columns like
NAME, ID and CLASS are alternate keys.
If a table has more than one candidate key, one of them will
become the primary key and rest of all are called alternate
keys.
Foreign key
A FOREIGN KEY is a key used to link two tables together.
A FOREIGN KEY is a field (or collection of fields) in one table
that refers to the PRIMARY KEY in another table.
The table containing the foreign key is called the child table,
and the table containing the candidate key is called the
referenced or parent table.
The Relation Algebra
Select Operation (σ)
It selects tuples that satisfy the given predicate from a
relation.
Notation − σp(r)
Where σ stands for selection predicate and r stands for
relation. p is prepositional logic formula which may use
connectors like and, or, and not. These terms may use
relational operators like − =, ≠, ≥, <, >, ≤.
For example −
σsubject = "Computer Science"(Books)
Output − Selects tuples from books where subject is 'Computer
Science'.
σsubject = "maths" and price = "450"(Books)
Output − Selects tuples from books where subject is 'maths'
and 'price' is 450.
Project Operation (∏)
It projects column(s) that satisfy a given predicate.
Notation − ∏A1, A2, An (r)
Where A1, A2, are attribute names of relation r.
Duplicate rows are automatically eliminated, as relation is a
set.
For example −
∏subject, author (Books)
Selects and projects columns named as subject and author
from the relation Books.
Cartesian product (Χ)
Combines information of two different relations into one.
Notation − r Χ s
Where r and s are relations and their output will be defined as
σauthor = 'shariff'(Books Χ Articles)
Union Operation
For R ∪ S, The union of two relations R and S defines a
relation that contains all the tuples of R, or S, or both R and S,
duplicate tuples being eliminated. R and S must be union-
compatible.
For a union operation to be applied, the following rules must
hold −
r, and s must have the same quantity of attributes.
Attribute domains must be compatible.
Duplicate tuples gets automatically eliminated.
Set Difference (−)
The result of set difference operation is tuples, which are
present in one relation but are not in the second relation.
Notation: r − s
Finds all the tuples that are present in r but not in s.
∏ author (Books) − ∏ author (Articles)
Output − Provides the name of authors who have written
books but not articles.
Set Intersection Operation
The set intersection operation finds tuples that are common to
the two operand operations. This operation is denoted by ∩

Recomendados

Lecture 07 relational database management system von
Lecture 07 relational database management systemLecture 07 relational database management system
Lecture 07 relational database management systememailharmeet
3.7K views13 Folien
Dbms relational model von
Dbms relational modelDbms relational model
Dbms relational modelChirag vasava
9.7K views24 Folien
Relational Data Model Introduction von
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model IntroductionNishant Munjal
13.4K views21 Folien
Relational model von
Relational modelRelational model
Relational modelWBUTTUTORIALS
2.3K views20 Folien
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t... von
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...Raj vardhan
866 views12 Folien
The Relational Model von
The Relational ModelThe Relational Model
The Relational ModelBhandari Nawaraj
5.5K views63 Folien

Más contenido relacionado

Was ist angesagt?

RDBMS von
RDBMSRDBMS
RDBMSNIVEETHITHAS
33 views13 Folien
Dbms relational data model and sql queries von
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
958 views80 Folien
Relational model von
Relational modelRelational model
Relational modelSabana Maharjan
337 views29 Folien
Intro to relational model von
Intro to relational modelIntro to relational model
Intro to relational modelATS SBGI MIRAJ
446 views64 Folien
Relational model von
Relational modelRelational model
Relational modelDabbal Singh Mahara
2.8K views57 Folien
physical and logical data independence von
physical and logical data independencephysical and logical data independence
physical and logical data independenceapoorva_upadhyay
68K views19 Folien

Was ist angesagt?(20)

physical and logical data independence von apoorva_upadhyay
physical and logical data independencephysical and logical data independence
physical and logical data independence
apoorva_upadhyay68K views
08. Object Oriented Database in DBMS von koolkampus
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
koolkampus9.7K views
Chapter 7 relation database language von Jafar Nesargi
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
Jafar Nesargi1.5K views
The relational database model chapter 2 von Nargis Ehsan
The relational database model  chapter 2The relational database model  chapter 2
The relational database model chapter 2
Nargis Ehsan2.5K views
Module 5 oodb systems semantic db systems von Taher Barodawala
Module 5 oodb systems  semantic db systemsModule 5 oodb systems  semantic db systems
Module 5 oodb systems semantic db systems
Taher Barodawala1.7K views
ER Modeling and Introduction to RDBMS von Rubal Sagwal
ER Modeling and Introduction to RDBMSER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMS
Rubal Sagwal1.8K views
Dbms logical dependance von Tej Kiran
Dbms logical dependanceDbms logical dependance
Dbms logical dependance
Tej Kiran2.7K views
DATABASE CONCEPTS AND PRACTICAL EXAMPLES von NathRam2
DATABASE CONCEPTS AND PRACTICAL EXAMPLESDATABASE CONCEPTS AND PRACTICAL EXAMPLES
DATABASE CONCEPTS AND PRACTICAL EXAMPLES
NathRam2163 views
Object Oriented Dbms von maryeem
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbms
maryeem36.1K views
Dbms important questions and answers von LakshmiSarvani6
Dbms important questions and answersDbms important questions and answers
Dbms important questions and answers
LakshmiSarvani6352 views

Similar a COMPUTERS Database

Bca examination 2017 dbms von
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbmsAnjaan Gajendra
211 views28 Folien
PPT_DBMS.pptx von
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptxtraderbear1
7 views8 Folien
Relational Database Management System part II von
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part IIKavithaA19
26 views14 Folien
Bca examination 2015 dbms von
Bca examination 2015 dbmsBca examination 2015 dbms
Bca examination 2015 dbmsAnjaan Gajendra
362 views32 Folien
Dbms Lec Uog 02 von
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02smelltulip
4.2K views47 Folien
Data models von
Data modelsData models
Data modelsHira Bukhari
397 views8 Folien

Similar a COMPUTERS Database (20)

Relational Database Management System part II von KavithaA19
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
KavithaA1926 views
Dbms Lec Uog 02 von smelltulip
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02
smelltulip4.2K views
Databases and its representation von Ruhull
Databases and its representationDatabases and its representation
Databases and its representation
Ruhull 573 views
Dbms ii mca-ch4-relational model-2013 von Prosanta Ghosh
Dbms ii mca-ch4-relational model-2013Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013
Prosanta Ghosh1.3K views
database concepts.pptx von slavskrillex
database concepts.pptxdatabase concepts.pptx
database concepts.pptx
slavskrillex107 views
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,... von Dipen Parmar
Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Dipen Parmar683 views
Dbms Concepts von adukkas
Dbms ConceptsDbms Concepts
Dbms Concepts
adukkas3.5K views
Sql interview questions and answers von sheibansari
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answers
sheibansari7.1K views

Más de Rc Os

Dove von
DoveDove
DoveRc Os
5K views10 Folien
CLASS IV ENGLISH von
CLASS IV ENGLISHCLASS IV ENGLISH
CLASS IV ENGLISHRc Os
1.3K views19 Folien
CLASS 4 MATHS von
CLASS 4 MATHSCLASS 4 MATHS
CLASS 4 MATHSRc Os
2.1K views63 Folien
CLASS 4 MATHS von
CLASS 4 MATHSCLASS 4 MATHS
CLASS 4 MATHSRc Os
5.7K views10 Folien
CLASS III MATHS von
CLASS III MATHS CLASS III MATHS
CLASS III MATHS Rc Os
4.2K views17 Folien
CLASS III MATHS von
CLASS III MATHSCLASS III MATHS
CLASS III MATHSRc Os
597 views26 Folien

Más de Rc Os(20)

Dove von Rc Os
DoveDove
Dove
Rc Os5K views
CLASS IV ENGLISH von Rc Os
CLASS IV ENGLISHCLASS IV ENGLISH
CLASS IV ENGLISH
Rc Os1.3K views
CLASS 4 MATHS von Rc Os
CLASS 4 MATHSCLASS 4 MATHS
CLASS 4 MATHS
Rc Os2.1K views
CLASS 4 MATHS von Rc Os
CLASS 4 MATHSCLASS 4 MATHS
CLASS 4 MATHS
Rc Os5.7K views
CLASS III MATHS von Rc Os
CLASS III MATHS CLASS III MATHS
CLASS III MATHS
Rc Os4.2K views
CLASS III MATHS von Rc Os
CLASS III MATHSCLASS III MATHS
CLASS III MATHS
Rc Os597 views
Changing times. von Rc Os
Changing times.Changing times.
Changing times.
Rc Os811 views
3 class english von Rc Os
3 class english3 class english
3 class english
Rc Os258 views
Clss ii english-the mouse--- von Rc Os
Clss ii  english-the mouse---Clss ii  english-the mouse---
Clss ii english-the mouse---
Rc Os210 views
Rainbow von Rc Os
RainbowRainbow
Rainbow
Rc Os169 views
NUMBERS 1 TO 20 von Rc Os
NUMBERS 1 TO 20NUMBERS 1 TO 20
NUMBERS 1 TO 20
Rc Os195 views
TIME von Rc Os
TIMETIME
TIME
Rc Os55 views
MEASUREMENTS von Rc Os
MEASUREMENTSMEASUREMENTS
MEASUREMENTS
Rc Os78 views
DATA HANDLING von Rc Os
DATA HANDLINGDATA HANDLING
DATA HANDLING
Rc Os77 views
patterns von Rc Os
 patterns patterns
patterns
Rc Os58 views
Who is heavier von Rc Os
Who is heavierWho is heavier
Who is heavier
Rc Os818 views
Sundari von Rc Os
SundariSundari
Sundari
Rc Os397 views
The tiger and the mosquitoe von Rc Os
The tiger and the mosquitoeThe tiger and the mosquitoe
The tiger and the mosquitoe
Rc Os299 views
Photoshop von Rc Os
PhotoshopPhotoshop
Photoshop
Rc Os111 views
COMPUTERS SQL von Rc Os
COMPUTERS SQL COMPUTERS SQL
COMPUTERS SQL
Rc Os50 views

Último

CUNY IT Picciano.pptx von
CUNY IT Picciano.pptxCUNY IT Picciano.pptx
CUNY IT Picciano.pptxapicciano
54 views17 Folien
Classification of crude drugs.pptx von
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptxGayatriPatra14
92 views13 Folien
11.30.23 Poverty and Inequality in America.pptx von
11.30.23 Poverty and Inequality in America.pptx11.30.23 Poverty and Inequality in America.pptx
11.30.23 Poverty and Inequality in America.pptxmary850239
167 views33 Folien
Ch. 7 Political Participation and Elections.pptx von
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptxRommel Regala
105 views11 Folien
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant... von
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...Ms. Pooja Bhandare
109 views45 Folien
Create a Structure in VBNet.pptx von
Create a Structure in VBNet.pptxCreate a Structure in VBNet.pptx
Create a Structure in VBNet.pptxBreach_P
75 views8 Folien

Último(20)

CUNY IT Picciano.pptx von apicciano
CUNY IT Picciano.pptxCUNY IT Picciano.pptx
CUNY IT Picciano.pptx
apicciano54 views
Classification of crude drugs.pptx von GayatriPatra14
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptx
GayatriPatra1492 views
11.30.23 Poverty and Inequality in America.pptx von mary850239
11.30.23 Poverty and Inequality in America.pptx11.30.23 Poverty and Inequality in America.pptx
11.30.23 Poverty and Inequality in America.pptx
mary850239167 views
Ch. 7 Political Participation and Elections.pptx von Rommel Regala
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptx
Rommel Regala105 views
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant... von Ms. Pooja Bhandare
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Ms. Pooja Bhandare109 views
Create a Structure in VBNet.pptx von Breach_P
Create a Structure in VBNet.pptxCreate a Structure in VBNet.pptx
Create a Structure in VBNet.pptx
Breach_P75 views
Education and Diversity.pptx von DrHafizKosar
Education and Diversity.pptxEducation and Diversity.pptx
Education and Diversity.pptx
DrHafizKosar177 views
Ch. 8 Political Party and Party System.pptx von Rommel Regala
Ch. 8 Political Party and Party System.pptxCh. 8 Political Party and Party System.pptx
Ch. 8 Political Party and Party System.pptx
Rommel Regala53 views
AI Tools for Business and Startups von Svetlin Nakov
AI Tools for Business and StartupsAI Tools for Business and Startups
AI Tools for Business and Startups
Svetlin Nakov111 views
Structure and Functions of Cell.pdf von Nithya Murugan
Structure and Functions of Cell.pdfStructure and Functions of Cell.pdf
Structure and Functions of Cell.pdf
Nithya Murugan701 views
Sociology KS5 von WestHatch
Sociology KS5Sociology KS5
Sociology KS5
WestHatch76 views
7 NOVEL DRUG DELIVERY SYSTEM.pptx von Sachin Nitave
7 NOVEL DRUG DELIVERY SYSTEM.pptx7 NOVEL DRUG DELIVERY SYSTEM.pptx
7 NOVEL DRUG DELIVERY SYSTEM.pptx
Sachin Nitave61 views
Monthly Information Session for MV Asterix (November) von Esquimalt MFRC
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)
Esquimalt MFRC58 views
Dance KS5 Breakdown von WestHatch
Dance KS5 BreakdownDance KS5 Breakdown
Dance KS5 Breakdown
WestHatch86 views

COMPUTERS Database

  • 1. Overview of Database A Database is a collection of logically related data stored in a particular manner, from which information/data can be easily accessed, managed and updated at a very fast speed. An electronic data processing system that uses a database for the storage of data is known as a database system. Example: Payroll Management System, Banking, Booking Tickets. Database Management System (DBMS) A DBMS is a software that allows creation, definition and manipulation of database. DBMS is actually a tool used to perform any kind of operation on data in database. DBMS also provides protection and security to database. It maintains data consistency in case of multiple users. Here are some EDP is referred to the use of automated methods to process commercial data.
  • 2. examples of popular DBMS, MySQL, Oracle, Microsoft Access and IBM DB2 etc. Advantages of DBMS Reduced data redundancy (duplicacy of data) Data independence and consistency Easy retrieval of data Information protection (data integrity & security) Components of database system Users - Users may be of various type such as DB administrator, System developer and End users. Database application - Database application may be Personal, Enterprise and Internal. DBMS - Software that allow users to define, create and manages database access, Ex: MySQL, Oracle etc. Database - Collection of logical data.
  • 3. Purposes of Databases - Databases reduce the data redundancy to a large extent. - Databases can control data inconsistency to a large extent. - Databases facilitate sharing of data. - Databases can ensure data security - Data integrity can be maintained through databases Database Abstraction Data Abstraction is a process of hiding irrelevant details from user. The major purpose is to provide only that much information that is required by them. Various levels of database implementation Physical Level: In this level it describes how data are actually stored on the storage medium. You can get the complex data structure details at this level. Conceptual Level: In this level it describes what data are actually stored and also describes the relationships among data. View Level: In this level it describes only the information from the database which is required by the individual user. Concept of data independence The ability to modify a scheme definition in one level without effecting a scheme definition in the next level is called Data Independence. Physical data independence refers to the ability to modify the scheme followed at the physical level without affecting the scheme followed at conceptual level.
  • 4. Logical data independence refers to the ability to modify the conceptual scheme without causing any changes in the scheme followed at view levels. Different Data models A Data model is a collection of concepts that can be used to describe the structure of a database, including the relationships and constraints that determine how data can be stored and accessed. Three models are commonly used. They are, Hierarchical Model The hierarchical model organizes data into a tree-like structure, where each record has a single parent or root. Sibling records are sorted in a particular order. That order is used as the physical order for storing the database. This model is good for describing many real-world relationships. Network Model This data model represents many to many relationship. It is represented by collection of records and relationships among data are represented as links.
  • 5. Relational Model This model was proposed by Dr. Edgar F. Codd in 1970. It uses table to store the data. The data is organized in two dimensional tables called relations. The Relational model The relational model was proposed by E. F. Codd of the IBM and acknowledged as a very important concept in DBMS. RDBMS stores data in the form of related tables and describes how data is related or how it will be extracted from the database.
  • 6. Entity - An Entity is an object which can be distinctly identified. Relation - A relation is similar to table which consists of rows and columns. It is the basic storage structure of RDBMS. Domain - The domain is a set of possible values that an attribute can have. Tuple - A row in a relation is also called as a tuple. Attribute - a column in a relation is also called as an attribute. Degree - The number of attributes in a relation is called the degree of the relation. Cardinality - The number of tuples in a relation is called the cardinality of that relation. Views - A view is a kind of table whose contents are taken from other tables depending upon a condition. The contents of a view are determined by carrying out the execution of the given query. Structure of Relational Databases Keys - Keys are used to establish and identify relations between tables. They also ensure that each record within a table can be uniquely identified by combination of one or more attributes within a table. Primary key A primary key is a set of one or more attributes that can uniquely identify tuples within the relation.
  • 7. Candidate key Candidate keys are defined as the set of fields from which primary key can be selected. It is an attribute or set of attribute that can act as a primary key for a table to uniquely identify each record in that table.
  • 8. Alternate key The candidate key which are not selected for primary key are known as alternative keys Let's take an example of student it can contain NAME, ROLL NO., ID and CLASS. Here ROLL NO. is primary key and rest of all columns like NAME, ID and CLASS are alternate keys. If a table has more than one candidate key, one of them will become the primary key and rest of all are called alternate keys. Foreign key A FOREIGN KEY is a key used to link two tables together. A FOREIGN KEY is a field (or collection of fields) in one table that refers to the PRIMARY KEY in another table. The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.
  • 9. The Relation Algebra Select Operation (σ) It selects tuples that satisfy the given predicate from a relation. Notation − σp(r) Where σ stands for selection predicate and r stands for relation. p is prepositional logic formula which may use connectors like and, or, and not. These terms may use relational operators like − =, ≠, ≥, <, >, ≤. For example − σsubject = "Computer Science"(Books) Output − Selects tuples from books where subject is 'Computer Science'. σsubject = "maths" and price = "450"(Books) Output − Selects tuples from books where subject is 'maths' and 'price' is 450. Project Operation (∏) It projects column(s) that satisfy a given predicate. Notation − ∏A1, A2, An (r) Where A1, A2, are attribute names of relation r. Duplicate rows are automatically eliminated, as relation is a set. For example − ∏subject, author (Books) Selects and projects columns named as subject and author from the relation Books.
  • 10. Cartesian product (Χ) Combines information of two different relations into one. Notation − r Χ s Where r and s are relations and their output will be defined as σauthor = 'shariff'(Books Χ Articles) Union Operation For R ∪ S, The union of two relations R and S defines a relation that contains all the tuples of R, or S, or both R and S, duplicate tuples being eliminated. R and S must be union- compatible. For a union operation to be applied, the following rules must hold − r, and s must have the same quantity of attributes. Attribute domains must be compatible. Duplicate tuples gets automatically eliminated. Set Difference (−) The result of set difference operation is tuples, which are present in one relation but are not in the second relation. Notation: r − s Finds all the tuples that are present in r but not in s. ∏ author (Books) − ∏ author (Articles) Output − Provides the name of authors who have written books but not articles. Set Intersection Operation The set intersection operation finds tuples that are common to the two operand operations. This operation is denoted by ∩