L
Size: a a a
AS
A
MC
MC
см
см
см
Дt
TS
TS
G
CREATE TABLE ProductНужно сделать аптейт на TotalSum для каждого OrderToProceed на основании количества продуктов и их стоимости в ProductsInOrder.
(
Id int not null identity(1,1),
ProductName nvarchar(max),
ProductCategoryId int not null,
CountryOfOriginId int not null,
Price decimal(16,2) not null
)
GO
CREATE TABLE ProductsInOrder
(
OrderId int not null,
ProductId int not null,
Quantity int not null,
)
GO
CREATE TABLE OrderToProceed
(
Id int not null identity(1,1),
OrderDate datetime not null,
TotalSum decimal (16,2) not null,
CustomerId int not null,
ResponsibleEmployeeId int not null
)
GO