SQL QuickStart Guide by ClydeBank Technology
Author:ClydeBank Technology
Language: eng
Format: epub
Publisher: ClydeBank Media LLC
Published: 2017-06-13T00:31:52+00:00
fg. 22 : Presenting table data as sets
When we join these sets of records with an INNER JOIN (Figure 23), we essentially include only those records in which there is an overlap as defined by the ON clause.
fg. 23 : Overlapping sets with INNER JOIN
An inner join requires that both sets of records involved in the join include matching records. If we want to include records from either side of the sets that are not overlapping, we need to use an outer join. An outer join doesn’t require a match on both sides, as we can specify which table will always return results regardless of the conditions in the ON clause. There are three types of outer joins: left outer join, right outer join, and full outer join. The syntax is identical to that for inner joins; the only change is the OUTER JOIN keyword.
In a left outer join, all the records from the table named on the left of the OUTER JOIN statement are returned, regardless of whether there is a matching record in the table on the right of the OUTER JOIN statement. For example (Figure 24), the following query:
SELECT Products.ProductName, Categories.
CategoryName
FROM Categories LEFT OUTER JOIN Products
ON Categories.CategoryID=Products.CategoryID
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8296)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6720)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6698)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6570)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6354)
Driving Data Quality with Data Contracts by Andrew Jones(6304)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6070)
Learning SQL by Alan Beaulieu(5994)
Weapons of Math Destruction by Cathy O'Neil(5778)
Big Data Analysis with Python by Ivan Marin(5354)
Data Engineering with dbt by Roberto Zagni(4351)
Solidity Programming Essentials by Ritesh Modi(3999)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3857)
Pandas Cookbook by Theodore Petrou(3569)
Blockchain Basics by Daniel Drescher(3292)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2905)
Feature Store for Machine Learning by Jayanth Kumar M J(2812)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2794)
Mastering Python for Finance by Unknown(2744)
