1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
3
4<!--
5***********************************************************************
6 *
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 *
9 * Copyright 2000, 2010 Oracle and/or its affiliates.
10 *
11 * OpenOffice.org - a multi-platform office productivity suite
12 *
13 * This file is part of OpenOffice.org.
14 *
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
18 *
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
24 *
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org.  If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
29 *
30 ************************************************************************
31 -->
32
33
34<meta>
35      <topic id="textsharedexplorerdatabase02010101xml" indexer="include" status="PUBLISH">
36         <title xml-lang="en-US" id="tit">Join Properties</title>
37         <filename>/text/shared/explorer/database/02010101.xhp</filename>
38      </topic>
39   </meta>
40   <body>
41<bookmark xml-lang="en-US" branch="index" id="bm_id3154015"><bookmark_value>links;relational databases (Base)</bookmark_value>
42      <bookmark_value>inner joins (Base)</bookmark_value>
43      <bookmark_value>joins in databases (Base)</bookmark_value>
44      <bookmark_value>left joins (Base)</bookmark_value>
45      <bookmark_value>right joins (Base)</bookmark_value>
46      <bookmark_value>full joins (Base)</bookmark_value>
47</bookmark><comment>mw deleted "join properties" and changed "link properties..." to "links;"</comment>
48<paragraph xml-lang="en-US" id="hd_id3154015" role="heading" level="1" l10n="CHG"
49                 oldref="1">Join Properties</paragraph>
50      <paragraph xml-lang="en-US" id="par_id3151205" role="paragraph" l10n="U" oldref="2">If you double-click a connection between two linked fields in the query design, or if you choose <emph>Insert - New Relation</emph>, the <emph>Join Properties</emph> dialog appears. These properties will be used in all queries created in the future.</paragraph>
51      <section id="howtoget">
52         <embed href="text/shared/00/00000450.xhp#Joins"/>
53      </section>
54<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_DLG_QRY_LEFT_TABLE" id="bm_id3150749" localize="false"/>
55<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_DLG_QRY_RIGHT_TABLE" id="bm_id3150752" localize="false"/>
56<paragraph xml-lang="en-US" id="hd_id3155066" role="heading" level="2" l10n="U"
57                 oldref="17">Tables involved</paragraph>
58      <paragraph xml-lang="en-US" id="par_id3153924" role="paragraph" l10n="U" oldref="16"><ahelp hid="HID_DLG_QRY_RIGHT_TABLE">Specifies two different tables that you want to join.</ahelp></paragraph>
59      <paragraph xml-lang="en-US" id="hd_id3155766" role="heading" level="2" l10n="U"
60                 oldref="15">Fields involved</paragraph>
61      <paragraph xml-lang="en-US" id="par_id3148994" role="paragraph" l10n="CHG" oldref="14"><ahelp hid=".">Specifies two data fields that will be joined by a relation.</ahelp></paragraph>
62      <paragraph xml-lang="en-US" id="hd_id3159267" role="heading" level="2" l10n="U" oldref="3">Options</paragraph>
63<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_DLG_QRY_JOINTYPE" id="bm_id3147321" localize="false"/>
64<paragraph xml-lang="en-US" id="hd_id3147340" role="heading" level="3" l10n="U"
65                 oldref="13">Type</paragraph>
66      <paragraph xml-lang="en-US" id="par_id3152482" role="paragraph" l10n="CHG" oldref="4"><ahelp hid="HID_DLG_QRY_JOINTYPE">Specifies the link type of the selected link.</ahelp> Some databases support only a subset of the possible types.</paragraph>
67      <paragraph xml-lang="en-US" id="hd_id3155334" role="heading" level="3" l10n="U" oldref="5">Inner Join</paragraph>
68      <paragraph xml-lang="en-US" id="par_id3155936" role="paragraph" l10n="U" oldref="6"><ahelp hid="HID_DLG_QRY_JOINTYPE">With the internal join, the results table contains only the records for which the content of the linked fields is the same.</ahelp> In $[officename] SQL this type of link is created by a corresponding WHERE clause.</paragraph>
69      <paragraph xml-lang="en-US" id="hd_id3156372" role="heading" level="3" l10n="U" oldref="7">Left Join</paragraph>
70      <paragraph xml-lang="en-US" id="par_id3166450" role="paragraph" l10n="U" oldref="8"><ahelp hid="HID_DLG_QRY_JOINTYPE">With the left join, the results table contains all fields of the left table and only those fields of the right table for which the content of the linked fields is the same.</ahelp> In $[officename] SQL this type of link corresponds to the LEFT OUTER JOIN command.</paragraph>
71      <paragraph xml-lang="en-US" id="hd_id3155607" role="heading" level="3" l10n="U" oldref="9">Right Join</paragraph>
72      <paragraph xml-lang="en-US" id="par_id3150647" role="paragraph" l10n="U" oldref="10"><ahelp hid="HID_DLG_QRY_JOINTYPE">With the right join, the results table contains all fields of the right table and only those fields of the left table for which the content of the linked fields is the same.</ahelp> In $[officename] SQL this type of link corresponds to the RIGHT OUTER JOIN command.</paragraph>
73      <paragraph xml-lang="en-US" id="hd_id3158215" role="heading" level="3" l10n="U"
74                 oldref="11">Full Join</paragraph>
75      <paragraph xml-lang="en-US" id="par_id3163665" role="paragraph" l10n="U" oldref="12"><ahelp hid="HID_DLG_QRY_JOINTYPE">For a full join, the results table contains all fields of the left and right tables.</ahelp> In the SQL of $[officename] this type of link corresponds to the FULL OUTER JOIN command.</paragraph>
76<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_DLG_QRY_JOIN_CONTROL" id="bm_id0305200912022930" localize="false"/>
77<paragraph xml-lang="en-US" id="hd_id0305200912031976" role="heading" level="3" l10n="NEW">Natural</paragraph>
78      <paragraph xml-lang="en-US" id="par_id0305200912031977" role="paragraph" l10n="NEW"><ahelp hid=".">Inserts the keyword NATURAL into the SQL statement that defines the relation. The relation joins all columns that have the same column name in both tables. The resulting joined table contains only one column for each pair of equally named columns.</ahelp></paragraph>
79   </body>
80</helpdocument>