[英]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.