PostgreSQL - Aggregate Functions and GROUP BY
Given the table
Choose the correct description of the output.
transactions(customer_id, product_id, total), what will be the result of this query?SELECT customer_id, product_id, SUM(total) FROM transactions GROUP BY GROUPING SETS ((customer_id), (product_id));
Choose the correct description of the output.
