编写一个SQL查询,为下了 最多订单 的客户查找 customer_number
。
select customer_number
from orders
group by customer_number
having count(*) >= all (
select count(*) as ccnt
from orders
group by customer_number
编写一个SQL查询,为下了 最多订单 的客户查找 customer_number
。
select customer_number
from orders
group by customer_number
having count(*) >= all (
select count(*) as ccnt
from orders
group by customer_number