scarletAni
Programmer
I have a table JUNK such as
junk_id
junk_chk_date
junk_chk_nbr
junk_itm_no
I need to select the value of junk_itm_no base on max(junk_chk_date) and max(junk_chk_nbr)
Eg:
1 A001 1999-10-03 012
2 A001 1999-10-05 011
3 B001 1999-07-04 010
4 B001 1999-07-08 009
I want the result to be
4 B001 1999-07-08 009
I have already found a way to do this. I want to know if there are other ways. Please mail whatever is possible. I will give my answer in the end.
junk_id
junk_chk_date
junk_chk_nbr
junk_itm_no
I need to select the value of junk_itm_no base on max(junk_chk_date) and max(junk_chk_nbr)
Eg:
1 A001 1999-10-03 012
2 A001 1999-10-05 011
3 B001 1999-07-04 010
4 B001 1999-07-08 009
I want the result to be
4 B001 1999-07-08 009
I have already found a way to do this. I want to know if there are other ways. Please mail whatever is possible. I will give my answer in the end.