Unit 4 - Advanced Database Commands Flashcards
ALTER TABLE
A clause that changes the structure of a table.
Any and All
The ANY and ALL operators compare a value with a set of values returned by a subquery. These operators are particularly useful if you want to compare multiple values from a subquery without specifying each value explicitly.
CROSS JOIN
A clause in a query that creates a new table with the same number of rows as the product of the original table sizes.
Column Alias
An alternative name assigned to a column for use in a query’s result set.
DROP VIEW
A statement that deletes a view.
Deduplication
The removal of duplicates.
EXPLAIN
A command that provides insight into the query execution plan for a given SQL query.
FULL OUTER JOIN
A JOIN that retrieves all records from both tables, even if there is no matching record in the other table; the missing column entries appear as NULL.
Foreign Key
A column or set of columns that refers to the primary key of another table.
LEFT JOIN
A clause that combines data from two tables based on a specified condition. It retrieves all records from the left (or first) table and matching records from the right (or second) table. In the result set, any unmatched rows from the left table will have NULL values.
NATURAL JOINs
SQL JOINs based on columns with identical names in the related tables. They are easier to set up than other JOINs but can result in unintended connections when the tables share multiple common column names.
Node
A section of a query plan that describes a single operation within the query.
Outer Query
A query that uses the output of a subquery (inner query) as input.
Query Plan Node
The results of an EXPLAIN command, describing the cost of each operation in a query.
RIGHT JOIN
A clause that combines data from two tables based on a specified condition. It retrieves all records from the right (or second) table and matching records from the left (or first) table. In the result set, only matching rows from the left and right tables are included, and any unmatched rows from the right table will have NULL values.