Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Please help me to write a function for this requirement!

$
0
0

Hi,
    I have created a stored procedure which accepts 2 input parameters (param1 & param2 ) and its output is 'Score'

Eg:
Exec uspScorecalculation StudentID,DeptID 

output: 85

Now, My requirement is , I want to populate this value as one of the columns in a 'Select' statement.

Can you please give me some input like how can i write a funtion to retrieve this score from the procedure and use it in the select statement?

I assume,  the funciton should pass the two parameters into the stored procedure 'uspScorecalculation'  and retreives the Score.

Can you please help me on this?

thanks!


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>