Chapter 04 slides

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/21

flashcard set

Earn XP

Description and Tags

Chapter 4 Quiz

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

22 Terms

1
New cards

A full outer join includes rows that satisfy the join condition, plus ______

rows in both tables that don’t satisfy the join condition

2
New cards

A unio combines the rows form two or more ______

SELECT statements

3
New cards

Join

The bringing together of rows from two tables

4
New cards

Join Condition

Specifies how the rows of table A are to be brought together with the rows of table B

5
New cards

Inner Join

For an inner join (default type) only rows from table A and table B that satisfy the join condition are placed on the table C. If rows exist in table A and/or table B that do not satisfy the join condition, these rows will not be present in table C

6
New cards

Qualified Column Name

A fully qualified name consists of four parts: a server name, a database name, a schema name, and the name of the object itself. At times it will be necessary to qualify a column name (either partially or fully) to tell SQL server the source of the column

7
New cards

Explicit Syntax

The join syntax introduced in the SQL-92 standard

8
New cards

Correlation Name or Table Alias

Temporary table names assigned in the FROM clause

9
New cards

Self-Join

A join where a table is joined to itself

10
New cards

Implicit Syntax

Pre SQL92 join Syntax

11
New cards

Outer Join

A join in which all the rows of a table appear in the join results, regardless of whether they have a match in the join condition

12
New cards

Left Outer Join

All of the rows in the left table appear in the join results, regardless of whether they have a match in the join condition

13
New cards

Right Outer Join

All of the rows in the right table appear in the join results, regardless of whether they have a match in the join condition

14
New cards

Full Outer Join

All of the rows in both joined tables appear in the join results regardless of whether they have a match in the join condition

15
New cards

Cross Join (Cartesian Product)

Each row from table A is joined (concatenated ) with each row from table B

16
New cards

Union

Combining the results of two or more SELECTs that return the same number of corresponding columns

17
New cards

SELECT VendorName AS Vendor, InvoiceDate AS Date

FROM Vendors v JOIN Invoices i ON v.VendorID = i.VendorID

This type of join is called ___________

an Inner Join

18
New cards

When you code a union that combines two result sets, which of the following is not true?

the result sets must be derived from different tables

19
New cards

In most cases, the join condition of an inner join compares the primary key of one table to the ________ key of another table

foreign

20
New cards

If you assign an alias to one table in a join, you have to ______

use that name for the table in the query

21
New cards

Table aliases are temporary table names assigned in which clause?

FROM

22
New cards

In a join, column names only need to be qualified where?

when the same column names are used in both tables