Created
April 8, 2014 07:36
-
-
Save sqlparser/10099814 to your computer and use it in GitHub Desktop.
SQL parameter declaration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION dbo.Fn_gettoporders(@custid AS INT,@n AS INT, @test AS CHAR) | |
RETURNS TABLE | |
AS | |
RETURN | |
SELECT TOP(@n) * | |
FROM sales.salesorderheader | |
WHERE customerid = @custid | |
ORDER BY totaldue DESC | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment