1.

Which of the user defined function will be preferred for adding two numbers?(a) Scalar(b) Inline table valued(c) Max()(d) Min()This question was posed to me by my school principal while I was bunking the class.The doubt is from User Defined Functions topic in chapter Developing with SQL Server of SQL Server

Answer» RIGHT ANSWER is (a) Scalar

To ELABORATE: We are can create a Scalar UDF AddTwoNumbers which accepts two input parameters @a and @B and returns OUTPUT as the sum of the two input parameters.


Discussion

No Comment Found

Related InterviewSolutions