We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

CS403-Database Management System Assignment No.5 Solution and Discussion Fall Spring 2013Due Date 9th July 2013

Database Management System (CS403)

Assignment No.5

                                           Total Marks:    20

 

Deadline

Your assignment must be uploaded before or on Tuesday 9th July 2013.

 

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.

 

Objectives

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 Second Assignment. Taking in consideration the same case study of Security Information System, a 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.
  3. Apply foreign key constraint at this stage.

 

Task Description:

 

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

 

  1. Open the Query Analyzer, and then create a new database by your id, like a sample screenshot provided on the last page of this file. Then create all the tables in this database by using it.
  2. You are required to transform all entities into tables by CREARE TABLE.
  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. Write an SQL query to insert one row to each of the table.
  7. 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 24-33.

 

 

 

ENTITY RELATIONSHILP DIAGRAM OF Security Information System

 

 

                                                              Sample Screenshot

GOOD LUCK

Spring%202013_CS403_5.doc

                

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 14008

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

lol after this mostly ppls do that .. my vision b/w sorry but i will correct it if you show your efforts i think if you have write the query then write them step by step and mention one line it it that sir i am unable install sql your just add snap shot of error may be sir consider also i have check that on youtube there are many tutorials on deployment of  sql  over win7 32/64 bit

little cheif help me plz

Create database your id;

 

Use your id;

 

 

CREATE TABLE Department

(

Dept_ID int NOT NULL PRIMARY KEY,

Dept_name (its data types),

);

 

 

CREATE TABLE Video

(

Video_ID int NOT NULL PRIMARY KEY,

Video_format its data types,

video_size (its data types),

 

);

 

 

CREATE TABLE Image

(

Img_ID int NOT NULL PRIMARY KEY,

Img_name (its data types),

image_size (its data types),

 

);

 

 

 

CREATE TABLE Employee

(

Emp_id int NOT NULL PRIMARY KEY,

emp_name (its data types),

emp_desig (its data types),

joining_date (its data types),

emp_salary (its data types),

emp_dob (its data types),

Gender (its data types),

emp_address (its data types),

Contact_no (its data types),

Dept_ID (its data types),

 

 

CONSTRAINT fk_PerEmployee FOREIGN KEY (Dept_ID)

REFERENCES Department(Dept_ID)

);

 

 

 

CREATE TABLE Camera

(

cam_id int NOT NULL PRIMARY KEY,

Serial_no (its data types),

Model (its data types),

files_name (its data types),

Img_ID (its data types),

Video_ID (its data types),

 

 

CONSTRAINT fk_PerImg FOREIGN KEY (Img_ID)

REFERENCES Image(Img_ID),

CONSTRAINT fk_PerVdo FOREIGN KEY (Video_ID)

REFERENCES Video(Video_ID),

);

 

complete idea just enter data type and then use insert quries

t

maine add kia hia gender ko  ye error aa rahe hai

Msg 2627, Level 14, State 1, Line 1
Violation of PRIMARY KEY constraint 'PK__Department__1273C1CD'. Cannot insert duplicate key in object 'dbo.DEPARTMENT'.
The statement has been terminated.
Msg 2627, Level 14, State 1, Line 3
Violation of PRIMARY KEY constraint 'PK__Employee__2B3F6F97'. Cannot insert duplicate key in object 'dbo.EMPLOYEE'.
The statement has been terminated.

ROW KAISE DEL KARTE HIA

delete from department

delete from image

delete from video

delete from employee

delete from camera

use in this sequence and then insert it according to this FK will not updated unless its record are in their table

time out dear fellowzzzzzzzzzz

finally ho he gayee meri assignment thnx alot :) aap he ki waja se theek hogya tha :D p

RSS

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

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

.