This file contains hidden or 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 | |
full join orders o | |
on c.customer_id = o.customer_id |
This file contains hidden or 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 | |
right join orders o | |
on c.customer_id = o.customer_id | |
where first_name is NULL |
This file contains hidden or 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 | |
right join orders o | |
on c.customer_id = o.customer_id |
This file contains hidden or 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 | |
left join orders o | |
on c.customer_id = o.customer_id | |
where order_date is NULL |
This file contains hidden or 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 | |
left join orders o | |
on c.customer_id = o.customer_id |
This file contains hidden or 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 |
This file contains hidden or 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 order_date, order_amount | |
from customers | |
join orders | |
on customers.customer_id = orders.customer_id | |
where customer_id = 3 |
This file contains hidden or 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
CREATE TABLE "contributors" ( | |
"id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, | |
"last_name" VARCHAR, | |
"first_name" VARCHAR, | |
"middle_name" VARCHAR, | |
"street_1" VARCHAR, | |
"street_2" VARCHAR, | |
"city" VARCHAR, | |
"state" VARCHAR, | |
"zip" VARCHAR, |
This file contains hidden or 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
CREATE TABLE "contributors" ( | |
"id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, | |
"last_name" VARCHAR, | |
"first_name" VARCHAR, | |
"middle_name" VARCHAR, | |
"street_1" VARCHAR, | |
"street_2" VARCHAR, | |
"city" VARCHAR, | |
"state" VARCHAR, | |
"zip" VARCHAR, |