我继承了一些 ingres 数据库的东西。以前没用过ingres。我发现了以下查询来隔离不同的电子邮件地址记录。
select a.reg_uid as id, a.firstname, a.lastname, a.postzip_code, a.suburb, a.city, a.state, a.email, a.country
from register a
inner join
(
select distinct email, min(reg_uid) as id from register
group by email
) as b
on a.email = b.email
and a.id = b.id
但是,当我将其插入 ingres 时,出现错误
"Table 'select' does not exist or is not owned by you."
有任何想法吗?