MySQL: Count the distinct rows per day December 30, 2023 by Tarik SELECT DATE(timestamp) Date, COUNT(DISTINCT ipNum) totalCOunt FROM tableName GROUP BY DATE(timestamp) SQLFiddle Demo