doc-exports/docs/dws/tool/dws_mt_0132.html
Lu, Huayi 27019c2991 DWS TOOL 830.201 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:35:25 +00:00

17 lines
3.8 KiB
HTML

<a name="EN-US_TOPIC_0000001819336285"></a><a name="EN-US_TOPIC_0000001819336285"></a>
<h1 class="topictitle1">OUTER JOIN</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0238518392_en-us_topic_0237362397_en-us_topic_0202727381_p122447231467">This section describes the migration syntax of Oracle <strong id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_b149841021920">OUTER JOIN</strong>. The migration syntax determines how the keywords/features are migrated.</p>
<p id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0238518392_en-us_topic_0237362397_en-us_topic_0202727381_p23929795194424">An <strong id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0237712376_b66244890141924">OUTER JOIN</strong> returns all rows that meet the join condition. If rows of a table cannot join any rows in the other table, the statement returns these rows. In Oracle:</p>
<ul id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0238518392_en-us_topic_0237362397_en-us_topic_0202727381_ul14041570194424"><li id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0238518392_en-us_topic_0237362397_en-us_topic_0202727381_li59265272194424">Left outer join of tables A and B returns all rows from A and rows that satisfy the join condition by applying the outer join operator (+) to all columns of B in the <strong id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0237712376_b28073555141954">WHERE</strong> conditions.</li><li id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0238518392_en-us_topic_0237362397_en-us_topic_0202727381_li63625406194424">Right outer join of tables A and B returns all rows from B and rows that satisfy the join condition by applying the outer join operator (+) to all columns of A in the <strong id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0237712376_b65633754141959">WHERE</strong> condition.</li></ul>
<p id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0238518392_en-us_topic_0237362397_en-us_topic_0202727381_p35757750194424"><span id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_text1958020141713">GaussDB(DWS)</span> does not support the <strong id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_b19486164111111">+</strong> operator. The function of this operator is enabled using <strong id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0237712376_b26545529141938">LEFT OUTER JOIN</strong> and <strong id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0237712376_b63804984141943">RIGHT OUTER JOIN</strong> keywords.</p>
<div class="fignone" id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0238518392_en-us_topic_0237362397_en-us_topic_0202727381_fig41785631194510"><span class="figcap"><b>Figure 1 </b>Input: OUTER JOIN</span><br><span><img id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0238518392_en-us_topic_0237362397_en-us_topic_0202727381_image29192944194510" src="figure/en-us_image_0000001706105257.png"></span></div>
<div class="fignone" id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0238518392_en-us_topic_0237362397_en-us_topic_0202727381_fig15818229194510"><span class="figcap"><b>Figure 2 </b>Output: OUTER JOIN</span><br><span><img id="EN-US_TOPIC_0000001819336285__en-us_topic_0000001706104637_en-us_topic_0238518392_en-us_topic_0237362397_en-us_topic_0202727381_image6208150194510" src="figure/en-us_image_0000001706224505.png"></span></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_mt_0104.html">Oracle Syntax Migration</a></div>
</div>
</div>