Quiz 4 Flashcards
When you code a union that combines two result sets, which of the following is not true?
duplicate rows in the result set are allowed *
each result set must have the same number of columns *
the result sets must be derived from different tables
the corresponding columns in the result sets must have compatible data types
3rd one??
A full outer join includes rows that satisfy the join condition, plus ___________
Show answer choices
rows in the right table that don’t satisfy the join condition
the Cartesian product of the two tables
rows in both tables that don’t satisfy the join condition
rows in the left table that don’t satisfy the join condition
rows in both tables that don’t satisfy the join condition
- Table aliases are temporary table names assigned in which clause?
Show answer choices
FROM
ORDER BY
ON
WHERE
FROM
In most cases, the join condition of an inner join compares the primary key of one table to the ____________________ key of another table
Show answer choices
primary
SELECT
foreign
unique
foreign
The bringing together of rows from two tables.
Join
Specifies how the rows of table A are to be brought together with the rows of table B.
Join Condition
For an inner join (defalut 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 satify the join condition, these rows will not be present in table C.
Inner Join
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.
Qualified Column Name
The join syntax introduced in the SQL-92 standard.
explicit syntax
Temporary table names assigned in the FROM clause.
correlation name or table alias
A join where a table is joined to itself.
self-join
Pre SQL92 join Syntax.
implicit syntax
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.
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.
Left 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.
Right Outer Join