Now I am studying about functions in SQL Server 2012. I knew that there are three function types. But I am confused by Inline Table-Value Functions
.
Let me explain.
select * into Number
from (
values
(1, 'A'),(2, 'B'),(3, 'C')
) number (N, C)
create function InlineFun (@i int)
returns table
as
return (select * from Number where n = @i)
select * from Number where n = 1
select * from InlineFun (1)
From the above select
's the results are the same. Then what is the exact scope of Inline TVF
..?
Note :
I am using Microsoft SQL Server 2012