我在下面的查询中有多个嵌套子查询。 要求是将所有嵌套子查询转换为具有主外部选择查询的连接。
select * from t1
where not exists (
select 1 from t2
join t21 on t21.c = t2.c
where t2.y = t1.y
and t2.x in (
select top 1 x from t3
join t31 on t31.d = t3.d
where t3.z = t2.z
and t3.a = t1.a
order by t3.b
)
)
有人可以帮助我实现这个目标吗?