-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOdev2.sql
More file actions
17 lines (9 loc) · 919 Bytes
/
Odev2.sql
File metadata and controls
17 lines (9 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--Ödev2'in 1. Ödev konusu:
--film tablosunda bulunan tüm sütunlardaki verileri replacement cost değeri 12.99 dan büyük eşit ve 16.99 küçük olma koşuluyla sıralayınız ( BETWEEN - AND yapısını kullanınız.)
select * from film where replacement_cost between 12.99 and 16.98
--Ödev2'in 2. Ödev konusu:
--actor tablosunda bulunan first_name ve last_name sütunlardaki verileri first_name 'Penelope' veya 'Nick' veya 'Ed' değerleri olması koşuluyla sıralayınız. ( IN operatörünü kullanınız.)
select * from actor where first_name in ('Penolope','Nick','Ed')
--Ödev2'in 3. Ödev konusu:
--film tablosunda bulunan tüm sütunlardaki verileri rental_rate 0.99, 2.99, 4.99 VE replacement_cost 12.99, 15.99, 28.99 olma koşullarıyla sıralayınız. ( IN operatörünü kullanınız.)
select * from film where rental_rate in (0.99, 2.99, 4.99) and replacement_cost in (12.99, 15.99, 28.99)