I'm using this to create a view for duplicates , but no of records coming out of this view are more than I'm passing in: can anybody help ?
Code:
CREATE VIEW test AS ( SELECT field1, field2, field3,field4, field5 , field6, id, field7, COUNT(*) AS REC_COUNT FROM tablename GROUP BY field1, field2, field3 , field4, field5, field6, id, field7 HAVING COUNT(*) > 1
Comment