An existence bitmap has a bit for each record position, with the bit set to if the record exists, and if there is no record at that position (for example, if the record were deleted). Show how to compute the existence bitmap from other bitmaps. Make sure that your technique works even in the presence of null values by using a bitmap for the value null.


Let be a relation. Suppose there is a bitmap index on the attribute . Suppose the attribute can have 2 distinct values and can also be null. Thus the bitmap index on the attribute is going to have 3 bitmaps, namely: .

Thus, the existence bitmap can be computed as follows:-

where denotes the bitwise or operator.