Задание к практической работе 9
1. Создать представления для реализации отчетов 1-3 согласно индивидуального варианта задания
2. Какое из этих представлений - модифицируемое ?
#1 CREATE VIEW Dailyorders
AS SELECT DISTINCT cnum, snum, onum,
odate
FROM Orders;
#2 CREATE VIEW Custotals
AS SELECT cname, SUM (amt)
FROM Orders, Customers
WHERE Orders.cnum = customer.cnum
GROUP BY cname;
#3 CREATE VIEW Thirdorders
AS SELECT *
FROM Dailyorders
WHERE odate = 10/03/1990;
#4 CREATE VIEW Nullcities
AS SELECT snum, sname, city
FROM Salespeople
WHERE city IS NULL
OR sname BETWEEN 'A' AND 'MZ';