MySQL using results of a query that has distinct counts in another query
I hope someone can help with this! I've used the following query to count the distinct values in column2 and column3 and filter the results: SELECT column1, COUNT(DISTINCT(column2)), COUNT(DISTINCT(column3)) FROM table1 GROUP BY column1 HAVING COUNT(DISTINCT(column2)) > 1 OR COUNT(DISTINCT(column3))…