In what major way do Inline Functions differ from Views?
An Inline Function can take parameters
Write the Syntax used to create an Inline Function
CREATE FUNCTION schema.fn_functionname (@parameter int)
RETURN TABLE
AS
RETURN( SELECT…FROM)
What is the purpose of the RETURN statement in an Inline Function?
the RETURN statement quite literally returns the embedded (in brackets) select statement.
What is the purpose of the RETURN TABLE statement in the creation of an Inline Function?
This tells SQL that it is a table valued function as compared to a scalar valued function
What are the two main types of Inline Functions?
Table-valued returns a table and Scalar-valued returns just one value.