CORRECT TEXT
You have a view that was created by using the following code:
You need to create an inline table-valued function named Sales.fn_OrdersByTerritory that returns sales information from a specified SalesTerritoryID.
Sales.fn_OrdersByTerritory must meet the following requirements:
• Use one-part names to reference columns.
• Return all the columns in the OrdersByTerritory View. The function should return the same columns as they exist in the OrdersByTerritory view and in the same order.
• Declare the input variable as @T.
• Use SalesTerritoryID as an integer.
Part of the correct T-SQL statement has been provided in the answer area. Provide the complete code.
Key Words
A. Please review the part for this answer