1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?>
2*b1cdbd2cSJim Jagielski<helpdocument version="1.0">
3*b1cdbd2cSJim Jagielski
4*b1cdbd2cSJim Jagielski<!--***********************************************************
5*b1cdbd2cSJim Jagielski *
6*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
7*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
8*b1cdbd2cSJim Jagielski * distributed with this work for additional information
9*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
10*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
11*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
12*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
13*b1cdbd2cSJim Jagielski *
14*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
15*b1cdbd2cSJim Jagielski *
16*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
17*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
18*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
20*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
21*b1cdbd2cSJim Jagielski * under the License.
22*b1cdbd2cSJim Jagielski *
23*b1cdbd2cSJim Jagielski ***********************************************************-->
24*b1cdbd2cSJim Jagielski
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski<meta>
29*b1cdbd2cSJim Jagielski      <topic id="textsharedexplorerdatabase02010101xml" indexer="include" status="PUBLISH">
30*b1cdbd2cSJim Jagielski         <title xml-lang="en-US" id="tit">Join Properties</title>
31*b1cdbd2cSJim Jagielski         <filename>/text/shared/explorer/database/02010101.xhp</filename>
32*b1cdbd2cSJim Jagielski      </topic>
33*b1cdbd2cSJim Jagielski   </meta>
34*b1cdbd2cSJim Jagielski   <body>
35*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3154015"><bookmark_value>links;relational databases (Base)</bookmark_value>
36*b1cdbd2cSJim Jagielski      <bookmark_value>inner joins (Base)</bookmark_value>
37*b1cdbd2cSJim Jagielski      <bookmark_value>joins in databases (Base)</bookmark_value>
38*b1cdbd2cSJim Jagielski      <bookmark_value>left joins (Base)</bookmark_value>
39*b1cdbd2cSJim Jagielski      <bookmark_value>right joins (Base)</bookmark_value>
40*b1cdbd2cSJim Jagielski      <bookmark_value>full joins (Base)</bookmark_value>
41*b1cdbd2cSJim Jagielski</bookmark><comment>mw deleted "join properties" and changed "link properties..." to "links;"</comment>
42*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3154015" role="heading" level="1" l10n="CHG"
43*b1cdbd2cSJim Jagielski                 oldref="1">Join Properties</paragraph>
44*b1cdbd2cSJim Jagielski      <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>
45*b1cdbd2cSJim Jagielski      <section id="howtoget">
46*b1cdbd2cSJim Jagielski         <embed href="text/shared/00/00000450.xhp#Joins"/>
47*b1cdbd2cSJim Jagielski      </section>
48*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_DLG_QRY_LEFT_TABLE" id="bm_id3150749" localize="false"/>
49*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_DLG_QRY_RIGHT_TABLE" id="bm_id3150752" localize="false"/>
50*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3155066" role="heading" level="2" l10n="U"
51*b1cdbd2cSJim Jagielski                 oldref="17">Tables involved</paragraph>
52*b1cdbd2cSJim Jagielski      <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>
53*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="hd_id3155766" role="heading" level="2" l10n="U"
54*b1cdbd2cSJim Jagielski                 oldref="15">Fields involved</paragraph>
55*b1cdbd2cSJim Jagielski      <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>
56*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="hd_id3159267" role="heading" level="2" l10n="U" oldref="3">Options</paragraph>
57*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_DLG_QRY_JOINTYPE" id="bm_id3147321" localize="false"/>
58*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3147340" role="heading" level="3" l10n="U"
59*b1cdbd2cSJim Jagielski                 oldref="13">Type</paragraph>
60*b1cdbd2cSJim Jagielski      <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>
61*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="hd_id3155334" role="heading" level="3" l10n="U" oldref="5">Inner Join</paragraph>
62*b1cdbd2cSJim Jagielski      <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>
63*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="hd_id3156372" role="heading" level="3" l10n="U" oldref="7">Left Join</paragraph>
64*b1cdbd2cSJim Jagielski      <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>
65*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="hd_id3155607" role="heading" level="3" l10n="U" oldref="9">Right Join</paragraph>
66*b1cdbd2cSJim Jagielski      <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>
67*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="hd_id3158215" role="heading" level="3" l10n="U"
68*b1cdbd2cSJim Jagielski                 oldref="11">Full Join</paragraph>
69*b1cdbd2cSJim Jagielski      <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>
70*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_DLG_QRY_JOIN_CONTROL" id="bm_id0305200912022930" localize="false"/>
71*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id0305200912031976" role="heading" level="3" l10n="NEW">Natural</paragraph>
72*b1cdbd2cSJim Jagielski      <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>
73*b1cdbd2cSJim Jagielski   </body>
74*b1cdbd2cSJim Jagielski</helpdocument>