Here you find information about writing RIGHT JOINs (also referred to as RIGHT OUTER JOINs). This introduction into right joins includes a detailed description, syntax information and right outer join example statements. The Venn diagram on the left represents a result set that a statement with a right join produces. Please refer to the syntax examples below for an example. Links to additional information resources can be found at the end of this article.
Right Join syntax
First of all, some syntax examples for the impatient:
-- right join with USING-clause SELECT * FROM <leftTable> RIGHT JOIN <rightTable> USING(id)
-- right join with ON-clause SELECT * FROM <leftTable> a RIGHT JOIN <rightTable> b …[Read more]