Thank you Neelesh,
All my questions are more general questions. Not specific to any Database.
I guess I missed DB forum from the list. Hence I thought this is the best place to post my questions. You can move this to DB forum. I am more concerned about getting answers to my questions.
1. What are different Types of Indexes:
Binary tree indexes are the most common across databases. They use B trees to store the index information. In Oracle there are many other indexes. Clustered indexes, Bitmap Indexes and so on.
Can you please explain what each mean and how and when they are used?
2. What type of index by default is being used for a primary key and unique key?
If you donot mention specific type of index then it's B tree index.
I somewhere read that for primarykey, the default index that is being created in Clustered. and for Unique key it is non-clustered. Please correct me if I am wrong.
These are the definitions of the Clustered and Non-Clustered Indexes.
Clustered: Along with the index, whole data is being stored in the index table. whenever data changes, the record is deleted and new record is inserted which is a performance overhead.
Non-Clustered: Along with the index, reference to the data is being stored in the index table. I also read that this is the default index which is by default created for primary key and reply to my question says it is B tree. I am not sure what is the correct answer. I would appreciate if someone could help me in finding more information on this.
Thank you
Saritha