Hi
I need to create an SQL to retrieve the max date for each change in stock code. can anyone assist please? I am extremely new to SQl. I used access to get external data but it drags down 60,000 odd lines. i only have 5000 line items so with max date function working it will only have to retrieve 5,000 odd lines
stock_code stk_trans_type stk_trans_whse stk_trans_date
10016 MU WIL 9/02/2009
10016 MU WIL 7/02/2010
10016 MU WIL 5/03/2009
10016 MU WIL 29/05/2009
10016 MU WIL 26/02/2010
10016 MU WIL 21/05/2009
10016 MU WIL 21/04/2009
10016 MU WIL 20/09/2009
10016 MU WIL 20/07/2009
10016 MU WIL 20/05/2009
10016 MU WIL 18/04/2009
10016 MU WIL 18/03/2009
10016 MU WIL 16/02/2010
10016 MU WIL 12/11/2009
10016 MU WIL 11/06/2009
10016 MU WIL 1/11/2009
10016 MU WIL 1/11/2009
10016 MU WIL 1/05/2009
10017 MU WIL 9/02/2010
10017 MU WIL 8/11/2009
10017 MU WIL 8/05/2009
10017 MU WIL 8/02/2010
10017 MU WIL 7/06/2009
10017 MU WIL 7/06/2009
10017 MU WIL 7/06/2009
10017 MU WIL 7/05/2009
10017 MU WIL 7/03/2009
10017 MU WIL 7/01/2010
10017 MU WIL 6/09/2009
10017 MU WIL 5/12/2008
10017 MU WIL 5/10/2009
10017 MU WIL 5/05/2009