How many index keys possible for a table

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of dml?

732


Why it is recommended to avoid referencing a floating point column in the where clause?

700


How do I create a stored procedure in sql server?

680


What are xml indexes?

692


What is the difference between row_number and dense_rank?

595






How do I get to sql server configuration manager?

687


What is clustered index

742


How to create a simple stored procedure in ms sql server?

702


What is difference between group by and having?

716


Can you type more than one query in the query editor screen at the same time?

766


Explain full-text query in sql server?

711


Can you explain full-text query in sql server?

759


How to search for a string in all stored procedure in sql server?

733


what's the information that can be stored inside a bit column? : Sql server database administration

717


What are the components of sql server service broker?

681