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 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) ©1996-2009 Roedy Green, Canadian Mind Products
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 You can get the freshest 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
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.108]
You are visitor number 17,010.