I have a table with 1 million records out of which 10,000 records are of unique records, then if I will implement index, then which type of index shall I use and why shall I use?

Answer Posted / thanjairajan@gmail.com

You Can use Bitmap Index. Because while no.of unique record is small than no.of total record, we can use bitmap index. i.e we can use bitmap index in low cardinality column.

For example a table contain name,address,sex column. in sex column may be two values. i.e male and female. so this distinct values small but no.of total records is high.

So in this situation we can use bitmap index.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does sql profiler work?

754


What does select top 1 do in sql?

730


How do I count rows in sql?

741


How to use boolean type in select statement?

749


What are field types?

727






What are different types of indexes?

706


What is the advantage of nosql?

735


What is the mutating table and constraining table?

738


Explain the advantages and disadvantages of stored procedure?

853


Why stored procedure is faster than query?

681


how to enter characters as hex numbers? : Sql dba

748


What is a join query?

722


What is a common use of group by in sql?

791


How do you update f as m and m as f from the below table testtable?

1473


what are all the different normalizations? : Sql dba

686