How to use partition in Laravel

前端 未结 0 1484
梦谈多话
梦谈多话 2021-02-05 09:52

I have a table of employees with their name, dept and salary. See here

I want to fetch 2 highest salary employees from every dept

This is how I achieved in MySql,<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题