Академический Документы
Профессиональный Документы
Культура Документы
Objectives
In this lesson, you will learn to: Use functions Use different types of joins
1 of 49
2 of 49
3 of 49
The column headings in the report are cNewspaperName, vContactPerson, and cPhone
4 of 49
6 of 49
7 of 49
8 of 49
9 of 49
10 of 49
11 of 49
12 of 49
13 of 49
14 of 49
15 of 49
16 of 49
17 of 49
18 of 49
19 of 49
20 of 49
FROM ExternalCandidate
WHERE vFirstName='Helen'
21 of 49
22 of 49
23 of 49
They enable quick conversion of system and object information without writing several queries
24 of 49
25 of 49
26 of 49
Self Join
27 of 49
28 of 49
29 of 49
30 of 49
Cartesian Product: A join that includes more than one table without any condition in the ON clause creates a cartesian product between the two tables
31 of 49
33 of 49
34 of 49
35 of 49
36 of 49
37 of 49
38 of 49
Syntax
SELECT column_name, column_name [,column_name]
41 of 49
The required columns are displayed All rows from the first table are displayed The require rows from the second table are displayed
42 of 49
43 of 49
SELECT *
FROM Sales s JOIN Titles t ON s.Title_Id = t.Title_Id
JOIN Publishers p
ON t.Pub_Id = p.Pub_Id
44 of 49
45 of 49
46 of 49
47 of 49
A join that uses an asterisk (*) sign in the SELECT list and displays redundant column data in the result set is termed as an equi join.
48 of 49
49 of 49