RELATIONAL ALGEBRA

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/14

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

Relational Algebra

  • Formal language for the relational model

  • defines the basic set of operations for the relational model for basic retrieval requests

2
New cards

SELECT, PROJECT, JOIN

Operations specifically developed for relational databases

3
New cards

UNION, INTERSECTION, SET DIFFERENCE, CARTESIAN PRODUCT

Mathematical Operations on Sets

4
New cards

Unary Relational Operations

applied to a single relation

5
New cards

SELECT

  • select a subset of the tuples from a relation that satisfies a selection condition

  • a boolean expression specified on the attributes of relation R

6
New cards

PROJECT

selects certain columns from the table and discards the other columns; used if we are interested only in certain attributes of a relation

7
New cards

UNION

  • relation that includes all tuples that are either in R or in S or in both R and S

  • Duplicate tuples are eliminated

8
New cards

INTERSECTION

relation that includes all tuples that are in both R and S

9
New cards

MINUS (SET DIFFERENCE)

relation that includes all tuples that are in R but not in S

10
New cards

Union compatibility

Relations should have same degree (same number of attributes) and each corresponding pair of attributes have same domain

11
New cards

CARTESIAN PRODUCT

  • Combines every tuple from one relation with every tuple from another relation

  • not union compatible

12
New cards

CARTESIAN PRODUCT

  • will have a degree of n+m attributes

  • will have one tuple for each combination of tuples, one from R and one from S

  • will have nR * nS tuples

13
New cards

Binary Relational Operations

applied to two sets of tuples

14
New cards

JOIN

used to combine related tuples from 2 relations into a single tuple

15
New cards

JOIN

has one tuple for each combination of tuples --- one from R and one from S --- whenever the combination satisfies the join condition.