-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathodev_4.sql
More file actions
18 lines (18 loc) · 790 Bytes
/
odev_4.sql
File metadata and controls
18 lines (18 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--film tablosunda bulunan replacement_cost sütununda bulunan birbirinden farklı değerleri sıralayınız.
select distinct replacement_cost
from film;
--film tablosunda bulunan replacement_cost sütununda birbirinden farklı kaç tane veri vardır?
select count(distinct replacement_cost)
from film;
--film tablosunda bulunan film isimlerinde (title) kaç tanesini T karakteri ile başlar ve aynı zamanda rating 'G' ye eşittir?
select count(title)
from film
where title like 'T%' and rating = 'G';
--country tablosunda bulunan ülke isimlerinden (country) kaç tanesi 5 karakterden oluşmaktadır?
select count(*)
from country
where country like '_____';
--city tablosundaki şehir isimlerinin kaç tanesi 'R' veya r karakteri ile biter?
select count(*)
from city
where city ilike '%r'