今日成果:
select * from invoices i
where invoice_total > (
select avg(invoice_total) from invoices where client_id = i.client_id
)
-- 查询一个用户大于自己发票平均价格的信息
-- 相关子查询
感谢各位读者查阅,欢迎各位👍点赞✍评论⭐收藏+关注!
今日成果:
select * from invoices i
where invoice_total > (
select avg(invoice_total) from invoices where client_id = i.client_id
)
-- 查询一个用户大于自己发票平均价格的信息
-- 相关子查询
感谢各位读者查阅,欢迎各位👍点赞✍评论⭐收藏+关注!