MS SQL Server Joins Question:

Download Job Interview Questions and Answers PDF

Can you please explain the difference between Function and Stored Procedure?

SQL Server Joins Interview Question
SQL Server Joins Interview Question

Answer:

UDF can be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section where as Stored procedures cannot be. UDFs that return tables can be treated as another rowset. This can be used in JOINs with other tables. Inline UDF's can be thought of as views that take parameters and can be used in JOINs and other Rowset operations.

Download SQL Server Joins Interview Questions And Answers PDF

Previous QuestionNext Question
Explain collation?Explain sub-query?