<?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[CS441 Assignment 3 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Assignment No. 03 (Graded)<br />
SEMESTER Fall 2019<br />
CS441- Big Data Concepts	Total Marks: 20<br />
Due Date: 20-01-2020<br />
Instructions<br />
Please read the following instructions carefully before submitting the assignment:<br />
It should be clear that your assignment will not get any credit if:<br />
o	Assignment is submitted after the due date.<br />
o	Submitted assignment does not open or file is corrupt.<br />
o	Assignment is copied (From internet/students).<br />
Objectives:<br />
To enable students to write and execute different HivQL queries like:<br />
•	Create database<br />
•	Create table<br />
•	Load data in a table<br />
•	Select query</p>
<p dir="auto">Lectures Covered: This assignment covers Topics of Week-10.<br />
Assignment Submission Instructions<br />
You have to submit only .doc file on the Assignments interface of CS441 on VULMS.  An assignment submitted in any other format will not be accepted and will be graded zero marks.<br />
You can visit the following link in order to write the HivQL queries with the help of online editor:<br />
<a href="https://demo.gethue.com/hue/accounts/login?next=/hue" target="_blank" rel="noopener noreferrer nofollow ugc">https://demo.gethue.com/hue/accounts/login?next=/hue</a><br />
Kindly provide user name and password as demo  in order to access the editor and to write and run different HIVQL queries.<br />
For any query about the assignment, contact at <a href="mailto:CS441@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">CS441@vu.edu.pk</a><br />
GOOD LUCK<br />
Marks: 20<br />
Problem Statement:<br />
You are required to write HiveQL queries for the following tasks:</p>
<ol>
<li>Create a database named as “VU”.</li>
<li>Create the following table named as “Student” in the “VU” database:</li>
</ol>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Field Name</th>
<th>Data type</th>
</tr>
</thead>
<tbody>
<tr>
<td>Std-ID</td>
<td>int</td>
</tr>
<tr>
<td>Std-Name</td>
<td>String</td>
</tr>
<tr>
<td>Std-Fname</td>
<td>String</td>
</tr>
<tr>
<td>CGPA</td>
<td>Float</td>
</tr>
<tr>
<td>Cell No</td>
<td>String</td>
</tr>
<tr>
<td>Study Program</td>
<td>String</td>
</tr>
</tbody>
</table>
<ol start="3">
<li>Write a Hive query that adds the following rows in the “Student” table. Consider that the following data is stored in a text file named as “Std-Data.txt” in /home/user directory.</li>
</ol>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>101</th>
<th>Kamran</th>
<th>Usman</th>
<th>3.0</th>
<th>0300-0000000</th>
<th>BCS</th>
</tr>
</thead>
<tbody>
<tr>
<td>102</td>
<td>Arshad</td>
<td>Anwaar</td>
<td>2.75</td>
<td>0321-1111111</td>
<td>MCS</td>
</tr>
<tr>
<td>103</td>
<td>Waqar</td>
<td>Jehanzeb</td>
<td>3.5</td>
<td>0345-2222222</td>
<td>MBA</td>
</tr>
<tr>
<td>104</td>
<td>Saad</td>
<td>Ameen</td>
<td>2.25</td>
<td>0312-3333333</td>
<td>MCS</td>
</tr>
<tr>
<td>105</td>
<td>Pervez</td>
<td>Khalid</td>
<td>3.75</td>
<td>0333-4444444</td>
<td>BCS</td>
</tr>
</tbody>
</table>
<ol start="4">
<li>Write a Hive query that display all the information of those students whose CGPA is equal or greater than 3.0.</li>
<li>Write a Hive query that find the total number of students in each study program.</li>
</ol>
]]></description><link>https://community.secnto.com//topic/1110/cs441-assignment-3-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 20:00:53 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/1110.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Jan 2020 12:40:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS441 Assignment 3 Solution and Discussion on Tue, 21 Jan 2020 12:41:40 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://youtu.be/VSHrNQftyHQ" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/VSHrNQftyHQ</a></p>
]]></description><link>https://community.secnto.com//post/2931</link><guid isPermaLink="true">https://community.secnto.com//post/2931</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 21 Jan 2020 12:41:40 GMT</pubDate></item></channel></rss>