Thread
:
How to find second max sal of employee with the co
View Single Post
#
4
(
permalink
)
10-31-2007, 02:41 AM
karthigayini
Junior Member
Join Date: Sep 2007
Posts: 2
use a simple logic
1st find the max sal of entire table
2nd list all sal less than max sal
3rd from that list find the max
select * from table where salary>(select salary from table where salary <max(salary))
karthigayini
View Public Profile
Send a private message to karthigayini
Find all posts by karthigayini