Hi,
I have a table with 1,700,000 records in. A small cut of it is shown below (there are 5 more columns):
ACCOUNT_ID BILL_DATE BILL_TOTAL
7900000097 30-Sep-03 25.6
7900000097 24-Nov-03 37.21
7900000097 23-Feb-04 71.2
7900000160 08-Mar-04 150.91
7900000160 20-May-05 108.95
I need to select the most recent BILL_DATE for each ACCOUNT_ID. But I only require one row per ACCOUNT_ID.
Any help will be greatly appreciated.
Kind Regards
Tubbsy123
I have a table with 1,700,000 records in. A small cut of it is shown below (there are 5 more columns):
ACCOUNT_ID BILL_DATE BILL_TOTAL
7900000097 30-Sep-03 25.6
7900000097 24-Nov-03 37.21
7900000097 23-Feb-04 71.2
7900000160 08-Mar-04 150.91
7900000160 20-May-05 108.95
I need to select the most recent BILL_DATE for each ACCOUNT_ID. But I only require one row per ACCOUNT_ID.
Any help will be greatly appreciated.
Kind Regards
Tubbsy123