我正在尝试创建一个查询来搜索所有具有类似属性的记录,如下所示:
select * from table_A
where fullname like in (select firstname from employees where X)
唯一的问题是这只是我的伪代码,我实际上是在对许多表进行排序,所以我目前的真实查询看起来像:
select * from devices
where devicename like in (select X from X1 where T in (select T from T1 where Y in (select Y from Y1 where Z in (select Z from Z1 where AreaName = '74';
我正在尝试使用 join 命令,但对如何将其应用于这种情况感到非常困惑。