There are two order and customer bases. I want to get the number of orders for a specific customer
SELECT o.firstname, c.firstname FROM o.order INNER JOIN c.customer ON c.customer_id=o.customer_id Duplicates customer how to make that customer would appear once and he had the number of orders?
count(*)function, which would be in the context of bush-yarders; we need agroup by c.firstname, c.customer_idand of course o.firstname in such a query appears to be useless, because there can be several for a one-hour meter - Mike