ch7-ppt Flashcards
(9 cards)
JOIN
bring together data from more than one table into one table
common domain
one foreign key and one primary key will be the same. computers way of matching relationships
two approaches of join
explicit join and subquery
inner join
aka equi-join. match based on equality in common columns. only matched columns are returned.
ON column=column
outer join
all records returned from one table, whether they match or not
subquery
place an inner query within a WHERE or HAVING clause of another outer query.
outer query is what is actally displayed
one query output is put into one query input
two types of subqueriese
1-noncorrelated
2-correlated
noncorrelated subquery
do not depend on data from outer query
correlated subquery
use formula on the data of outer query