I need to check if the member has a particular claim(COL) (1,2,3) but should not contain sub claim (4,5,6) So first condition: Billtype contains 13% and Col in (1, 2, 3) but Col not in (4,5,6) and the chargedamount>20 So the first condition would not be satisfied because we need only members who have col(1,2,3) but not (4,5,6) within the subquery Second Condition: Billtype contains 13% and Col in (1, 2, 3) and Col in (4,5,6) and the chargedamount>100 The second condition will be satisfied as Col contains (1,2,3) and also (4,5,6) and charged amount>100 INPUT: client id Order ID billtype col Chargedamount 1 1 138 1 20 1 2 138 4 5 1 3 137 2 10 1 4 136 3 25 1 5 139 5 150 1 6 137 6 700 OUTPUT: 1 5 139 5 150 1 6 137 6 700
... View more