skip to main content
Supported SQL Functionality : Select : Select Clause : From Clause : Outer Join Escape Sequences
  

Try DataDirect Drivers Now
Outer Join Escape Sequences

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.
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