I have quite a large table with 19 000 000 records, and I have problem with duplicate rows. There\'s a lot of similar questions even here in SO, but none of them seems to gi
SELECT *, COUNT(*) AS Count FROM table GROUP BY location_id, datetime HAVING Count > 2