SQL User Defined Function Within Select

前端 未结 3 805
刺人心
刺人心 2021-01-01 08:37

I have a user defined function in SQL called getBuisnessDays it takes @startdate and @enddate and returns the number of business days between the two dates. How can I call t

3条回答
  •  一生所求
    2021-01-01 09:11

    Use a scalar-valued UDF, not a table-value one, then you can use it in a SELECT as you want.

提交回复
热议问题