-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathodev_1.sql
More file actions
17 lines (16 loc) · 995 Bytes
/
odev_1.sql
File metadata and controls
17 lines (16 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--film tablosunda bulunan title ve description sütunlarındaki verileri sıralayınız
select title,description
from film;
--film tablosunda bulunan tüm sütunlardaki verileri film uzunluğu (length) 60 dan büyük VE 75 ten küçük olma koşullarıyla sıralayınız
select*from film f
where f.length > 60 and f.length <75;
--film tablosunda bulunan tüm sütunlardaki verileri rental_rate 0.99 VE replacement_cost 12.99 VEYA 28.99 olma koşullarıyla sıralayınız.
select*from film
where rental_rate = 0.99 and (replacement_cost = 12.99 or replacement_cost = 28.99);
--customer tablosunda bulunan first_name sütunundaki değeri 'Mary' olan müşterinin last_name sütunundaki değeri nedir?
select last_name
from customer
where first_name like 'Mary';
--film tablosundaki uzunluğu(length) 50 ten büyük OLMAYIP aynı zamanda rental_rate değeri 2.99 veya 4.99 OLMAYAN verileri sıralayınız.
SELECT * from film
where length <= 50 and not( rental_rate = 2.99 or rental_rate = 4.99);