join : Java Glossary

go to home page J words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish by Roedy Green ©1996-2009 Canadian Mind Products
index page for letter ⇒ punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
join
In SQL, selecting a row created from a data in two different tables, matched up by comparing values in specified columns. Here is a simple example of logically joining two table together by a common key:
-- t1 and t2 are tables.
-- The result shows fields from
-- both t1 and t2 together in a single record.
SELECT * FROM t1 LEFT JOIN t2 ON (t2.a=t1.a);
inner join
contain only matches from the two SQL tables.
outer join
contain mismatches as well as matches from the two SQL tables.
left outer join
contains entries from table A, whether or not they had matches in table B.
right outer join
contains entries from table B, whether or not they had matches in table A.
natural join
a join where all identically named columns in tables A and B have matching values.
keyed join
a join done using matching values for fields in the PRIMARY and FOREIGN KEYS in the natural way.
cross join
a Cartesian product of table A with table B, creating a combined record for every possible combination of a record from A with one from B.
self join
It is possible to join a table to itself, creating Cartesian product list of all combinations of pairs of records matching some criteria.
straight join
is identical to a join. except that the left table is always read before the right table. This can be used for those (few) cases for which the join optimizer puts the tables in the wrong order.

CMP homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.62] The information on this page is for non-military use only.
You are visitor number 14,793. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/join.html J:\mindprod\jgloss\join.html