How to use function in sql server with simple example
how to use function in sql server with simple example. what is function why we use function.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 7, 2013, 8:34 PM EST
hi,
Please refer below link to know what is function and how to create function
http://msdn.microsoft.com/en-in/library/ms186755.aspx
There are four main type of function in SQL server
1) table Valued function : that return whole table
select * from myTableFunction()
2) Scalar Value function : It return signle column and row value
select myscalaeFunction()
3) Aggregate function : it is inbuit Aggregate like sum, count etc..
4) system function
also refer
http://www.dotnet-tricks.com/Tutorial/sqlserver/KY3T010412-Different-Types-of-SQL-Server-Functions.html
hope this will help you.
Satyapriya NayakRank #47 · 31.5K reputationPosted Feb 7, 2013, 7:30 PM EST