This may be a very silly question, but I have never used unique indexes: I have used unique constraints, though.
I read the related question Unique index vs. unique constraint that uses a unique index but still can't really understand why unique indexes exist.
To me UNIQUE sounds more like a constraint than as an index. Shouldn't it always be specified as a constraint? Or am I missing something here? (most likely). So in simple words the question I have is:
- What's the use of a unique index?
Maybe the answer lies in history books and is related on how they were chronologically developed.