自行替换一下
select 第三列字段名 from 表名 where 第一列字段名='xxx' and 第二列字段名='xxx'
单元格中
sql("数据连接","select 第三列字段名 from 表名 where 第一列字段名 in ('xxx','yyy','zzz') and 第二列字段名 in('aaa','bbb')",1,1)