Created
May 24, 2016 20:53
-
-
Save dan81989/aaeef78733287143f43446a29a1f62b1 to your computer and use it in GitHub Desktop.
Let’s say we wanted to get a list of those customers who placed an order and the details of the order they placed. This would be a perfect fit for an inner join, since an inner join returns records at the intersection of the two tables.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select first_name, last_name, order_date, order_amount | |
from customers c | |
inner join orders o | |
on c.customer_id = o.customer_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment