About this question
I am currently working on an e-commerce platform that wants to analyze the data of the sales for a particular category of products. Consider a database schema with tables like “products”, “categories” and “sales”. My task is to retrieve the data for a particular category with the following columns.
“productID”, “ProductName”, “Quantity Sold”, “SaleAmount”. What should be the SQL query for extracting this above subset of the sales data for the category that is given?