-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsql_odev_10
19 lines (15 loc) · 924 Bytes
/
sql_odev_10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--city tablosu ile country tablosunda bulunan şehir (city) ve ülke (country) isimlerini birlikte görebileceğimiz LEFT JOIN sorgusunu yazınız.
--customer tablosu ile payment tablosunda bulunan payment_id ile customer tablosundaki first_name ve last_name isimlerini birlikte görebileceğimiz RIGHT JOIN sorgusunu yazınız.
--customer tablosu ile rental tablosunda bulunan rental_id ile customer tablosundaki first_name ve last_name isimlerini birlikte görebileceğimiz FULL JOIN sorgusunu yazınız.
--SELECT city.city, country.country
--FROM city
--LEFT JOIN country
--ON city.city_id = country.country_id;
--SELECT customer.first_name, customer.last_name, payment.payment_id
--FROM payment
--RIGHT JOIN customer
--ON payment.customer_id = customer.customer_id;
--SELECT rental.rental_id, customer.first_name, customer.last_name
--FROM rental
--FULL JOIN customer
--ON rental.customer_id = customer.customer_id;