Set A is squares and Set B is red shapes. For each one of the joins above, describe what will be shown. For example: Join 1 will show circles that are also purple.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter12: Database Queries With Sql
Section: Chapter Questions
Problem 4E
icon
Related questions
Question

Set A is squares and Set B is red shapes.

For each one of the joins above, describe what will be shown. For example: Join 1 will show circles that are also purple.

SQL JOINS
A
|B
A
B
SELECT <select_list>
1. FROM TableA A
LEFT JOIN TableB B
ON A.Key = B.Key
SELECT <select_list>
2. FROM TableA A
RIGHT JOIN TableB B
ON A.Key = B.Key
A
В
A
В
SELECT <select_list>
A
7. FROM TablcA A
INNER JOIN TableB B
ON A.Key = B.Key
SELECT <select_list>
3 FROM TableA A
LEFT JOIN TableB B
ON A.Key = B.Key
WHERE B.Key IS NULL
SELECT <select_list>
4. FROM TableA A
RIGHT JOIN TableB B
ON A.Key = B.Key
WHERE A.Key IS NULL
A
A
SELECT <sclect_list>
5. FROM TableA A
FULL OUTER JOIN TableB B
ON A.Key = B.Key
SELECT <sclect_list>
FROM TableA A
FULL OUTER JOIN TableB B
6. ON A.Key = B.Key
WHERE A.Key IS NULL
OR B.Key IS NULL
OCL Moffatt, 2008
Transcribed Image Text:SQL JOINS A |B A B SELECT <select_list> 1. FROM TableA A LEFT JOIN TableB B ON A.Key = B.Key SELECT <select_list> 2. FROM TableA A RIGHT JOIN TableB B ON A.Key = B.Key A В A В SELECT <select_list> A 7. FROM TablcA A INNER JOIN TableB B ON A.Key = B.Key SELECT <select_list> 3 FROM TableA A LEFT JOIN TableB B ON A.Key = B.Key WHERE B.Key IS NULL SELECT <select_list> 4. FROM TableA A RIGHT JOIN TableB B ON A.Key = B.Key WHERE A.Key IS NULL A A SELECT <sclect_list> 5. FROM TableA A FULL OUTER JOIN TableB B ON A.Key = B.Key SELECT <sclect_list> FROM TableA A FULL OUTER JOIN TableB B 6. ON A.Key = B.Key WHERE A.Key IS NULL OR B.Key IS NULL OCL Moffatt, 2008
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Multiple table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage