28.06.2025

0

Beğenme

1

Görüntülenme

SQL Kursu Ödev 9

Aşağıdaki sorgu senaryolarını dvdrental örnek veri tabanı üzerinden gerçekleştiriniz.

1- city tablosu ile country tablosunda bulunan şehir (city) ve ülke (country) isimlerini birlikte görebileceğimiz INNER JOIN sorgusunu yazınız.


SELECT city, city.country_id, country.country_id, country 

FROM city

INNER JOIN country 

ON city.country_id = country.country_id;


2- customer tablosu ile payment tablosunda bulunan payment_id ile customer tablosundaki first_name ve last_name isimlerini birlikte görebileceğimiz INNER JOIN sorgusunu yazınız.


SELECT payment_id, first_name, last_name 

FROM customer

INNER JOIN payment ON payment.customer_id = customer.customer_id;


3- customer tablosu ile rental tablosunda bulunan rental_id ile customer tablosundaki first_name ve last_name isimlerini birlikte görebileceğimiz INNER JOIN sorgusunu yazınız.


SELECT rental_id, first_name, last_name

FROM customer

INNER JOIN rental ON customer.customer_id = rental.customer_id;

SQL

Yorumlar

Kullanıcı yorumlarını görüntüleyebilmek için kayıt olmalısınız!

Şen Ekin

SELECT meaning FROM life WHERE language = 'Python'; | def bio(): return "SQL lover. Python powered."

Konum

DE

© 2021 Patika Dev

facebook
twitter
instagram
youtube
linkedin

Disclaimer: The information /programs / events provided on https://patika.dev and https://risein.com are strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice and do not make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://patika.dev and https://risein.com disclaim any responsibility for financial decisions made by users based on information provided here.