Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

how to get all records from department wise having max salary?

$
0
0
i have a Employee table which consist

id  |  name   |   dept_id   |  Salary
1      A		1	        20
2      B               1	        25
3      C		2	        30
4      D		2	        25





Search max salary department wise with all details like below result.

id  |  name   |   dept_id   |  Salary
2      B               1	        25
3      C		2	        30


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>