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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What’s a table valued function (TVF)?

A

It’s a function that returns a record set (a bunch of rows).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly