I have a table with these fields:
User_id, User_type, User_address
Is it possible to add a constraint where only one record can exist where user_type = 'xyz' per user_id? There can be as many user_type = 'abc' as we wish but only one 'xyz'.
I know that this is not the greatest design but it is what is there currently and I need to lock it down a bit.
Thanks