我对SQL很陌生,我有一个MS数据库,在这里我想在三种条件下过滤所有的数据。
数据库的第一个条件应该是满足名为"Range-1“的列中的所有数据,其中包含:"Information Technology".
目标应该是满足任何可能的组合- f.e.:“信息技术”->电信“-> "MedTech,InsurTech,FinTech,Infra”的查询。
表的名称是mytable。
我很感谢你的帮助。:)
发布于 2020-05-27 09:39:26
试试看下面的情况。
where Range-1 in ('Information Technology')
and Range-2 in ('Cyber Companies' , 'Telecommunications' , 'Robotics')
and Range-3 in ('Insurance, Tech' , 'Fiber, Optics, Silicon Valley' , 'MedTech,
InsurTech, FinTech, Infra'.
)发布于 2020-05-27 11:19:45
在MS Access中,语法如下所示:
select *
from mytable
where [Range-1] in ("Information Technology") and
[Range-2] in ("Cyber Companies", "Telecommunications", "Robotics") and
[Range-3] in ("Insurance, Tech", "Fiber, Optics, Silicon Valley", "MedTech,
InsurTech, FinTech, Infra")https://stackoverflow.com/questions/62039942
复制相似问题