I am having a table with two columns. Want to add unique constraint on both columns. One of the column is nullable.
I m trying with this syntax:
ALTER TABLE a ADD CONSTRAINT a_unq UNIQUE (a_id, (coalesce(a_name, '')));
Its prompting error at or near "("