July 2002
Beginner
424 pages
9h 30m
English
All the queries so far have retrieved rows from a single table. Now I’ll explain how to use joins to retrieve rows from multiple tables simultaneously. Recall from “Relationships” in Chapter 2 that a relationship is an association established between common columns in two tables. A join is a table operation that uses related columns to combine rows from two input tables into one result table. You can chain joins to retrieve rows from an unlimited number of tables.
Why do joins matter? The most important database information isn’t so much stored in the rows of individual tables; rather, it is the implied relationships between sets of related rows. In the sample database, for example, the individual ...
Read now
Unlock full access