Multiple choice technology programming languages

Which keyword must you add to your index definition in the CREATE INDEX statement to ensure that no duplicate values of the key column can exist?

  1. KEY

  2. UNIQUE

  3. NODUPS

  4. NODUPKEY

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Option B is correct: the UNIQUE keyword in CREATE INDEX prevents duplicate values in the indexed column. Option A (KEY) is not a valid keyword for enforcing uniqueness. Option C (NODUPS) is not valid SAS syntax. Option D (NODUPKEY) is a SAS dataset option, not a CREATE INDEX keyword.