Is this you wanted? Create table yourTable(u1 int unique, u2 int unique) Madhivanan Failing to plan is Planning to fail
I wonder why you want this [<img src='/community/emoticons/emotion-1.gif' alt='' />]<br /><br />Madhivanan<br /><br />Failing to plan is Planning to fail
Yes, two unique keys are only "necessary" when you need your own unique key, and you are assuming that an external key is also unique. Never trust outside keys to be unique. And if the second key is also an internal unique key then I wish you good luck, because there must be some organizational mess-up.