How to count rows that have the same values in two columns (SQL)? August 4, 2023 by Tarik SELECT A,B,COUNT(*) FROM the-table GROUP BY A,B