SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,580 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
SSMS: 18.6
SQL Server: 2014
I am writing a query and I need to have the following in my stored procedure. How do I write it in the query? Any help would be appreciated. Thank you.
=========================================================
Parameter that allows a user to select that the revenue amount is over x amount (x= keyed in amount)
==========================================================
CREATE PROCEDURE dbo.uspGetCustomers @Amount money
AS
SELECT *
FROM dbo.Sales
WHERE SalesAmount > @Amount
GO
Thom,
Thanks for your help.