My Answer (in MS SQL), similar like kiwi's

interview (intervieweree)
select * from employee
where salary=(
select max(salary) from employee where
salary<(select max(salary) from employee)
)

anybody knows answer in Informix or DB2?
(#370304@0)
2002-2-15 -05:00

回到话题: here is the table, write a query to find out who have second highest salary?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=370304