Find the total number of orders for each unique oti card reference.

SELECT order_oti_card_ref, COUNT(*) AS total_orders
FROM order_transaction.transaction_detail_deprecated
GROUP BY order_oti_card_ref;