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.

FROM HR.GetManagers(9) AS M;


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


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