Table Information
Assume 1:11 record count ratio between Prescription table as master table and
Prescription details table for online Medical store’s database.
Assume 10 million records in Prescription Table.
Assume 10 bytes reserved for Prescription_ID in memory.
Assume 40 bytes header for master table and 70 bytes header for details table.
1. Calculate the total space reserved in memory using normalization?
Records in Prescription Table= 10 million
Records in Prescription Table detail= 11 * 10 million=110 million
total space reserved in memory using normalization= (byte header for master table * Records in
Prescription Table) + ( bytes header for details table * Records in P.T. Detail)
Total space reserved in memory using normalization= (40 * 10 000000)+(70 * 110 000000)
Total space reserved in memory using normalization= 400000000 + 7700000000
Total space reserved in memory using normalization= 8100 000 000 bytes =8.1GB
2. Calculate the total space reserved in memory after de-normalization using pre-
joining technique
total space reserved in memory after de-normalization= (bytes header for details table + bytes
header for master table - bytes reserved for Prescription_ID in memory) * Records in P.T. Detail
total space reserved in memory after de-normalization=(70+40-10)*110 000000
total space reserved in memory=100*110 000000=11 000 000 000 bytes= 11 GB