SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1
Apa ID Pelanggan Pelanggan yang memiliki pesanan terbanyak?
CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR)