cousinconley
MIS
Heres the scenario...I have a table with effective dated records. This means employee 123 can have multiple records all identified by a date.
Example: employee 123 gets a pay raise on 01-29-2006. Employee 123 then gets another raise 08-30-2006. Later employee 123 gets yet another raise 05-27-2007.
Question: how would you via SQL statement select the next to maximum dated record (08-30-2006)?
Example: employee 123 gets a pay raise on 01-29-2006. Employee 123 then gets another raise 08-30-2006. Later employee 123 gets yet another raise 05-27-2007.
Question: how would you via SQL statement select the next to maximum dated record (08-30-2006)?