Hi,
I have a table with the following columns:
uniqueid
customerid
destxt
I want to add a constraint that doesn't allow duplicate values in the destxt column for each customer ID. So two customers could have the same destxt value but not the same customer.
example:
10 12345 Hello
11 12345 Test
12 12346 Hello
13 12345 Hello ->>> ERROR Duplicate values for the same customer ID should not be allowed.
Any ideas? I knew how to do this in Oracle but I forgot, I am getting old .
Many thanks to all.
I have a table with the following columns:
uniqueid
customerid
destxt
I want to add a constraint that doesn't allow duplicate values in the destxt column for each customer ID. So two customers could have the same destxt value but not the same customer.
example:
10 12345 Hello
11 12345 Test
12 12346 Hello
13 12345 Hello ->>> ERROR Duplicate values for the same customer ID should not be allowed.
Any ideas? I knew how to do this in Oracle but I forgot, I am getting old .
Many thanks to all.