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
Explain about SQLOS?
Can you please explain the difference between primary keys and foreign keys?
What is the difference between nvl and nvl2?
Can we shrink data file in sql server?
What is use of except clause? How it differs from not in clause?
Write query to return all rows sql?
What is msdb database? : SQL Server Architecture
Explain hostprotectionattribute in sql server 2005?
How to set the current database in ms sql server?
What is create command?
Define cursor locking
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?
Can we write a distributed query and get some data which is located on other server and oracle database?
How to execute a sql statement using odbc_exec()?
How do you make a trace?