2012-02-10 2 views

답변

1
SELECT users.id, COUNT(*) FROM orders 
INNER JOIN users ON (orders.user_id = users.id) 
group by users.id 
having count(*)>=1 
1
SELECT users.id, COUNT(*) FROM orders 
INNER JOIN users ON (orders.user_id = users.id) 
GROUP BY users.id 
HAVING count(*) >= 1