Hi,
Need to build one function by pass parameters and create one temp temp inside that to store fetched values and finally return the max of column values from that temp table as output
EX:
fn_test (@P1,@P2)
declare @temp (val 1, val 2)
insert into @temp (1,2)
insert into @temp (3,4)
select max(val1) from @temp -- as output and return
Thanks
Sathish


sathishRank #4,713 · 329 reputationPosted Feb 26, 2019, 10:28 PM EST
sathishRank #4,713 · 329 reputationPosted Feb 26, 2019, 10:45 PM EST
Puneet KankarRank #446 · 5.6K reputationPosted Feb 26, 2019, 6:06 AM EST