I have a list of products and I would like to search into the order's table and count how many batch had been produced.
How can I achieve that? I'm working with this SQL instruction and I found all the batches of the products in the product's list. How can I count them, grouping by article name?
Select articlename, articleqnty, articleuom from orders
where articlename in (product1, product2, product3, etc...)