Answer Posted / Neeraj Singh Vimal
To find the 2nd highest salary, you can use the `OrderByDescending` and `Skip` methods. Here is an example: n```csharpndecimal secondHighestSalary = employees.OrderByDescending(e => e.Salary) .Skip(1) .FirstOrDefault()?.Salary ?? default(decimal);n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category