How can I make a multicolumn index for two columns where one of them can be null?
I only want the index to validate that there are no duplicates when both columns have value (when the nullable column is not null). When the nullable column is null I don't want the validation.
Is this possible?