Skip to main content
Combine data from multiple tables using JOIN operations.

Basic Syntax

Inner Join

Returns only matching rows from both tables.

Left Join

Returns all rows from the first table, matched rows from second.

Right Join

Returns all rows from the second table, matched rows from first.

Full Join

Returns all rows from both tables.

Cross Join

Returns Cartesian product of both tables (no ON clause needed).

MongoDB Note

MongoDB uses $lookup aggregation for joins. OmniQL automatically translates JOIN syntax to the appropriate aggregation pipeline.

Limitations

Current JOIN implementation has these constraints:
  • One JOIN per query (no chained joins)
  • No table aliases
  • No column selection within JOIN queries
  • Field names only (no Table.field notation)
For complex multi-table queries, consider using multiple queries or your database driver directly.

Next Steps

Grouping

Aggregate with GROUP BY

Window Functions

Advanced analytics