Outer Join Escape Sequences
- Last Updated: February 22, 2021
- 1 minute read
- DataDirect Connectors
- JDBC
- Apache Cassandra 6.0
- Documentation
Purpose
The SQL-92 left, right, and full outer join syntax is supported.
Syntax
{oj outer-join}
where outer-join is
table-reference {LEFT | RIGHT | FULL} OUTER JOIN {table-reference | outer-join} ON search-condition
where table-reference is a database table name, and search-condition is the join condition you want to use for the tables.
For example:
SELECT customers.custid, customers.name, orders.orderid, orders.status FROM {oj customers LEFT OUTER JOIN orders ON customers.custid=orders.custid} WHERE orders.status='OPEN'
The following outer join escape sequences are supported:
- Left outer joins
- Right outer joins
- Full outer joins
- Nested outer joins