Sunday, 20 July 2014

Database Management System CS403 Assignment No.4 Solution Soon July 21, 2014

Database Management System (CS403)
Assignment No.4 (Graded)
Total Marks: 15
Important things to consider before doing this assignment: 

  1. This Assignment is the continuation of third Assignment. Taking in consideration the same case study and same database of wireless adhoc network.
  2. Now you have to complete your next phase of the Database Development Process which is physical database design.
    1. You have to insert rows in the table and write an SQL query in Query Analyzer.

Task Description:

In this assignment you will focus only on the tasks given below:
Node_Info
Node_idNode_roleProtocol_id
01Source11
02Source12
03Destination13
04Destination14








Protocol_Info

Protocol_idProtocol_nameProtocol_version
11 AODV2.1
12DSR1.1
13DSDV1.5
14AODV1.1
15DSR1.2

  1. Open the Query Analyzer/SQL server management studio, and perform the below tasks in already created database (Assignment#03). If you did not create a database for assignment#03 then creates a database along with all tables and entity integrity constraints as mentioned in assignment#03 file.

  1. Insert above rows in each table i.e. Node_info and Protocol_info.

After inserting rows, Perform the below tasks:

  1. Write an SQL query to apply Right outer join between table Node_Info and Protocol_Info and show the result.
  2. Write an SQL query to apply inner join between table Node_Info and Protocol_Info and show the result.
  3. Write an SQL query to apply subquery (nested query) between table Node_Info and Protocol_Info , which shows the following results;

Protocol_idProtocol_nameProtocol_version
11 AODV2.1




  1. Take screenshots of your work, and paste them in your solution file (.DOC file).

Hint: You can use aggregate function i.e. max function to perform the 5th task.

Note: Use all concepts and techniques you have studied so far discussed particularly in lectures 28-32

Read more at http://vustudents.ning.com/group/cs403databasemanagementsystems/forum/topics/database-management-system-cs403-assignment-no-4-graded-deadline?xg_source=activity#Lt2ZMuD8QTaM4P2u.99