<?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[CS405 Assignment 2 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/1120/cs405-assignment-2-solution-and-discussion">CS405 Assignment 2 Solution and Discussion</a></p>
<pre><code>Assignment No. 02
</code></pre>
<p dir="auto">SEMESTER Spring 2020<br />
CS405- Database Programming Using Oracle 11g	Total Marks: 20<br />
Due Date: 19-06-2020</p>
<p dir="auto">Objective:<br />
The assignment has been designed to enhance your knowledge about how to use / do:<br />
•	Implementing Data Manipulation Language (DML) in PL/SQL<br />
•	Implementing Structured Query Language (SQL) in PL/SQL<br />
•	Implementation of CASE Statement<br />
Instructions:<br />
Please read the note section and following instructions carefully before solving &amp; submitting assignment:</p>
<ol>
<li>The assignment will not be accepted after due date.</li>
<li>Assignment will not be accepted via email.</li>
<li>Zero marks will be awarded to the assignment that does not open or the file is corrupt.</li>
<li>The assignment file must be in MS word (.doc) file format; Assignment will not be accepted in any other format.</li>
<li>Zero marks will be awarded to the assignment if copied (from other student or copied from handouts or internet).</li>
</ol>
<p dir="auto">For any query about the assignment, contact at <a href="mailto:cs405@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">cs405@vu.edu.pk</a></p>
<pre><code>Marks: 20  
</code></pre>
<p dir="auto">Question 1:<br />
Create / Consider the following tables: [Screenshot = 2.5 Marks, Code = 7.5 Marks]<br />
SALESRESP (empl_num, name, age, designation, city, quota, joining_date, sal, commision)<br />
OFFICES (office_id, city, region, mgr, target, sales)<br />
You are required to:</p>
<p dir="auto">Write a PL/SQL block to increase salary by 10% as healthcare bonus of all those sales persons who are working in the organization for more than 8 years and their salary is less than 50,000.</p>
<p dir="auto">Question 2:<br />
Consider the following table:                        [Screenshot = 2.5 Marks, Code = 7.5 Marks]<br />
Student ID	FirstName	Age	City<br />
1	Asad	14	Karachi<br />
2	Rehmat	21	Lahore<br />
3	Usman	13	Multan<br />
4	Ali	25	Faisalabad<br />
5	Atif	20	Islamabad<br />
6	Babar	22	Karachi<br />
7	Noman	24	Multan<br />
8	Aakif	17	Lahore<br />
9	Faiq	19	Lahore<br />
10	Majid	15	Sargodha</p>
<p dir="auto">Implement CASE statement to find the following resulting table: (You have to write SQL using CASE statement)</p>
<p dir="auto">Student ID	City	Comments<br />
1	Karachi	Age is less than 15<br />
2	Lahore	Age is greater than 20<br />
3	Multan	Age is less than 15<br />
4	Faisalabad	Age is greater than 20<br />
5	Islamabad	Age is equal to 20<br />
6	Karachi	Age is greater than 20<br />
7	Multan	Age is greater than 20<br />
8	Lahore	Age is greater than 15<br />
9	Lahore	Age is greater than 20<br />
10	Sargodha	Age is equal 20</p>
<p dir="auto">Lectures Covered: This assignment covers WEEK#  4-6<br />
Note: You are required to paste code and screenshots of your programs in a Word File,  and submit that file on or before June 19, 2020<br />
GOOD LUCK</p>
]]></description><link>https://community.secnto.com//topic/1957/cs405-assignment-2-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 19:05:48 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/1957.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Jun 2020 07:51:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS405 Assignment 2 Solution and Discussion on Fri, 19 Jun 2020 07:51:40 GMT]]></title><description><![CDATA[<p dir="auto">Please share idea</p>
]]></description><link>https://community.secnto.com//post/5492</link><guid isPermaLink="true">https://community.secnto.com//post/5492</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Fri, 19 Jun 2020 07:51:40 GMT</pubDate></item></channel></rss>