Week 6 Flashcards
Relational Algebra and relational calculus
A high-level declarative language for specifying relational queries.
relational calculus
A ____ operation operates on single relations.
unary
A ___ operation operates on two tables by combining related tuples (records) based on join conditions.
binary
An operation that can summarize data from tables, as well as additions types of Join and Union operations.
A. Relational operation
B. Functional operation
C. Aggregate functions
C. Aggregate functions
What operation is used to choose a subset of tuples from a relation that satisfies a specific condition?
SELECT
The SELECT operation is ____; it can be applied in any order.
A. strict
B. commutative
C. transitive
B. commutative
What operation is used to choose columns from a table?
PROJECT
The sigma (σ) symbol is used for what operation?
A. select
B. project
C. union
A. select
The pi (π) symbol is used for what operation?
A. select
B. project
C. union
B. project
T/F: the PROJECT operation removes duplicate tuples if the attribute list includes only nonkey attributes.
True
The rho (ρ) symbol is used for what operation?
A. select
B. project
C. rename
C. rename
The ___ operation is used to change the name of an intermediate operation. It is used with using the (TABLE)
RENAME
In SQL, the ____ operation is used by using DISTINCT in a SELECT query.
PROJECT
in SQL, AS is used as the ____ operation.
RENAME
The operation that includes all tuples that are in X or Y, or in both X and Y. Duplicates are eliminated. (X ∪ Y)
A. UNION
B. INTERSECTION
C. SET DIFFERENCE
A. UNION