Here I have a table called tbl_items
item_id emp_id date amount
1 2345 12/12/2004 100
4 2345 01/01/2005 200
5 4567 03/03/2005 500
7 4567 05/05/2005 NULL
Please somebody help me with this query.I need to get the amount for the max date of the same emp_ids
say result shoould be
for 2345 200
for 4567 NULL
item_id emp_id date amount
1 2345 12/12/2004 100
4 2345 01/01/2005 200
5 4567 03/03/2005 500
7 4567 05/05/2005 NULL
Please somebody help me with this query.I need to get the amount for the max date of the same emp_ids
say result shoould be
for 2345 200
for 4567 NULL