Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment No.4 (Graded) Database Management System (CS403) Due Date Thursday 6th February 2014.

Database Management System (CS403)

Assignment No.4 (Graded)

                                    Total Marks:    20



Your assignment must be uploaded before or on Thursday 6th February 2014.


Rules for Marking

It should be clear that your assignment will not get any credit if:

  1. The assignment is submitted after due date.
  2. The assignment is copied.
  3. The assignment is not submitted in .doc file.



The objective of this assignment is:

Giving the idea of the most commonly used RDBMS for designing physical database systems i.e. SQL SERVER. It is used to design systems physically either through Query Analyzer OR Enterprise Manager.


Important things to consider before doing this assignment: 


  1. This Assignment is the continuation of third Assignment. Taking in consideration the same case study of Education and Requirement Testing (ERTS), conceptual database has been provided in the form of an ERD.
  2. Now you have to complete your next phase of the Database Development Process which is physical database design. You will create it by utilizing the ERD provided in the next page.


Task Description:


In this assignment you will focus only on the tasks given below:


  1. Open the Query Analyzer/SQL server management studio, and create a new database with your student id, like a sample screenshot provided on the last page of this assignment file.
  2. You are required to transform all entities given in the below ER diagram into tables.
  3. You have to transform all entity attributes into columns.
  4. Define appropriate data types of each attribute.
  5. Apply entity integrity constraint by defining primary key, and foreign key of each entity.
  6. Insert 5 rows in each table.
  7. Write an SQL query to apply left outer join between table APPLICANT and CELL_NUMBER and show the result.
  8. Take screenshots of your work, and paste them in your solution file (.DOC file).



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





Views: 20170


Replies to This Discussion

saroop fatima ya sql studio hu ga ya sql query analyzer eik he cheeez hy lms py studo parha hua hy 

remove the error 


only place small brace (  after create table applicant


create table applicant k bad ( lgaao baaki thek hai

Msg 102, Level 15, State 1, Line 2
Incorrect syntax near 'varchar' yeh error aa rhi hi

create table APPLICANT
(Applicant _ID varchar(10),
Applicant _Name nvarchar(25),
Father_Name nvarchar(25),
Gender nvarchar(15),
Emp _DOB datetime,
Qualification nvarchar(45),
Application_ID varchar(15),
Primary Key (Applicant _ID,Applicant_Name))

Msg 102, Level 15, State 1, Line 2
Incorrect syntax near 'varchar'.

correct the error

query dekhao

U gave the space btwn

(Applicant _ID varchar(10),
Applicant _Name nvarchar(25),

Emp _DOB datetime,

Primary Key (Applicant _ID,Applicant_Name))

write as

(Applicant_ID varchar(10),
Applicant_Name nvarchar(25),

Emp_DOB datetime,

also put the semicolon in the end of it

Primary Key (Applicant_ID,Applicant_Name));

insert into cell_Number
Select * from cell_Number

remove this error

Msg 207, Level 16, State 1, Line 1
Invalid column name 'Applicant_ID'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'Applicant_Name'.

plzzzz gve me software of SQl query Analyzer for window 7 plzzzzzzz

 saroop fatima LMS sy SQL server 2005 ka four parts download ker lien aur oun mien sy eik part mien sql aur sql studio ker lien...... Studio aur Analyser donu eik he cheez hien donu mien sy koi bhi


© 2022   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service