I have a table with the following fields in Oracle 10g.
TABLE_1
account_no | tracking_id | trans_amount
Each account_no can have multiple tracking Id's and transaction amounts.
How do i query out the duplicate entries of account_no where tracking lies between 1 and 1000, and the corresponding trans_amount ?
Many thanks in advance for your help,
novice.
Try the following query:
Explanation of the subquery: it finds all the
account_no
's for which there are more than 1 such that itstracking_id
is between 1 and 1000.I hope that's what you meant.