use table valued function in select statement code example Example: execute table valued function in sql SELECT * FROM udfProductInYear(2017);