Mysql 按日期不同的问题排序

Mysql order by issue with diffrent date

Consider the table i want an order in which the latest edit date billno come at top and so on. Like in this case billno 11 has the latest edit_date so all billno 11 entries come at top. And if the other billno have the latest edit_date then all entries of that billno come at top.

select id, billNo, amount, edit_date
from [whatever tables and join conditions you need here]
order by edit_date desc

这是我想要的最终查询,我终于得到了它。