I\'m using SQL query to sum a column for total revenue of distinct values in one of the columns, and return a table with combining with other attributes.
Here\'s my t