标签: sql select subquery
我如何使该子工作正常?
Select a.group IN (select b.ref from b) from a
答案 0 :(得分:0)
您似乎想要:
select a.* from a where exists (select 1 from b where b.ref = a.group);