I have the following data in a table:
order # OpCode Date
12345 50 5/17/09
12345 51 6/12/09
12345 52 6/27/09
I want to write a query that returns only 1 row; the row with the maximum OpCode for an order #. So, I want to return OpCode 52 with Date 6/27/09.
I'll have the value of the order # for the query.
Thanks.
order # OpCode Date
12345 50 5/17/09
12345 51 6/12/09
12345 52 6/27/09
I want to write a query that returns only 1 row; the row with the maximum OpCode for an order #. So, I want to return OpCode 52 with Date 6/27/09.
I'll have the value of the order # for the query.
Thanks.