我对此查询有疑问,它显示此错误(每个派生表必须具有自己的别名) 有人可以帮我吗?...
select RegisterationDate, sum(TotalAmountUSD)
AS expenses
from
(
select RegisterationDate, TotalAmountUSD
from
items_purchased_by_company_total_by_company_view
union all
select RegisterationDate, TotalAmountUSD
from rental_fees_total_by_company_by_month
)
group by RegisterationDate
我知道问题出在stackoverflow,但我希望任何人向我解释此查询的问题