Skip to content
Advertisement

CUSTOMER and purchased CATEGORY count details in Oracle SQL

I am having the below require. if anyone provide the solution it would be thankful

Requirements:-

Transaction of the customer who purchased in the below category Customers and purchased Category

Total Number of customer from category level category and customer count

I want to display the output life below output

Thanks R Sanjay

Advertisement

Answer

You can use cte, self join it and join it again with your table as following:

Cheers!!

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement