select  cardno,count(distinct storecd) from dtxnlog where txntype in('01','02','03','11','12','13') 
and saledate between '100101' and '100331'
group by cardno having count(distinct storecd)>1
select cardno,count(*) from (
select distinct storecd,cardno from dtxnlog where txntype in('01','02','03','11','12','13') 
and saledate between '100101' and '100331') a
group by cardno having count(*)>1