How many index keys possible for a table
Answers were Sorted based on User's Feedback
Answer / anand k
One table can only one clustered index or primary key and
249 non-clustered index or unique key
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / raji
Indexes may be defined as unique or non-unique. A unique
index acts as a constraint on the table by preventing
identical rows in the index and thus, the original columns.
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / namz
There can only be one clustered index but multiple non-
clustered index
Is This Answer Correct ? | 8 Yes | 2 No |
Answer / koti
250 indexes(1 cluster index,249 non-cluster indexes)
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / c.jagadish
In sqlserver we have two types of indexes (1) Clustered (2)
non clustered indexes.
Indexes may be simple index or composite index.
Index formed based on single column values is called simple
index
index formed based on multiple column values is called
composite index.
Default index is NON CLUSTERED INDEX
When a table contains a primary key column then sqlserver
automatically creates a unique clustered index.
Unique--- automatically creates a non clustered index
so for this reason PRIMARY KEY IS NOT EQUAL TO UNIQUE + NOT
NULL.
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / saravanan
four index keys is possible per one table.
read only table u havae create more then index per table
Is This Answer Correct ? | 3 Yes | 3 No |
Find top Nth employee from each department in terms of salary?
What is cursor in ms sql server?
Can a table have 2 primary keys?
I have all the primary data files, secondary data files as well as logs. Now, tell me can I still restore the database without having a full backup? : sql server database administration
write sql program to get the detail of student in a class?
What is the process of indexing?
What is the use of set nocount on/off statement?
Explain what is sql server english query?
What is store procedure? How do they work? When do you use?
How to convert a table data in XML format in sql server?
What is the difference between DATETIME2 and DATETIME?
How to disconnect from a sql server using mssql_close()?