ms sl create a function return table code example Example: execute table valued function in sql SELECT * FROM udfProductInYear(2017);