SELECT order_id ,  count(*) FROM Invoices GROUP BY order_id
How many invoices correspond to each order id?
SELECT order_id , count ( * ) FROM Invoices GROUP BY order_id
select order_id , count ( * ) from invoices group by order_id
How many invoices correspond to each order id ?