1.

Is duplicate entry of primary key is allowed in SQL?(a) Yes(b) No(c) Depends(d) None of the mentionedThe question was asked in unit test.This interesting question is from When Good Statements Go Bad topic in chapter Query Optimization of MySQL

Answer»

The CORRECT answer is (b) No

Easy explanation: Primary KEY are used to uniquely define ATTRIBUTED STORED in the table.



Discussion

No Comment Found

Related InterviewSolutions