GerryGoldberg
Technical User
- Apr 12, 2001
- 55
Could someone show me the correct syntax for creating a CLUSTERED PRIMARY KEY made up of multiple fields. My table is structured like:
CREATE TABLE MASTER (
client_ID int NOT NULL,
visit_ID int NOT NULL,
visit_ID datetime NULL,
clinic_ID varchar(10) NULL,
staff_ID varchar(10) NULL)
I would like the primary key to be a composite of client_ID and visit_ID.
Thanks,
Gerry Goldberg
CREATE TABLE MASTER (
client_ID int NOT NULL,
visit_ID int NOT NULL,
visit_ID datetime NULL,
clinic_ID varchar(10) NULL,
staff_ID varchar(10) NULL)
I would like the primary key to be a composite of client_ID and visit_ID.
Thanks,
Gerry Goldberg