Challenge: Product Ratings
Desliza para mostrar el menú
Use the product_feedback_array table to answer the following business questions about product reviews.
- Unnest the
ratingsarray to count how many times each rating appears across all products:- Unnest the
ratingsarray; - Count the occurrences of each rating (e.g., 5, 4, 3, etc.);
- Your query should return these columns:
rating(INTEGER);rating_count(how many times this rating appears).
- Unnest the
- Calculate the average, total, and maximum rating for each
product_name:- Calculate the average rating;
- Count the total number of ratings;
- Find the highest rating given;
- Your query should return these columns:
product_name;average_rating;total_ratings;max_rating.
- Identify which products have the tag
"durable"in theirtagsarray:- Filter the results to include only products with the
"durable"tag; - Your query should return these columns:
product_name(only those that include"durable"intags).
- Filter the results to include only products with the
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 4
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Sección 3. Capítulo 4