1000. Find duplicate customer emails — critical scenario 1

DBMS Published Updated 0 Views Verified
Solve this production-style DBMS problem. The answer should be safe against duplicates, NULL edge cases or accidental broad updates/deletes where relevant.
Looking for the latest Sarkari Result 2026 updates? Check the latest government exam results, merit lists and result updates on Sarkari Resultess.
Sarkari Resultess
Questions & Answers

Answer & Explanation

4 Answers
Verified

Option A

Use SELECT * with a CROSS JOIN and no predicate.
Additional Explanation
This option is incorrect for the stated requirement.
Sarkari Resultess
Editorial Answer 1
Verified

Option B

Ignore duplicate rows and NULL semantics.
Additional Explanation
This option is incorrect for the stated requirement.
Sarkari Resultess
Editorial Answer 2
Verified

Option C

Run an unqualified UPDATE/DELETE against the entire table.
Additional Explanation
This option is incorrect for the stated requirement.
Sarkari Resultess
Editorial Answer 3
Verified Correct Answer

Option D

SELECT email,COUNT(*) AS cnt FROM customers WHERE email IS NOT NULL GROUP BY email HAVING COUNT(*)>1;
Additional Explanation
Correct implementation. Prefer parameterized queries in application code, validate affected rows for UPDATE/DELETE, and use transactions for related writes.
Sarkari Resultess
Editorial Answer 4