I have a table where I would like to only have unique combinations of strings:
colA colB
---- ----
bob tom
ann bob
tom tom
How do I constrain this table so that (tom, bob)
cannot be inserted? This would be a non-unique combination because of the existence of (bob, tom)
in the first record.
A similar question has been asked here, but I believe that question focuses on handling this when the data are integers.