Hi,
Can anyone tell me what is the SELECT statement for getting the latest time records based on date and other parameter.
Table data | |||||
DATE | TIME | SOURCE | DEST | PRD | QTY |
10.03.2014 | 13:18:51 | UHA | ABDH | DXCC17B | 1,000.00 |
10.03.2014 | 13:24:56 | UHA | ABDH | DXCC17B | 3,000.00 |
10.03.2014 | 13:24:56 | UHA | ABDH | DXCC16B | 1,000.00 |
11.03.2014 | 13:18:35 | UHA | ABDH | DXCC17B | 1,000.00 |
11.03.2014 | 13:24:20 | UHA | ABDH | DXCC17B | 3,000.00 |
11.03.2014 | 13:24:30 | UHA | ABDH | DXCC17B | 1,000.00 |
11.03.2014 | 13:24:30 | UME | CHKH | DXCC17B | 1,000.00 |
11.03.2014 | 13:24:30 | UME | CHKH | DXCC16B | 1,000.00 |
My selection screen input as
Input | ||
Source loc | UHA | UME |
Dest loc | ABDH | CHKH |
Date | 10.03.2014 | 11.03.2014 |
Output must be
Source and destination and date wise latest time records shoul be extracted by SELECT Statment.
Expected output as below
Output | |||||
DATE | TIME | SOURCE | DEST | PRD | QTY |
10.03.2014 | 13:24:56 | UHA | ABDH | DXCC17B | 3,000.00 |
10.03.2014 | 13:24:56 | UHA | ABDH | DXCC16B | 1,000.00 |
11.03.2014 | 13:24:30 | UHA | ABDH | DXCC17B | 1,000.00 |
11.03.2014 | 13:24:30 | UME | CHKH | DXCC17B | 1,000.00 |
11.03.2014 | 13:24:30 | UME | CHKH | DXCC16B | 1,000.00 |
Thanks
Ajit