@ रॉय:असल में, मुझे लगता है कि यह होना चाहिए
select customers.customerId , count(orders.id) as num
from customers join orders on custumers.Id = orders.customerId
group by customers.customerId
having num=2
@ रॉय:असल में, मुझे लगता है कि यह होना चाहिए
select customers.customerId , count(orders.id) as num
from customers join orders on custumers.Id = orders.customerId
group by customers.customerId
having num=2