Created
November 6, 2021 14:13
-
-
Save karthiks/dd545065a4f419ff36ca1e1f3c3ba4e9 to your computer and use it in GitHub Desktop.
inline scalar UDF
This file contains hidden or 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 CUBE(@X INT) | |
RETURNS INT | |
AS | |
BEGIN | |
RETURN @X * @X *@X | |
END | |
/* | |
To execute the above function call it like below | |
SELECT dbo.CUBE(5) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment