SQL 查询 Google 表 – 等于 / 不等于

huangapple go评论66阅读模式
英文:

SQL query Google sheet - equals / not equal

问题

I would like to query db that will return all the DB that not equal to a range of values (in cells A1:A10)

Can I query not equal to a range?

QUERY(Cons!E2:T, "SELECT O, J WHERE O IS NOT IN A1:A10"))

英文:

I would like to query db that will returen all the DB that not equal to a range of values (in cells A1:A10)

Can i query not equal to a range ?

QUERY(Cons!E2:T,"SELECT O,J WHERE O IS NOT IN A1:A10"))

答案1

得分: 2

=QUERY(Cons!E2:T, "选择 O, J WHERE NOT O 匹配 '\\b" & TEXTJOIN("\\b|\\b", 1, A1:A10) & "\\b'")
英文:

Try this out:

=QUERY(Cons!E2:T,"SELECT O,J WHERE NOT O MATCHES '\b"&TEXTJOIN("\b|\b",1,A1:A10)&"\b'")

huangapple
  • 本文由 发表于 2023年5月15日 14:49:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/76251506.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定