Can we create clustered index on non primary key column
Answer Posted / pavan kumar
YES, We can create a clustered index on a non-primary
column. Check the folowing queries...
CREATE TABLE EMPLOYEES
(
empid int NOT NULL CONSTRAINT ix_pkEMPLOYEES PRIMARY KEY
NONCLUSTERED
, name varchar(25) NOT NULL
, age tinyint NOT NULL
)
CREATE CLUSTERED INDEX ixcEMPLOYEES ON EMPLOYEES (name)
| Is This Answer Correct ? | 57 Yes | 6 No |
Post New Answer View All Answers
What is pivot and unpivot?
What is attribute hierarchy? : sql server analysis services, ssas
What is nested transaction?
What is the significance of master, tempdb and model databases?
How to apply cascading referential integrity in place of triggers?
Do you know what is a trace frag? Where do we use it?
What is save transaction and save point?
SQL Server Architecture ?
How check triggers in sql server?
what's the difference between delete table and truncate table commands? : Sql server database administration
How many null values we can have in a unique key field in sql server?
Tell me about pre-defined functions of sql?
What is the use of attributehierarchyvisible ? : sql server analysis services, ssas
Does partitioning ssd reduce performance?
What purpose does the model database server?