Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
prasaditc55
Starting Member
8 Posts |
Posted - 2012-07-24 : 06:04:32
|
| Hi, I want to find top3 salary dynamically from employee table using user defined function.Note: 3 want to be passed at runtime, It means must be possible to pass any number.Thanks,Bhanu |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-07-24 : 09:36:27
|
quote: Originally posted by prasaditc55 Hi, I want to find top3 salary dynamically from employee table using user defined function.Note: 3 want to be passed at runtime, It means must be possible to pass any number.Thanks,Bhanu
whats purpose of making udf?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
prasaditc55
Starting Member
8 Posts |
Posted - 2012-07-24 : 23:41:41
|
| @visakh, I dosent know wat input i am gng to pass. It may any number. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-07-25 : 01:04:34
|
quote: Originally posted by prasaditc55 @visakh, I dosent know wat input i am gng to pass. It may any number.
isnt it enough to make it procedure then?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|