Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Relational Algebra SQL Syntax, Schemes and Mind Maps of Computer Graphics

Describers topica about reltional algebra. Content of SQL

Typology: Schemes and Mind Maps

2013/2014

Uploaded on 05/07/2022

medical-entrance
medical-entrance 🇮🇳

4

(1)

3 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Relational Algebra
Procedured Query Language
- It uses Operators to perform Queries.
Relational Operations:
1)Select Operation:
The Select Operation selects tuples that satisfy a given
predigate. It is denoted by ‘σ’ Sigma p(r). Where σ is used for
selection projection and ‘r’ is used for Relational and ‘p’ is a
Propositional logic which use connectors like AND, OR, NOT
and Relational Operators like >,<,>=,=< Assignment Operator
like = and ≠ Operator.
Branch_name Loan no Amt
Itahari 101 20,000
Dharan 102 10,000
BRT 103 30,000
BRT 105 50,000
σ Branch_name = “BRT”(Loan)
Branch_name Loan no Amt
BRT 103 30,000
BRT 105 50,000
2) Project Operation:
This operation shows the list of those attributes that
It is denoted by Pie ‘π’. (π a1, a2)
Name Dept City
Anish IT BRT
Manish Officer KTM
Sanish Police BRT
pf3
pf4

Partial preview of the text

Download Relational Algebra SQL Syntax and more Schemes and Mind Maps Computer Graphics in PDF only on Docsity!

Relational Algebra

 Procedured Query Language

- It uses Operators to perform Queries.

 Relational Operations:

1)Select Operation:

The Select Operation selects tuples that satisfy a given

predigate. It is denoted by ‘σ’ Sigma p(r). Where σ is used for

selection projection and ‘r’ is used for Relational and ‘p’ is a

Propositional logic which use connectors like AND, OR, NOT

and Relational Operators like >,<,>=,=< Assignment Operator

like = and ≠ Operator.

Branch_name Loan no Amt Itahari 101 20, Dharan 102 10, BRT 103 30, BRT 105 50,

σ Branch_name = “BRT”(Loan)

Branch_name Loan no Amt BRT 103 30, BRT 105 50,

2) Project Operation:

This operation shows the list of those attributes that

It is denoted by Pie ‘π’. (π a1, a2)

Name Dept City Anish IT BRT Manish Officer KTM Sanish Police BRT

π name, city (Employee)

Name City Anish BRT Manish KTM Sanish BRT

3) Union Operation:

Suppose there are two tuples R and S, The union Operation

selects all the tuples that are either in R or in S or in Both R &

S.

It eliminates duplicate Tuples.

R & S must have the attributes of the same number.

Depositor Borrower Customer_name Acc_no Customer_name Loan_no. A 101 B 10 B 102 C 15 C 103 A 19 D 104 F 25 G 35

π Customer_name(Borrow) U π Customer_name(Depositor)

Customer_name A B C D

6) Cartesian Product:

The Cartesian Product is used to combine each row in one

table with each row in the other table. It is also known as cross

product. Denoted by ‘x’

7) Rename Operation:

The rename operation is used to rename the output

operation. Its denoted by ‘ρ’.

Ρ(Student1, Student) = ρ(New value, Old Value)