GadgetGrove's Inventory and Sales Tracking

Completed

Incomplete

Not Attended

Share

GadgetGrove, a popular electronics and sports equipment store, has hired you to help manage their inventory and sales database. As their SQL expert, you're tasked with writing queries to help the store manager make informed decisions about inventory management and sales strategies. The database contains two tables: 'products' for inventory information and 'sales' for transaction records. Your job is to provide insights and help optimize the store's operations.

notAttendedQuestion - 1

The store manager wants to know which products are running low on stock. Can you provide a list of products with less than 100 items in stock, showing the product name, current stock quantity, and category?

notAttendedQuestion - 2

The marketing team wants to run a promotion on the least sold product. Can you find the product with the lowest total quantity sold, and display its name, category, and total quantity sold?

notAttendedQuestion - 3

The store recently received a new shipment of Laptops. Update the stock quantity of Laptops by adding 25 to the current stock. Then, display the updated product information for Laptops.

notAttendedQuestion - 4

The finance department needs a report on the total revenue generated by each product category. Can you calculate the total revenue (price * quantity sold) for each category and display the category and total revenue?

notAttendedQuestion - 5

The store manager wants to identify the best-selling product in terms of quantity sold. Find the product with the highest total quantity sold, and display its name, total quantity sold, and the date of its last sale.

Prev
View Questions
Next
Code Editor
Table Name: products
idnamecategorypricestock_quantity
1LaptopElectronics999.9950
2SmartphoneElectronics599.99100
3HeadphonesElectronics149.99200
4Running ShoesSports79.99150
5Yoga MatSports29.99100

Table Name: sales
idproduct_idsale_datequantity
112023-01-155
222023-01-1610
332023-01-1715
442023-01-188
552023-01-1912
612023-01-203
722023-01-217

>>> Submit Your Query to validate