select tmp.card_no,tmp.pay_amount,count(tmp.pay_amount) as 个数 from (
select '88882560020000000221' as card_no,4 as pay_amount union all
select '88882560020000000221' as card_no,3 as pay_amount union all
select '88882560020000000221' as card_no,3 as pay_amount union all
select '88882560020000000221' as card_no,1 as pay_amount union all
select '88882560020000000221' as card_no,0.7 as pay_amount union all
select '88882560020000000221' as card_no,1.5 as pay_amount union all
select '88882560020000000221' as card_no,1.2 as pay_amount union all
select '88882560020000000221' as card_no,1 as pay_amount union all
select '88882560020000000221' as card_no,1 as pay_amount union all
select '88882560020000000221' as card_no,2 as pay_amount union all
select '88882560020000000221' as card_no,8 as pay_amount union all
select '88882560020000000221' as card_no,9 as pay_amount union all
select '88882560020000000221' as card_no,6 as pay_amount union all
select '88882560020000000221' as card_no,3.33 as pay_amount
) tmp
group by card_no,pay_amount
having count(tmp.pay_amount)>1