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
What are the essential components of sql server service broker?
How do you manipulate data?
What is the concept of optimization?
What is entity data services?
How to get the definition of a user defined function back?
State a few properties of relational databases?
Is foreign key a primary key?
Explain the difference between HTTP and HTTPS in database?
How to connect ms access to sql servers through odbc?
Explain what is sql server english query?
Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security
List down some advantages of sql stored procedure?
What is the difference between ddl,dml and dcl commands?
What is Cross Join and in which scenario do we use Cross Join?
What is a trace frag?