Find the total number of shops for each unique referral code.

SELECT shop_referral_code, COUNT(*) AS total_shops_per_referral_code
FROM order_transaction.transaction_detail_deprecated
GROUP BY shop_referral_code;