July 2002
Beginner
424 pages
9h 30m
English
An INTERSECT operation combines the results of two queries into a single result that comprises all the rows common to both queries. Intersections have the same restrictions as unions; see “Combining Rows with UNION” earlier in this chapter.
select_statement1 INTERSECT select_statement2;
Listing 7.46 uses INTERSECT to list the cities in which both an author and a publisher are located. See Figure 7.46 for the result.
Read now
Unlock full access