hi all i want to know that while we create a forigen key for any table then why we use constraints like..
CREATE TABLE Persons
(
PersonID int identity(1,1) NOT NULL,
FirstName nvarchar(20),
LastName nvarchar(20) NOT NULL,
CONSTRAINT PrimKeyPeople PRIMARY KEY(PersonID)
);
here all ready PersonID is primary key then why it's need to give another name primkeypeople. why we use constraints name here PrimKeyPeople here what is PrimKeyPeople ?