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, and OUTER)
  • The SQL USING and jOOQ onKey() shortcuts
  • Practicing more types of JOINs (Implicit, Self, NATURAL, STRAIGHT, Semi, Anti, and LATERAL)

Let's get started!

Technical requirements

The code for this chapter can be found on GitHub at https://github.com/PacktPublishing/jOOQ-Masterclass/tree/master/Chapter06 ...

Get jOOQ Masterclass now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.