Chapter 13: Implementing T SQL Routines Flashcards
1
Q
What’s a scalar function?
A
It’s a function that just returns a single value (not a record set).
2
Q
What’s a table valued function (TVF)?
A
It’s a function that returns a record set (a bunch of rows).
3
Q
What are the types of table valued function?
A
(1) Inline Statement Table Valued Function (ITVF): it’s created from a single SELECT statement. It’s like a view but it accepts parameters.
(2) Multiline Statement Table Valued Function (MTVF): it can more than one statement in his structure (it’s like a stored procedure).