July 2002
Beginner
424 pages
9h 30m
English
Recall from “Qualifying Column Names” in Chapter 7 that you can qualify a column name explicitly with a table name to identify the column unambiguously. In statements that contain subqueries, column names are qualified implicitly by the table referenced in the FROM clause at the same nesting level.
In Listing 8.15a, for example, the column names are qualified implicitly, meaning:
The column pub_id in the outer query’s WHERE clause is qualified implicitly by the table publishers in the outer query’s FROM clause.
The column pub_id in the subquery’s SELECT clause is qualified implicitly by the table titles in the subquery’s FROM clause.
Listing 8.15b shows Listing 8.15a with explicit qualifiers. See Figure 8.15 ...
Read now
Unlock full access