Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Monday, Dec 7.Claim the deal

Description

Table: products

+---------------+---------+
| Column Name   | Type    |
+---------------+---------+
| product_id    | integer |
| product_name  | varchar |
| category_name | varchar |
+---------------+---------+

product_id is the primary key.

Table: product_sales

+----------------+---------+
| Column Name    | Type    |
+----------------+---------+
| product_id     | integer |
| sales_quantity | integer |
| rating         | decimal |
+----------------+---------+

product_id is the primary key. rating ranges from 1.0 to 5.0.

Test Cases
Input
-
Output
-
Expected
-