Suresh Sundar
Success is journey, not a destination, always.
Showing posts with label
sql server
.
Show all posts
Showing posts with label
sql server
.
Show all posts
Tuesday, 1 April 2014
linq get second highest number or salary
Use this query:
var employees = Employees
.GroupBy(e => e.Salary)
.OrderByDescending(f => f.Key)
.Skip(1).Take(1)
.First();
Older Posts
Home
Subscribe to:
Posts (Atom)