簡體   English   中英

導致錯誤的 BigQuery 搜索:標量子查詢產生了多個元素

[英]BigQuery Search which results in Error: Scalar subquery produced more than one element

在 BigQuery 上運行此查詢但導致此錯誤:錯誤:標量子查詢產生了多個元素

select * 
from CRM.organizations 
where name LIKE (select org_name from CRM.deals where UUID is not null and status = 'won')

當相似性與條目列表相似時,是否可以查找相似的字符串?

在下面使用 - IN而不是LIKE

select * from CRM.organizations where name IN (
select org_name from CRM.deals 
where UUID is not null and status = 'won') 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM