-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathodev_11.sql
More file actions
63 lines (61 loc) · 947 Bytes
/
odev_11.sql
File metadata and controls
63 lines (61 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
--actor ve customer tablolarında bulunan first_name sütunları için tüm verileri sıralayalım.
(
select first_name
from actor
)
union
(
select first_name
from customer
);
--actor ve customer tablolarında bulunan first_name sütunları için kesişen verileri sıralayalım.
(
select first_name
from actor
)
intersect
(
select first_name
from customer
);
--actor ve customer tablolarında bulunan first_name sütunları için ilk tabloda bulunan ancak ikinci tabloda bulunmayan verileri sıralayalım.
(
select first_name
from actor
)
except
(
select first_name
from customer
);
--İlk 3 sorguyu tekrar eden veriler için de yapalım.
--1
(
select first_name
from actor
)
union all
(
select first_name
from customer
);
--2
(
select first_name
from actor
)
intersect all -- kesişim olduğu için tekrar eden veri yok.
(
select first_name
from customer
);
--3
(
select first_name
from actor
)
except all
(
select first_name
from customer
);