What is an index and types of indexes. How many number of
indexes can be used per table ?
Answer Posted / jeevan
Index is nothing but an identification of each row. It will be used for quick search.
Types Of Index:
---------------
Clustered Index:
Clustered index is a physical sorting of database table’s rows in a storage media. For this reason, each table may have one clustered index. If a primary key constraint is created for a table but no clustered index exists for a table, then SQL server automatically create a clustered index on a primary key.
Non Clustered Index:
Non clustered index are created outside of the table and contain a sorted list of references to a table itself. Maximum we can use 249 clustered indexes per table.
Note:
Only 1 clustered Index can be used per table.
Maximum 249 non clustered index can be used per table.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba
what are date and time intervals? : Sql dba
What is join view in sql?
what is self-join? : Sql dba
Why indexing is needed?
Determine if oracle date is on a weekend?
What is sql resultset?
What has stored procedures in sql and how we can use it?
What are tables and fields in the database?
What are aggregate and scalar functions?
What is snowflake sql?
Define select, insert, create, delete, update, drop keywords
How do I find sql profiler?
how to drop an existing view in mysql? : Sql dba
Explain the difference between sql and mysql.