Сделана 8 лаба

This commit is contained in:
2022-10-26 04:00:02 +03:00
parent 38c08028f1
commit c96fca8bc7
4 changed files with 106 additions and 0 deletions

13
Lab8/Task2.sql Normal file
View File

@@ -0,0 +1,13 @@
USE AdventureWorks;
GO
CREATE PROCEDURE Sales.GetDiscountsForCategory
@Category nvarchar(50)
AS
BEGIN
SELECT Description, DiscountPct, Type, Category, StartDate, EndDate, MinQty, MaxQty
FROM Sales.SpecialOffer
WHERE Category IN (@Category);
END
EXEC Sales.GetDiscountsForCategory 'Reseller'