Inline table valued functions
• Returns a table.
• Not enclosed between begin and end.
• Can also be used in joins with other tables.
--------------------------------------------------------------------------------
select * from empdetails
select * from emp
create function regiondata(@place varchar(20))
returns table
as
return select * from empdetails where place=@place
----------------------------------------------------------------------------------------
select * from dbo.regiondata('delhi')
---------------------------------------------------------------------------------------------
select e.id,e.name,r.grade from emp e
left join dbo.regiondata('delhi') r
on e.id=r.id
En esta página del sitio puede ver el video en línea SQL Server Table Valued Function. Session 30 de Duración hora minuto segunda en buena calidad , que subió el usuario Sunny@Pandita 14 septiembre 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 72 veces y le gustó 4 a los espectadores. Disfruta viendo!