January 2012
Intermediate to advanced
542 pages
11h 28m
English
In the last recipe, we looked at the use of B-tree indexes in depth.
In the Oracle database, there is also another type of index available, the bitmap index, presented in this recipe.
The following steps will demonstrate bitmap indexes:
CONNECT sh@TESTDB/sh
CREATE TABLE MYCUSTOMERS AS SELECT * FROM CUSTOMERS;
SET AUTOT TRACE EXP STAT SELECT COUNT(*) FROM MYCUSTOMERS WHERE CUST_GENDER = ‹F›; SELECT COUNT(*) FROM MYCUSTOMERS WHERE CUST_MARITAL_STATUS = ‹single›; SELECT COUNT(*) FROM MYCUSTOMERS WHERE CUST_MARITAL_STATUS = ‹married› AND CUST_GENDER = ‹F›; SELECT COUNT(*) ...
Read now
Unlock full access