Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to use user defined functions in expressions?

1092


How the authentication mode can be changed?

1132


How to list all objects in a given schema?

1059


What is the use of sign function?

1124


Explain what is scheduled job and how to create it?

957


How does Report Builder support Analysis Services cubes?

153


How do I install only the client tools of sql server 2000?

1067


Explain the microsoft sql server delete command?

1020


Explain indexes disadvantages?

1085


What are the types of sql server?

1052


What is difference between oltp and olap?

1049


When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

1101


What is clustered vs nonclustered index?

947


What is sub query and its properties?

974


How to create stored procedures with parameters in ms sql server?

1079