Chapter 6: Tackling Different Kinds of JOINs
The SQL JOIN
clause represents one of the most used SQL features. From the well-known INNER
and OUTER JOIN
clauses, the fictional Semi and Anti Join, to the fancy LATERAL
join, this chapter is a comprehensive set of examples meant to help you practice a wide range of JOIN
clauses via the jOOQ DSL API.
The topics of this chapter include the following:
- Practicing the most popular types of JOINs (
CROSS
,INNER
, andOUTER
) - The SQL
USING
and jOOQonKey()
shortcuts - Practicing more types of
JOINs
(Implicit, Self,NATURAL
,STRAIGHT
, Semi, Anti, andLATERAL
)
Let's get started!