Introducing Databases and SQL


Accessing Data With Queries


Aggregating and Grouping Data


Combining Data With Joins


Figure 1

Diagrams representing INNER JOIN and LEFT JOIN each include two overlapping circles labeled A (left) and B (right). For INNER JOIN, the intersection of the two circles is filled in. The associated query is SELECT * FROM A JOIN B ON A.Key = B.Key. For LEFT JOIN, circle A, including its intersection with circle B, is filled in. The associated query is SELECT * FROM A LEFT JOIN B ON A.Key = B.Key.
Diagrams representing INNER JOIN and LEFT JOIN in SQLite