Relational Calculus Flashcards

(11 cards)

1
Q

Formal query language for relational model based on the branch of the mathematical logic called predicate calculus

A

Relational Calculus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Specify what is to be retrieved rather than how to retrieve it

A

Relational Calculus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Two variations of relational Calculus

A

tuple
domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Importance of Relational Calculus

A
  1. Firm basis in mathematical Logic
  2. SQL has its basic foundation in tuple relational calculus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

{t|COND(t)} the first t represents?

A

tuple variable representing the requested attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

{t|COND(t)} the COND(t) represents?

A

conditional expression involving t that evaluates to TRUE or FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

formula is made up of predicate calculus atoms which can be

A

An atom of the form:
R(ti)
ti. A op tj. B
ti. A op c or c op tj.B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

COND is called _________ or ________

A

condition or formula or well informed formula

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A formula is made up of one or more atoms connected via ___________

A

Logical operators ie. and or and not

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Two special symbols called _______ can appear in formulas

A

quantifiers
Existential quantifier ∃
- A formula ∃t (F) is TRUE if there exists some tuple t that makes F TRUE.
Universal quantifier ∀
- A formula ∀t (F) is TRUE if for all possible tuple t, F is TRUE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Query Graph

A

Graphical representation of a relational calculus query

How well did you know this?
1
Not at all
2
3
4
5
Perfectly