Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Difference beteen keys

Author  Topic 

nishu81
Starting Member

11 Posts

Posted - 2009-12-17 : 09:37:12
Is candidate key is same as unique key??

I have read some where unique key can be null (but only once)
is candidate key can also be null once??

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-17 : 10:28:55
Yes. The name means that it is a candidate for the primary key constraint. You can only have one PK, so other candidates are set as unique keys.


Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -