Relational Algebra and Calculus Flashcards

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

1/55

flashcard set

Earn XP

Description and Tags

Flashcards covering key vocabulary from the Relational Algebra and Calculus lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

56 Terms

1
New cards

Relational Algebra

Basic set of operations for the relational model.

2
New cards

Relational Algebra Expression

Sequence of relational algebra operations.

3
New cards

Relational Calculus

Higher-level declarative language for specifying relational queries.

4
New cards

SELECT Operation

Subset of the tuples from a relation that satisfies a selection condition.

5
New cards

PROJECT Operation

Selects columns from a table and discards the other columns.

6
New cards

Degree

Number of attributes in attribute list.

7
New cards

UNION (R ∪ S)

Includes all tuples that are either in R or in S or in both R and S. Duplicate tuples eliminated.

8
New cards

INTERSECTION (R ∩ S)

Includes all tuples that are in both R and S.

9
New cards

SET DIFFERENCE (or MINUS) (R – S)

Includes all tuples that are in R but not in S.

10
New cards

JOIN Operation

Combine related tuples from two relations into single 'longer' tuples.

11
New cards

THETA JOIN

Each of the form Ai θ Bj, where θ (theta) is one of the comparison operators: {=,

12
New cards

EQUIJOIN

In case the operator θ is the equality operator (=) then this join is also called an equijoin.

13
New cards

Inner Join

Type of match and combine operation, defined formally as a combination of CARTESIAN PRODUCT and SELECTION

14
New cards

Recursive Closure Operation

Operation applied to a recursive relationship between tuples of same type

15
New cards

Outer Join

Keep all tuples in R, or all those in S, or all those in both relations regardless of whether or not they have matching tuples in the other relation

16
New cards

Declarative Expression

Specify a retrieval request using a nonprocedural language.

17
New cards

Tuple Variables

Ranges over a particular database relation.

18
New cards

Truth Value

Truth value of an atom evaluates to either TRUE or FALSE for a specific combination of tuples

19
New cards

Domain Relational Calculus

Variables range over single values from domains of attributes

20
New cards

Aggregate Functions

Functions that summarize data from multiple rows into a single output value.

21
New cards

Grouping Operation

Groups tuples based on the values of specified attributes.

22
New cards

HAVING Clause

Specifies a condition for groups, typically used with aggregate functions.

23
New cards

Query Tree

Represents the execution plan of a query as a tree structure.

24
New cards

Query Optimization

Process of selecting the most efficient execution plan for a query.

25
New cards

Cost-Based Optimization

Uses statistical information and cost models to estimate the cost of different execution plans.

26
New cards

Heuristic Optimization

Applies rules and heuristics to improve the execution plan.

27
New cards

Materialization

Process of storing the intermediate results of a query on disk.

28
New cards

Pipelining

Passes the results of one operation directly to the next without materialization.

29
New cards

Hashing

Technique used to improve the performance of join operations.

30
New cards

Relational Model

Represents data as a set of relations or tables.

31
New cards

Attribute

A column in a relation that represents a characteristic of an entity.

32
New cards

Tuple

A row in a relation representing a single entity or record.

33
New cards

Relation Schema

The structure of a relation including the name and attributes.

34
New cards

Relation Instance

A set of tuples in a relation at a particular point in time.

35
New cards

Database Schema

The overall design of the database, including all relation schemas.

36
New cards

Database Instance

The data in the database at a particular point in time.

37
New cards

Key

An attribute or set of attributes that uniquely identifies a tuple in a relation.

38
New cards

Primary Key

A key chosen to be the main identifier of a relation.

39
New cards

Foreign Key

An attribute in one relation that refers to the primary key of another relation.

40
New cards

Referential Integrity

Ensures that relationships between relations remain consistent.

41
New cards

NULL Value

Represents an unknown or missing value in an attribute.

42
New cards

Superkey

A set of attributes that uniquely identifies a tuple in a relation.

43
New cards

Candidate Key

A minimal superkey, meaning no proper subset is a superkey.

44
New cards

Functional Dependency

A constraint between two sets of attributes in a relation.

45
New cards

Normalization

Organizing data to reduce redundancy and improve data integrity.

46
New cards

First Normal Form (1NF)

Eliminate repeating groups of data.

47
New cards

Second Normal Form (2NF)

Be in 1NF and eliminate redundant data.

48
New cards

Third Normal Form (3NF)

Be in 2NF and eliminate transitive dependencies.

49
New cards

Boyce-Codd Normal Form (BCNF)

A stricter form of 3NF.

50
New cards

Denormalization

Adding redundancy to improve performance.

51
New cards

Data Integrity

Ensuring data is accurate, consistent, and reliable.

52
New cards

Atomicity

A transaction property that ensures all or nothing is written.

53
New cards

Consistency

Ensures a transaction maintains database constraints.

54
New cards

Isolation

Ensures concurrent transactions do not interfere with each other.

55
New cards

Durability

Ensures that once a transaction is committed, it remains so.

56
New cards

ACID Properties

Atomicity, Consistency, Isolation, Durability.