Skip to content

Commit 0d8764f

Browse files
Update create-function-transact-sql.md
In section "Examples", sub-section "C. Create a multi-statement table-valued function" - the UDF name in the description different from the name in the code snippet: `fn_FindReports(InEmpID)` instead of `ufn_FindReports(InEmpID)` In all other sections in the page, the UDF name prefix, is always `ufn_`.
1 parent ef8f586 commit 0d8764f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/t-sql/statements/create-function-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ SELECT * FROM Sales.ufn_SalesByStore (602);
768768

769769
### C. Create a multi-statement table-valued function
770770

771-
The following example creates the table-valued function `fn_FindReports(InEmpID)` in the [!INCLUDE [sssampledbobject-md](../../includes/sssampledbobject-md.md)] database. When supplied with a valid employee ID, the function returns a table that corresponds to all the employees that report to the employee either directly or indirectly. The function uses a recursive common table expression (CTE) to produce the hierarchical list of employees. For more information about recursive CTEs, see [WITH common_table_expression (Transact-SQL)](../queries/with-common-table-expression-transact-sql.md).
771+
The following example creates the table-valued function `ufn_FindReports(InEmpID)` in the [!INCLUDE [sssampledbobject-md](../../includes/sssampledbobject-md.md)] database. When supplied with a valid employee ID, the function returns a table that corresponds to all the employees that report to the employee either directly or indirectly. The function uses a recursive common table expression (CTE) to produce the hierarchical list of employees. For more information about recursive CTEs, see [WITH common_table_expression (Transact-SQL)](../queries/with-common-table-expression-transact-sql.md).
772772

773773
```sql
774774
CREATE FUNCTION dbo.ufn_FindReports (@InEmpID INT)

0 commit comments

Comments
 (0)