Can we create clustered index on non primary key column

Answer Posted / sandeep

Yes, We can, only thing is that, we can create clustered
index only on one key.If table contains any clustered index
on any key(even on primary or on unique key) just drop it
and create it on desired key. after it you can create a non
clustered index on primary or on unique key.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between DataRow.Delete() and DataRow.Remove()?

948


How do I open a .db file?

732


What is trace flag in sql server?

718


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

2234


What is the difference between osql and query analyzer?

721






Name 3 of the features that the sql server built-in function loginproperty performs on standard logins? : sql server security

860


Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?

751


How to delete exactly duplicate records from a table?

803


Can you explain powershell included in sql server 2008?

669


What is rank function?

787


How to get the definition of a trigger back?

733


How to generate create function script on an existing function?

778


What is user-defined function?

726


when would you go for denormalization? : Sql server database administration

636


What are the benefits of filtered indexes?

711