sql - How I can use a function which returns a table in a select statement with an inner join? -
i need use function returns table, in inner join sentence passing parameter. when executed, sentence not working.
select t0.code,t0.data1,t0,data2 [dbo].[fnget_data] (t1.code,'2010-01','usd') t0 inner join codes t1 on t1.code=t0.code
when executed sentence using constant parameter works ok
select t0.code,t0.data1,t0,data2 [dbo].[fnget_data] ('5200','2010-01','usd') t0 inner join codes t1 on t1.code=t0.code
is possible call function fnget_data
using parameter value of table?
have @ using apply
Comments
Post a Comment