SQL Query to aggregate contract across product type

I have a table

Product Product detail System Contract Number Date closing deal
cheese gouda Supermarket 12346 11.03.2021
cheese gouda Supermarket 12345 12.03.2021
cheese Maasdam Store 67837 14.03.2021
cheese Maasdam Supermarket 67832 13.03.2021
Tomatoes Red Store 98237 13.03.2021
Tomatoes green Store 09123 13.03.2021

The question that I am trying to answer is how many contract are closed for Red and green tomatoes in store system, and Maasdam and gouda if it's from Supermarket system?



from Recent Questions - Stack Overflow https://ift.tt/3iPIZaj
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)