From 08759bd954b66aff9f63881b3ea5c7abcfc495fe Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 17 Dec 2021 08:32:28 +0400 Subject: =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=88=D0=B5=D1=81=D1=82=D1=83=D1=8E=20=D0=B8=20=D1=81=D0=B5?= =?UTF-8?q?=D0=B4=D1=8C=D0=BC=D1=83=D1=8E=20=D0=BB=D0=B0=D0=B1=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task6_triggers.sql | 4 ++-- task7_procedures.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/task6_triggers.sql b/task6_triggers.sql index 3275880..20b1e6e 100644 --- a/task6_triggers.sql +++ b/task6_triggers.sql @@ -52,7 +52,7 @@ DROP TRIGGER RemoveDriverOnDelivery GO INSERT INTO Deliveries (driver_id, vehicle_id, route_id, date) -VALUES (1, 1, 1, '2021-09-08') +VALUES (1, 1, 1, '2021-04-15') GO UPDATE Deliveries @@ -154,7 +154,7 @@ DROP TRIGGER UpdateOrdersView GO UPDATE OrdersView -SET driver_id=2 +SET driver_id=1 WHERE order_date='2021-09-12' GO diff --git a/task7_procedures.sql b/task7_procedures.sql index 891db18..f3d7e84 100644 --- a/task7_procedures.sql +++ b/task7_procedures.sql @@ -41,10 +41,10 @@ DROP PROCEDURE calculate_order_price GO INSERT INTO Boxes (order_id, warehouse_id, wrapping_id, volume, weight) -VALUES (100020, 1, 1, 0.1, 10); +VALUES (100022, 1, 1, 0.1, 10); DECLARE @price INT; -EXEC calculate_order_price 100020, @price OUTPUT; +EXEC calculate_order_price 100022, @price OUTPUT; PRINT @price GO -- cgit v1.2.3