Question DB-SQL-0080
HardWhich query finds duplicate emails in a users table?
- A.
SELECT email FROM users WHERE COUNT(*) > 1
- B.
SELECT DISTINCT email FROM users
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
SQL question
Which query finds duplicate emails in a users table?
SELECT email FROM users WHERE COUNT(*) > 1
SELECT DISTINCT email FROM users
Sign up free to see the answer and a step-by-step explanation.
SELECT email FROM users GROUP BY email HAVING COUNT(*) > 1
SELECT email FROM users ORDER BY email