[英]Counting using JOIN in Bigquery
也許你只是想要一個cross join
?
select *
from (select count(*) as cnt_a from a) a cross join
(select count(*) as cnt_b
from a join
b
on y
where condition
) b
只需離開加入兩者
Select count(A.id=B.id),
count(A.id)
from A left join B on A.id=B.id
where condition='x'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.