Create a function get table as parameter and return value in sql server code example
Example: execute table valued function in sql
SELECT
*
FROM
udfProductInYear(2017);
SELECT
*
FROM
udfProductInYear(2017);