I have a table which is giving me different record counts as below:
SELECT COUNT(1) FROM tbl_A --45104 records
SELECT ID,COUNT(*) FROM tbl_A GROUP BY ID ORDER BY 1 --42084 records(ID is the primary key)
Any idea why this will happen?
I have a table which is giving me different record counts as below:
SELECT COUNT(1) FROM tbl_A --45104 records
SELECT ID,COUNT(*) FROM tbl_A GROUP BY ID ORDER BY 1 --42084 records(ID is the primary key)
Any idea why this will happen?