create view Captain_Aragna as (with noCommentedProp as (
select member as nick, title, director, club
from Proposals
minus (
select nick, title, director, club
from Comments
)
), noCommentedNicksWCants as (
select nick, count(nick) as noCommentedCant
from noCommentedProp
group by nick
), usersProposalsWCants as (
select member as nick, count(member) as proposalsCant
from Proposals
group by member
), finalJoin as (
select *
from noCommentedNicksWCants
join usersProposalsWCants
using (nick)
)select nick, noCommentedCant/proposalsCant*100 as Porcentaje
from finalJoin);
有人可以帮我解决这个错误,我确实知道如何创建视图并在内部创建一个,并且当我使用视图进行创建时,它也会选择笨拙的对象
我认为以下语法可以工作: