-
Notifications
You must be signed in to change notification settings - Fork 1
/
VIEWS.txt
35 lines (30 loc) · 926 Bytes
/
VIEWS.txt
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
1.
create view maintenancereport_sean_view as
select *
from maintenancereport m natural join branch b natural join city c
where c.cityname='Sean'
2.
create view maintenancereport_rod_view as
select *
from maintenancereport m natural join branch b natural join city c
where c.cityname='Rod'
3.
create view branchaddressview as
select b.branchname, b.branchaddress, c.cityname, a.areacountry
from branch b natural join city c natural join area a
where a.areacountry='Japan'
4.
create view branchaddressview as
select b.branchname, b.branchaddress, c.cityname, a.areacountry
from branch b natural join city c natural join area a
where a.areacountry='USA'
5.
create view malfunction_sean_view as
select *
from malfunction m natural join branch b natural join city c
where c.cityname='Sean'
6.
create view malfunction_Rod_view as
select *
from malfunction m natural join branch b natural join city c
where c.cityname='Rod'