SQL COUNT overflow March 9, 2023 by Tarik Use COUNT_BIG SELECT COUNT_BIG(*) FROM Similarities WHERE T1Similarity = 0 OR T2Similarity = 0