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

Table: ListingInteractions

+----------------------+------+
| Column Name          | Type |
+----------------------+------+
| buyer_id             | INT  |
| seller_id            | INT  |
| interaction_date     | DATE |
| product_id           | INT  |
| listing_interactions | INT  |
+----------------------+------+

Each row records a buyer's interactions with a seller's product on a date.

Table: DimAllProducts

+-------------+--------------+
| Column Name | Type         |
+-------------+--------------+
| product_id  | INT          |
| category    | VARCHAR(255) |
| record_date | DATE         |
| create_date | DATE         |
| country     | VARCHAR(255) |
+-------------+--------------+

Each row contains a product's category, dates, and country.

Test Cases
Input
-
Output
-
Expected
-