SyntaxFix
Write A Post
Hire A Developer
Questions
If you use management studio, simply select the wardNo, BHTNo, testID columns and click on the key mark in the toolbar.
Command for this is,
ALTER TABLE dbo.testRequest ADD CONSTRAINT PK_TestRequest PRIMARY KEY (wardNo, BHTNo, TestID)