📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which value would violate a UNIQUE constraint on ProductCode?

A. Inserting P102 when P101 exists
B. Inserting P101 when P101 already exists ✅
C. Inserting P101 once
D. Deleting P101

Correct Answer: B. Inserting P101 when P101 already exists

Explanation

Only a repeated value violates UNIQUE; a new distinct code is allowed.