there are more then two rows of a single employee based on date(say effdate) in table and I have to select the most recent row for that employee. please suggest a sql query For example if a table contains scott 22/12/1980 rambo 23/12/1990 spawn 25/12/1991 scott 22/12/2000 rambo 23/12/1970 spawn 25/12/1999
i want answer like Scott 22/12/2000 rambo 23/12/1990 Spawn 25/12/1999