What are indexes? When do you need to create Indexes?
Answer Posted / radhakrishnan
index : increase the performance of sql statement.
When we create :
1) large number of data in table
2) most of null value in specific column
3) multiple join in sql statement
4) less than 2% of data retrive from table
when we not create :
1) frequently update the table
2) less number of data
Type of Index :
1) clustered index
- primary & unique constaint cretae autoatically for this
index
- only one clustered index per table.
- data sorted physical order
- Eg : book front index
2) non clustered index
- create multiple index per table.
- Eg : book back index
Syntax :
Create index index_name on tablename (column name)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Tell me when is the update_statistics command used?
Write a SQL command to insert and update only a particular field?
It is important form e to get the information from log files of applications executed by the task scheduler? Does sql studio save these log files? : sql server management studio
what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
Where in ms sql server is ’100’ equal to ‘0’?
Define cursor locking
How to get a list all databases on the sql server?
How does stuff differ from the replace function?
What is co-related sub query?
How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?
Explain about the command-line tool SQLCMD?
How to defragment indexes with alter index ... Reorganize?
What types of replication are supported in sql server?
Explain what is meant by replication of database?
What is the difference between row_number and dense_rank?