USE ds_db01 SELECT TOP 2 customer_id FROM order_masterl GROUP BY customer_id ORDER BY count(customer_id) DESC