sql server - t-sql function that returns table. How to make a view that returns multiple tables (union -ed) -
i have function returns table. (t-sql microsoft sql server 2008)
i call function like:
select * calcsomething( 21 ); how call function multiple id's. , unioned in 1 table.
something like:
select * users, calcsomething( users.id )
select cs.* users u cross apply calcsomething(u.id) cs
Comments
Post a Comment