Trouble Spots Flashcards
SELECT (RESTRICT) yields a horizontal subset of a single table.
True
PROJECT yields a vertical subset of a single table.
True
UNION combines all rows from two tables excluding duplicate rows. The columns and domains of the two tables must be compatible.
True
INTERSECT yields only the rows that appear in both tables. Tables must be union-compatible.
True
DIFFERENCE yields all rows in one table that are not found in the other; that is it subtracts one table from another. Tables must be union-compatible.
True
PRODUCT yields all possible pairs of rows from two tables.
True
NATURAL JOIN links tables by selecting only the rows with common values in their common attributes.
True
INNER JOIN only returns matched records from the tables being joined.
True
OUTER JOIN returns the matched pairs of the inner join plus the unmatched records from one of the tables.
True
LEFT OUTER JOIN yields all the rows in the left table including those that have no matching values in the other table
True
RIGHT OUTER JOIN yields all the rows in the right table including those that have no matching values in the other table
True
DIVIDE is used to answer questions about one set of data being associated with all values in another set. DIVIDE uses one double-column table as the dividend and one single-column table as the divisor.
True
All information in a relational database must be logically represented as column values in rows within tables.
Information; Rule 1
Every value in a table is guaranteed to be accessible through a combination of table name, primary key value, and column name.
Guaranteed access; Rule 2
Nulls must be represented and treated in a systematic way, independent of data type.
Systematic treatment of nulls; Rule 3