select * from
(select account_id, regexp_extract(....) top_dom from table_name)alias
inner join
(select acc, from table2_name)alias2 on alias.account_id=alias2.acc group by regexp_extract(....)
这会引发错误
答案 0 :(得分:0)
有几件事。
首先,您应该能够
select *
from (select account_id, regexp_extract(....) top_dom
from table_name) alias
inner join
(select acc
from table2_name ) alias2 on alias.account_id = alias2.acc
group by top_dom
第二,我不明白为什么首先要进行分组依据-您可能在执行select *
而不进行诸如计数之类的任何合计时会引起问题。您到底想用代码完成什么?