Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

table values functions in SQL

CREATE FUNCTION udfProductInYear (
    @model_year INT
)
RETURNS TABLE
AS
RETURN
    SELECT 
        product_name,
        model_year,
        list_price
    FROM
        production.products
    WHERE
        model_year = @model_year;
Code language: SQL (Structured Query Language) (sql)
Source by www.sqlservertutorial.net #
 
PREVIOUS NEXT
Tagged: #table #values #functions #SQL
ADD COMMENT
Topic
Name
2+7 =