<?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[CS403 Assignment 2 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/713/cs403-assignment-2-solution-and-discussion">CS403 Assignment 2 Solution and Discussion</a></p>
<pre><code>Assignment No. 02
</code></pre>
<p dir="auto">SEMESTER Spring 2020<br />
CS403- Database Management System	<br />
Total Marks: 20</p>
<p dir="auto">Due Date: 15/06/2020<br />
Instructions<br />
Please read the following instructions carefully before solving &amp; submitting assignment:<br />
It should be clear that your assignment will not get any credit if:<br />
•	The assignment is submitted after due date.<br />
•	The submitted assignment does not open or file corrupt.<br />
•	The assignment is fully or partially copied (from other student or ditto copy from handouts or internet).<br />
•	Student ID is not mentioned in the assignment File or name of file is other than student ID.<br />
•	The assignment is not submitted in .doc or .docx format.<br />
Uploading instructions<br />
Your submission must include:</p>
<p dir="auto">•	Assignment should be in .doc or .docx format.<br />
•	Save your assignment with your ID (e.g. bx020200786.doc).<br />
•	Assignment submission through email is NOT acceptable.<br />
Objectives<br />
The objectives of this assignment are:<br />
•	To be able to understand Logical Database Design<br />
•	To be able to perform different relational algebra operations</p>
<p dir="auto">Note:<br />
Your answer must follow the below given specifications.<br />
•	 Font style: “Times New Roman”<br />
•	 Font color: “Black”<br />
•	 Font size: “12”<br />
•	 Bold for heading only.<br />
•	 Font in Italic is not allowed at all.<br />
•	 No formatting or bullets are allowed to use.<br />
•	Your answer should be precise and to the point, avoid irrelevant detail.</p>
<p dir="auto">Lectures Covered: This assignment covers Lecture # 14 - 17<br />
Deadline<br />
Your assignment must be uploaded/submitted on or before 15/06/2020.</p>
<p dir="auto">Question Statement</p>
<p dir="auto">Our second assignment is the continuation of our first assignment.<br />
In the first assignment one question is related to entity relationship data model.<br />
The entity relationship diagram is given below:</p>
<p dir="auto">Now in second assignment, you are required to perform the following tasks:</p>
<ol>
<li>Convert the above entity relationship diagram into relational data model. You have to convert all the three important components (entities, attributes and relationships between different entities) of the entity relationship diagram into relational data model.</li>
<li>Consider the following tables and perform cross matrix of Shelve, Medicine and Pharmacist<br />
(Shelve X Medicine X Pharmacist)</li>
</ol>
<p dir="auto">Pharmacist<br />
Pharm_id	Name	Address<br />
Ph001	Ahmad	Lahore<br />
Ph002	Tahir	Islamabad<br />
Ph003	Ather	Karachi</p>
<p dir="auto">Medicine<br />
Med_id	Name	Price	Expiry_date<br />
Md001	Panadol	20	22/2/2022<br />
Md002	Disprin	20	22/3/2023<br />
Md003	Brufen	40	22/4/2024</p>
<p dir="auto">Shelve<br />
Shelve_id	Number<br />
Sh001	1<br />
Sh002	2<br />
Sh003	3</p>
<ol start="3">
<li>
<p dir="auto">Find the degree and cardinality of the following tables (given in 2nd question):<br />
Table	Cardinality	Degree<br />
Pharmacist		<br />
Medicine		<br />
Shelve</p>
</li>
<li>
<p dir="auto">Perform the following operations on the mentioned table and write the corresponding output:<br />
σ Address == ‘Islamabad’ (Pharmacist)<br />
∏ Med_id, Name, Expiry_date (σ Price&lt;= 20 (Medicine))</p>
</li>
<li>
<p dir="auto">Consider the following relations/tables and perform the following binary operations and write the output:</p>
</li>
</ol>
<p dir="auto">CreditCard<br />
card_number	expriy_date<br />
Cardnumber001	23/5/2025<br />
Cardnumber002	24/6/2025<br />
Cardnumber003	25/7/2025</p>
<p dir="auto">Shelve<br />
Shelve_id	Number<br />
Sh001	1<br />
Sh002	2<br />
Sh003	3</p>
<ol>
<li>(Shelve) U (CreditCard)</li>
<li>(CreditCard) – (Shelve)<br />
=====================================Ended=======================================</li>
</ol>
<p dir="auto">For any query about the assignment, contact at <a href="mailto:CS403@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">CS403@vu.edu.pk</a></p>
<p dir="auto">GOOD LUCK</p>
<p dir="auto"><a href="/assets/uploads/files/1591909392414-spring-2020_cs403_2.doc">Spring 2020_CS403_2.doc</a></p>
]]></description><link>https://community.secnto.com//topic/1883/cs403-assignment-2-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 19:59:22 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/1883.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Jun 2020 21:01:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS403 Assignment 2 Solution and Discussion on Thu, 10 Jun 2021 15:12:57 GMT]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1623337974434-cs403-assignment-2-solution.docx">Cs403 Assignment 2 Solution.docx</a></p>
]]></description><link>https://community.secnto.com//post/6702</link><guid isPermaLink="true">https://community.secnto.com//post/6702</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Thu, 10 Jun 2021 15:12:57 GMT</pubDate></item><item><title><![CDATA[Reply to CS403 Assignment 2 Solution and Discussion on Wed, 16 Dec 2020 12:32:59 GMT]]></title><description><![CDATA[<p dir="auto">Assignment 2 CS403 file Solution Fall 2020<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/zaasmi" aria-label="Profile: zaasmi">@<bdi>zaasmi</bdi></a><br />
Question: In this technological era manually managing any system is a time-consuming task. A construction company named “Global Construction” wants to computerize their manual system, so that they can easily and efficiently manage their employees, clients, projects and finance. It will be beneficial for both clients and company. Company has different employees who work on different projects. Global Construction database system will store all the information in an organized manner by following the below business rules:<br />
Client can visit the website, view completed projects details and client’s review/feedback about projects, places an order by filling the order form, give review/feedback.<br />
Manager can assign projects to employees, view assigned projects. Manger can also view placed orders, can accept or cancel the order. He can also generate receipt; client will be able to view and download the receipt. Employees will be able to view assigned projects, he can also update status of the project as started, partially completed, or completed.<br />
Required<br />
•	Draw the ER diagram.<br />
<img src="https://i.imgur.com/0oJ7jSh.png" alt="8882cf65-f379-42b4-b1a4-e06b89dd0940-image.png" class=" img-fluid img-markdown" /><br />
•	Draw relationship cardinalities in alphabetical notation.<br />
<img src="https://i.imgur.com/JaxQ5c2.png" alt="6da438e1-3b03-4530-90b6-51c5b8d82b1e-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/6210</link><guid isPermaLink="true">https://community.secnto.com//post/6210</guid><dc:creator><![CDATA[Raza Naqvi]]></dc:creator><pubDate>Wed, 16 Dec 2020 12:32:59 GMT</pubDate></item><item><title><![CDATA[Reply to CS403 Assignment 2 Solution and Discussion on Sun, 14 Jun 2020 08:17:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberian" aria-label="Profile: cyberian">@<bdi>cyberian</bdi></a> said in <a href="/post/5262">CS403 Assignment 2 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">Consider the following relations/tables and perform the following binary operations and write the output:</p>
<p dir="auto">CreditCard<br />
card_number	expriy_date<br />
Cardnumber001	23/5/2025<br />
Cardnumber002	24/6/2025<br />
Cardnumber003	25/7/2025<br />
Shelve<br />
Shelve_id	Number<br />
Sh001	1<br />
Sh002	2<br />
Sh003	3</p>
<p dir="auto">(Shelve) U (CreditCard)<br />
(CreditCard) – (Shelve)</p>
</blockquote>
<p dir="auto"><img src="https://i.imgur.com/Tkk3QJ4.jpg" alt="20200614_131046.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/5338</link><guid isPermaLink="true">https://community.secnto.com//post/5338</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Sun, 14 Jun 2020 08:17:21 GMT</pubDate></item><item><title><![CDATA[Reply to CS403 Assignment 2 Solution and Discussion on Sun, 14 Jun 2020 08:16:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberian" aria-label="Profile: cyberian">@<bdi>cyberian</bdi></a> said in <a href="/post/5262">CS403 Assignment 2 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">Perform the following operations on the mentioned table and write the corresponding output:<br />
σ Address == ‘Islamabad’ (Pharmacist)<br />
∏ Med_id, Name, Expiry_date (σ Price&lt;= 20 (Medicine))</p>
</blockquote>
<p dir="auto"><img src="https://i.imgur.com/rJ1OcO0.jpg" alt="20200614_131011.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/5337</link><guid isPermaLink="true">https://community.secnto.com//post/5337</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Sun, 14 Jun 2020 08:16:38 GMT</pubDate></item><item><title><![CDATA[Reply to CS403 Assignment 2 Solution and Discussion on Sun, 14 Jun 2020 08:15:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberian" aria-label="Profile: cyberian">@<bdi>cyberian</bdi></a> said in <a href="/post/5262">CS403 Assignment 2 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">Find the degree and cardinality of the following tables (given in 2nd question):<br />
Table	Cardinality	Degree<br />
Pharmacist		<br />
Medicine		<br />
Shelve</p>
</blockquote>
<p dir="auto"><img src="https://i.imgur.com/DB82IcA.jpg" alt="20200614_130925.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/5336</link><guid isPermaLink="true">https://community.secnto.com//post/5336</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Sun, 14 Jun 2020 08:15:27 GMT</pubDate></item><item><title><![CDATA[Reply to CS403 Assignment 2 Solution and Discussion on Sun, 14 Jun 2020 08:13:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberian" aria-label="Profile: cyberian">@<bdi>cyberian</bdi></a> said in <a href="/post/5262">CS403 Assignment 2 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">Consider the following tables and perform cross matrix of Shelve, Medicine and Pharmacist<br />
(Shelve X Medicine X Pharmacist)</p>
<p dir="auto">Pharmacist<br />
Pharm_id	Name	Address<br />
Ph001	Ahmad	Lahore<br />
Ph002	Tahir	Islamabad<br />
Ph003	Ather	Karachi<br />
Medicine<br />
Med_id	Name	Price	Expiry_date<br />
Md001	Panadol	20	22/2/2022<br />
Md002	Disprin	20	22/3/2023<br />
Md003	Brufen	40	22/4/2024<br />
Shelve<br />
Shelve_id	Number<br />
Sh001	1<br />
Sh002	2<br />
Sh003	3<br />
Solution<br />
<img src="https://i.imgur.com/BnlBAPk.jpg" alt="20200614_130825.jpg" class=" img-fluid img-markdown" /> f</p>
</blockquote>
]]></description><link>https://community.secnto.com//post/5335</link><guid isPermaLink="true">https://community.secnto.com//post/5335</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Sun, 14 Jun 2020 08:13:55 GMT</pubDate></item><item><title><![CDATA[Reply to CS403 Assignment 2 Solution and Discussion on Sun, 14 Jun 2020 08:00:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberian" aria-label="Profile: cyberian">@<bdi>cyberian</bdi></a> said in <a href="/post/5262">CS403 Assignment 2 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto">Convert the above entity relationship diagram into relational data model. You have to convert all the three important components (entities, attributes and relationships between different entities) of the entity relationship diagram into relational data model.</p>
</blockquote>
<p dir="auto"><img src="https://i.imgur.com/Za2AQBT.gif" alt="SmartSelect_20200614-125825_YouTube.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/5334</link><guid isPermaLink="true">https://community.secnto.com//post/5334</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Sun, 14 Jun 2020 08:00:15 GMT</pubDate></item><item><title><![CDATA[Reply to CS403 Assignment 2 Solution and Discussion on Thu, 11 Jun 2020 21:05:56 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://youtu.be/fiUeRUORWRU" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/fiUeRUORWRU</a></p>
]]></description><link>https://community.secnto.com//post/5263</link><guid isPermaLink="true">https://community.secnto.com//post/5263</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Thu, 11 Jun 2020 21:05:56 GMT</pubDate></item></channel></rss>