Question: Write a SQL query to find duplicate records in a table.Answer: SELECT column, COUNT(*) FROM table GROUP BY column HAVING COUNT(*) > 1; |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is SQL?
- What is the difference between SQL and MySQL?
- What is a primary key?
- What is an index in a database?
- What is a foreign key?