<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CS614 Assignment 2 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Assignment No. 02<br />
Semester: Fall 2019<br />
CS614: Data Warehousing	Total Marks: 10</p>
<p dir="auto">Due Date: November 28, 2019</p>
<p dir="auto">Objective:<br />
The objective of this assignment is to enhance the learning capabilities of the students about:<br />
•	De-Normalization<br />
•	Pre-Joining<br />
•	Storage Issues of Pre-joining</p>
<p dir="auto">Instructions:<br />
Please read the following instructions carefully before submitting assignment:<br />
You need to use MS word document to prepare and submit the assignment on VU-LMS.<br />
It should be clear that your assignment will not get any credit if:</p>
<p dir="auto">	The assignment is submitted after due date.<br />
	The assignment is not in the required format (.doc or docx)<br />
	The submitted assignment does not open or file is corrupt.<br />
	Assignment is copied (partial or full) from any source (websites, forums, students, etc)</p>
<p dir="auto">Assignment</p>
<p dir="auto">Question</p>
<p dir="auto">“Kare Pharma” is an online Medical store currently acquiring a large number of customers. To manage some performance issues this online Medical store requires to de-normalize its database using pre-joining technique for Prescription and Prescription details tables.</p>
<p dir="auto">Normalized table structures are given below:</p>
<p dir="auto">Prescription Table</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Prescription_ID</th>
<th>Patient_Name</th>
<th>Doctor_Name</th>
<th>Prescription_Date</th>
</tr>
</thead>
</table>
<table class="table table-bordered table-striped">
<tbody>
<tr>
<td colspan="3">….</td>
<td>…</td>
</tr>
</tbody>
</table>
<p dir="auto">Prescription details Table</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Transaction_ID</th>
<th>Prescription_ID</th>
<th>Med_ID</th>
<th>Med_Quantity</th>
<th>Sale_Amount</th>
</tr>
</thead>
</table>
<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>….</td>
<td>…</td>
<td>…</td>
<td>….</td>
<td>…</td>
</tr>
</tbody>
</table>
<p dir="auto">Table Information</p>
<p dir="auto">•	Assume 1:11 record count ratio between Prescription table as master table and Prescription details table for online Medical store’s database.<br />
•	Assume 10 million records in Prescription Table.<br />
•	Assume 10 bytes reserved for Prescription_ID in memory.<br />
•	Assume 40 bytes header for master table and 70 bytes header for details table.</p>
<p dir="auto">Task</p>
<p dir="auto">You are required to perform the following tasks:</p>
<ol>
<li>Calculate the total space reserved in memory using normalization</li>
<li>Calculate the total space reserved in memory after de-normalization using pre-joining technique</li>
</ol>
<p dir="auto">Best of Luck!</p>
]]></description><link>https://community.secnto.com//topic/682/cs614-assignment-2-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 19:53:23 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/682.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Nov 2019 08:02:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS614 Assignment 2 Solution and Discussion on Sun, 26 Jan 2020 16:36:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zareen" aria-label="Profile: zareen">@<bdi>zareen</bdi></a> said in <a href="/post/1951">CS614 Assignment 2 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">Calculate the total space reserved in memory using normalization</p>
</blockquote>
<blockquote>
<p dir="auto">Q. 1. Calculate the total space reserved in memory using normalization1. Calculate the total space reserved in memory using normalization</p>
</blockquote>
<p dir="auto"><strong>Q. 1 Solution:</strong><br />
Total space used<br />
= 10 (Million records) x 40 (Bytes header) + 110 (Million records) x 70 (Bytes header)<br />
= (10000000<em>40) + (110000000</em>70)<br />
=8,100,000,000<br />
= 8.1 GB</p>
<blockquote>
<p dir="auto">Q. 2. Calculate the total space reserved in memory after de-normalization using pre-joining technique</p>
</blockquote>
<p dir="auto"><strong>Q. 2 Solution:</strong><br />
Total space used<br />
= (70 + 40 – 10) (Bytes header) x 110 (Million records)<br />
=100*110000000<br />
=11,000,000,000<br />
= 11 GB</p>
]]></description><link>https://community.secnto.com//post/1952</link><guid isPermaLink="true">https://community.secnto.com//post/1952</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Sun, 26 Jan 2020 16:36:41 GMT</pubDate></item></channel></rss>