Can any of you please help me with the following query:
ID Amount
100 2
100 3
100 4
101 2
101 2
101 2
101 2
102 1
102 1
103 4
103 6
For a Group of particular ID, if the amount is 2, then I want to ignore them and get the rest of the data. In this case, I should ignore ID 101 since all the amount of ID 101 is 2. This is only if the amount is 2. So the result should look as in below. ANy tips on how to achieve this?
ID Amount
100 2
100 3
100 4
102 1
102 1
103 4
103 6
ID Amount
100 2
100 3
100 4
101 2
101 2
101 2
101 2
102 1
102 1
103 4
103 6
For a Group of particular ID, if the amount is 2, then I want to ignore them and get the rest of the data. In this case, I should ignore ID 101 since all the amount of ID 101 is 2. This is only if the amount is 2. So the result should look as in below. ANy tips on how to achieve this?
ID Amount
100 2
100 3
100 4
102 1
102 1
103 4
103 6