I have a set of data in my database - see below example:
Food CONSUMPTION DATE_INSERTED
-------- ----------- -------------
Burger 2 07/10/2021
Fries 1 08/10/2021
Burger 2 08/10/2021
Chicken 1 07/12/2021
Burger 1 08/15/2021
Fries 2 08/11/2021
With this, I want to create a query like that will display this output:
Food July August September October
-------- ---- ------ --------- -------
Burger 2 3 0 0
Fries 0 3 0 0
Chicken 1 0 0 0
I actually did this in SQL Server but I am having a hard time to display the output in Oracle.