Chapter 7 Study Questions Flashcards
A ________ is a SELECT statement that is coded within another SQL statement.
subquery
A subquery coded within another subquery is also known as a ______ subquery.
nested
An ____________ subquery is executed once for the entire query.
uncorrelated
A __________ subquery refers to a value that is provided by a column in the main query and is executed once for each row that is processed by the main query.
correlated
The ______ operator tests whether the subquery returns a result set (i.e. one or more rows are returned by the subquery).
EXISTS
Use the ___ ______ operator to test whether no rows are returned by the subquery.
NOT EXISTS
A result set referred to as an ______ ____ is one coded in the FROM clause of a SELECT statement.
inline view
_____ may be used to describe the different parts of a complex query without changing how the query operates.
Alias
To code a single-line comment start a line with two ______.
dashes
__________ is code that represents the intent of a query but does not necessarily use SQL code.
Pseudocode