SQL - Indexes and Query Performance
Consider a UNIQUE index on columns
first_name and last_name in table people. Which insert will violate the UNIQUE constraint?INSERT INTO people (first_name, last_name) VALUES ('John', 'Doe');
INSERT INTO people (first_name, last_name) VALUES ('John', 'Smith');
INSERT INTO people (first_name, last_name) VALUES ('John', 'Doe');