O'Reilly logo
  • Dustin Waybright thinks this is interesting:

When querying the function, you pass a specific input employee ID as the following example shows.

SELECT *
FROM HR.GetManagers(9) AS M;

From

Cover of Training Kit (Exam 70-461): Querying Microsoft® SQL Server® 2012

Note

So you save the function on the database and can simply query it by specifying the function INT in the from clause.