sql server - Join using Table valued function -


this question has answer here:

how can join using table valued function mssql 2012 query below?

select  m1.id, m1.oid, m1.id2    dbo.match(484066) m1 inner join         dbo.match(m1.id2) m2 on m1.id2 = m2.id inner join         dbo.match(m2.id2) m3 on m2.id2 = m3.id , m1.id = m3.id2 

select  m1.id, m1.oid, m1.id2    dbo.match(484066) m1 cross apply         dbo.match(m1.id2) m2 cross apply         dbo.match(m2.id2) m3  

is wanted?


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -