hi,
i have three columns, as below
claim_id(varchar) service_number(varchar) adjustment_type(varchar)
--
123 1 11
123 2 12
123 4 13
123 3 13
456 56 12
567 10 11
567 67 11
847 3 11
902 4 11
902 4 12
902 4 13
420 7 13
420 4 13
i need to get the all the rows whose adjustment_type is 13, if no 13 in a particual claim_id then 12 else 11.
the output should look like below:-
claim_id service_line adjustment_type
123 4 13
123 3 13
456 56 12
567 10 11
567 67 11
847 3 11
902 4 13
420 7 13
420 4 13
plz help
tahnk you
need logic
Moderators: chulett, rschirm, roy