I want to add a field called email to table AGENT. I want the values of AGENT.email to be unique across the table and I want this uniqueness to be case insensitive.
For example adding "[email protected]" would violate the constraint if "[email protected]" already exists in the table. How do I do this?
You can add a unique index on
lower
of email column on the table like so: