Structured Query Language - C993 JOINS

Structured Query Language - C993 JOINS

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

ORACLE LEFT OUTER JOIN SYNTAX

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (19)

Section 1

(19 cards)

ORACLE LEFT OUTER JOIN SYNTAX

Front

(+) - Plus sign goes on the right side think of the plus operator as adding fake NULL rows on the right side to enable the otherwise unmatched rows on the left to be included in the returned row set

Back

ORACLE JOIN SYNTAX: (+)

Front

Oracle SQL offers an alternative outer join syntax that employs a plus sign enclosed in parentheses. This syntax is used quite a bit and long predates the ANSI standard syntax in Oracle SQL; however, the outer join plus operator is not on the exam.

Back

NATURAL JOIN

Front

Links tables by selecting only the rows with common values in their common attributes. *INNER JOIN by default, but can also be left outer join, right outer join, or a full outer join*

Back

SELF JOIN

Front

Joins a table to itself based on the value in a column of a table as it compares to the values within another column returns one or more rows from a table that are merged with other rows in the same table based on the join criteria

Back

LEFT OUTER JOIN

Front

keywords LEFT OUTER JOIN OUTER is optional Returns unmatched rows from the left side of the join

Back

JOIN

Front

Defaults to INNER JOIN

Back

MULTITABLE JOINS

Front

FROM keyword appears once JOIN keyword to join each pair of related tables

Back

SELF JOIN Syntax

Front

Define the table twice in the FROM clause Define join criteria Apply table aliases to all appropriate references

Back

Equijoin

Front

A join with an exact match of data (uses equal sign)

Back

USING

Front

Requirements: presence of identically named columns in the JOIN No table name prefix is allowed before the column name—not here, and not elsewhere in the statement such as line 1 output will show a value if any is present in either table; otherwise NULL The join condition, by definition, will reject conflicting values and exclude rows with conflicting values for the join condition.

Back

Non-Equijoin

Front

This type of join combines rows that have non-equivalent values for the specified columns. (uses comparison operators)

Back

RIGHT OUTER JOIN

Front

keywords RIGHT OUTER JOIN OUTER is optional returns unmatched rows from the right side of the join

Back

NON-EQUIJOIN Syntax

Front

The syntax of the ON condition in a non-equijoin is similar to the syntax for the WHERE clause in the SELECT, in that you can use comparison expressions, the greater-than or less-than operators, SQL functions, and Boolean operators to connect a series of comparisons

Back

INNER JOINS

Front

Joins that display data if there were a corresponding record in each table queried. Equality joins, non-equality joins, and self-joins are all classified as inner joins.

Back

ORACLE RIGHT OUTER JOIN SYNTAX

Front

(+) - Plus, sign goes on the left side think of the plus operator as adding fake NULL rows on the left side to enable the otherwise unmatched rows on the right to be included in the returned row set

Back

OUTER JOIN

Front

An outer join is a join that returns all the same data as an inner join but also returns additional rows, namely, those rows that don't have matches in all the tables that are joined together.

Back

FULL OUTER JOIN

Front

keywords FULL OUTER JOIN OUTER keyword is optional all of our rows, merged where matched, but all returned regardless.

Back

OUTER JOINS

Front

Connect rows in two or more tables if data exists in one table that has no matching values in another, the unmatched row will still be included in the output. *Joins that work even with NULL values*

Back

ORACLE FULL OUTER JOIN SYNTAX

Front

Use LEFT OUTER JOIN and RIGHT OUTER JOIN with UNION set operator

Back