I am looking to get the max value, but when I have several rows. something similar to this post, but for DB2:
This is what i'd like to accomplish: I have a table with orders a client made and would like to select the last order according to the highest order date.
client order date ord number
111 2013-01-01 asdf |
222 2013-01-05 kjhg |
111 2013-02-02 uiop |
222 2013-02-06 fghj |
result
client order date
111 2013-02-02
222 2013-02-06
I wish I was able to post an image, but it wont allow me...
Thank you!