File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "database" Watch "database" New topic


sak sha

Joined: May 02, 2006
Posts: 3
how to find the second max salary of employee given an emp table using sql
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3749

Sounds like a homework problem to me. Should be in the JDBC forum too.

Here's a hint: sort the results
Here's another hint: instead of sorting removing the records with the max salary

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: database
It's not a secret anymore!