I have one field (column) called ID1 that has records 1,2,3,4,5,6 and so on. I have another field ID2 that has also records 1,1,1,2,2,1 and so on. I also have a field called amount1($) 100, 100, 100, 200, 200, 100. So, it could make raws such as 1 1 100 and 2 1 100 and 3 1 100. I need to create SQL statement that will create another amount (amount2) field or update already created field amount2 in a way that it will show 0 for duplicate records in amount2. The duplicate records are the ones that have the same ID2 and amount1 records. For example, if raws look like that: 1(ID1) 1(ID2) 100(amount1) and 2 1 100 and 7 1 100. I need to have 1 1 100 and 2 1 100 0 and 7 1 100 0. Thank you for your help!