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
Post a Comment