Can we create a clustered index on composite primary key.
Answer Posted / monal
You can also do this.
create table Test
(officeid integer not null,
empid integer not null,
age integer ,
sex varchar(5),
name varchar(20),
PRIMARY KEY (OFFICEID, EMPID))
this will also create composite primary key and cluster
index on composite primary key.
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
What is dml command?
Show Practically Sql Server Views are updatable?
What is mean by dml?
Using the customer, and order table in northwind database, please write a query to produce xml?
What is the downside of using udf?
Find nth lowest salary or get nth lowest salary?
How can I change procedure name in sql server?
Can we insert data if clustered index is disabled?
What is the purpose of sql profiler in sql server? : sql server database administration
Can you explain what are commit and rollback in sql?
What is compression - row-level and page-level compression?
Describe in brief authentication modes in sql server.
How to update a field in SQL after ALTERING a row?
What is resource governor?
What is a schema in ms sql server 2005?