Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
SQL Server on Linux

You're reading from  SQL Server on Linux

Product type Book
Published in Aug 2017
Publisher Packt
ISBN-13 9781788291804
Pages 222 pages
Edition 1st Edition
Languages
Toc

Table of Contents (19) Chapters close

Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Linux Distributions 2. Installation and Configuration 3. SQL Server Basics 4. Database in the Sandbox 5. Sample Databases 6. A Crash Course in Querying 7. Backup and Recovery Operations 8. User Management 9. Implementing Data Protection 10. Indexing 11. In-Memory OLTP 12. Beyond SQL Server

JOIN operators


Queries created on a single table can sometimes provide you with the necessary data. However, in practice, most queries require data that is acquired from multiple tables. To create a query that will combine data from multiple tables into a single result set requires you to use a powerful relational operator called JOIN:

Figure 6-1. Two table join operation

The JOIN operator provides you with the functionality to combine data from two or more tables into a single result set. Related tables are created with common columns, usually named primary and foreign key. These keys are used to join related tables to each other. 

The database engine performs table joins in a way that it takes the record from the left table and, usually based on the common field, checks for one or more matches in the right table. There are several types of JOIN operators, but the most common ones are INNER JOIN and OUTER JOIN.

INNER JOIN

An INNER JOIN can be viewed as a cross-section of two sets. Therefore...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime