已关闭。此问题需要details or clarity。当前不接受答案。
**想要改进此问题?**添加详细信息并通过editing this post阐明问题。
去年关闭了。
Improve this question
我正在处理一个问题,我必须创建一个SQL查询,检索所有员工及其支持的客户的发票总额。请按发票总额的降序排列结果集。
以下是该架构:
下面是问题的输出:
下面是我的SQL查询:
select e.EmployeeId, avg(i.Total) as total
from employees as e, invoices as i ;
1条答案
按热度按时间ef1yzkbh1#
连接3个表并应用
order by
;我猜这没问题,因为模型没有显示整个invoices
表(“4个列”,嗯?)