Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select c.customerid, count(orderid) as "ANZ_ORDERS"
- from customers c
- join orders o on c.customerid = o.customerid
- group by c.customerid
- order by 2 desc;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement