Select only rows that have a value for all categories in a column after group by
DB fiddle: https://dbfiddle.uk/QLKIuW1G For a given table, I have grouped by two columns and calculated the average of a third column. However, I would like to only get rows that have a value for all possible values in the category column (these are 1 and 2). How can this result be achieved? Example table: |… Read More Select only rows that have a value for all categories in a column after group by