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

Database Management System (CS403)

Assignment No.3

                                           Total Marks:    10

 

Deadline

Your assignment must be uploaded before or on Thursday 10th Jan 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 BEST Mart 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 same ERD which is provided in the next page (2nd Assignment Solution).
  3. You do not need to apply foreign key constraint at this stage.

 

Task Description:

 

This Assignment is 4th phase of Database Development Process and 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 of each entity.
  6. Write an SQL query which will be used to add a new column ‘CITY’ with an appropriate data type in CUSTOMER 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-27.

 

 

 

 

 

ENTITY RELATIONSHILP DIAGRAM OF BEST MART TRADE MANAGEMENT SYSTEM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

                                                              Sample Screenshot

+ Click Here To Join also Our facebook study Group.

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


See Your Saved Posts Timeline

Views: 4384

.

+ 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?)

Attachments:

Replies to This Discussion

mera sql server open nhi hota 

yar koi assignment hi send kr dy yahan to SQL Server Install tk nai ho raha hai.............. 

64bit pe click kare ge to agey ja k 32 wala b show hoga

parifozu sis  thanx a lot for hlp nd saty blessed nd b happy always 

sql server how to download

Assignment No_3

 

Data Base Management System

Total Marks = 20

Solution:

CREATE TABLE Customer (

CID char (20) primary key,

CName varchar (50),

Address varchar (100),

Phone char (10)

)

 

************************************************** *****************...

 

CREATE TABLE Product (

PID char (10) primary key,

PName varchar (50),

Price real,

Cat_ID char (10) references Category (Cat_ID)

)

 

************************************************** *****************...

 

CREATE TABLE Product_Order (

Order_ID char (10)

PID char (10)

Primary key (Order_ID, PID)

)

CREATE TABLE Invoice (

Inv_ID char (10) primary key,

_Description varchar (100),

Total_Amount real

Order_ID char (10) references _Order (Order_ID)

)

 

**************************************************

 


CREATE TABLE Vendor (

Ven_ID char (10) primary key,

_Name varchar (50),

Address varchar (100)

)

CREATE TABLE Product_Vendor (

PID char (10),

Ven_ID char (10),

Primary key (PID, Ven_ID)

)

 

 

Assignment No_4

Data Base Management System

Total Marks = 20

 

Solution:

CREATE TABLE Customer (

CID char (20) primary key,

CName varchar (50),

Address varchar (100),

Phone char (10)

)

************************************************** *****************...

CREATE TABLE _Order (

Order_ID char (10) primary key,

_Description varchar (100),

CID char (20) references Customer (CID)

)

************************************************** **************************

CREATE TABLE Product (

PID char (10) primary key,

PName varchar (50),

Price real,

Cat_ID char (10) references Category (Cat_ID)

)

************************************************** *****************...

CREATE TABLE Product_Order (

Order_ID char (10)

PID char (10)

Primary key (Order_ID, PID)

)

CREATE TABLE Invoice (

Inv_ID char (10) primary key,

_Description varchar (100),

Total_Amount real

Order_ID char (10) references _Order (Order_ID)

)

************************************************** **************************

CREATE TABLE Category (

Cat_ID char (10) primary key,

CatName varchar (50)

)



************************************************** **************************

CREATE TABLE Vendor (

Ven_ID char (10) primary key,

_Name varchar (50),

Address varchar (100)

)

CREATE TABLE Product_Vendor (

PID char (10),

Ven_ID char (10),

Primary key (PID, Ven_ID)

)

 

 

Helping tips :

 

SQL SERVER. It is used to design systems physically either through Query Analyzer OR Enterprise Manager.

Dear make your new database where you've write you VUID after this

press ok button you've to click it then anywhere you'll see something is executing when it will executed it will show you complete then you've to click new query and then:

  • you've to write use bc1234567 whatever is your VUID and semicolom and then again you've to press F5 or exclamatory sign then it will execute.
  • or
  • you've to write CREATE DATABASE and your VUID; press f5 or exclamatory sign then
  • you've to write use bc1234567 whatever is your VUID and semicolom and then again you've to press F5 or exclamatory sign then it will execute.

STEP1 : CREATE DATABASE bc12345678;
STEP2 :press F5 key for executio
STEP3 : write and USE ID
STEP4:again press F5 for execution,

STEP5 :create your all tables one by one then execute each line one by one

Where to find sql server :

 

LMS se install ker len SQL 2000 n latest dono hi available hen udher 

RSS

Today Top Members 

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

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