Home /University of Sarghoda /Database System

Database System M.Sc. 3 Semester/Term University of Sarghoda 2019

Database System M.Sc. 3 Semester/Term University of Sarghoda 2019 — page 1

Discussion

Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.

Your email is only used to send you replies and occasional Ustadni updates. It is never shown publicly.

Log in to post under your name

No questions yet — be the first to ask.

Need Paper? See all →

Need a paper or stuck on a question? Ask here — students reply and you get an email.

Ask about a paper
  • Danish Yasin· 3 hours ago

    ICT 1st sister paper

    0 replies Reply →
  • Bushra· 1 day ago

    BS Islamic Studies, 5th semester, ISL-511 Translation of Holy Quran (3) — Government College University Faisalabad (GCU…

    0 replies Reply →
  • Khadija· 3 days ago

    Civics course code GCCE101

    1 reply Reply →
  • Tasddaq hussain· 3 days ago

    BS 4the semester2025 civics and community engagement past paper According UOs

    0 replies Reply →
  • Humna Khan· 4 days ago

    Bs public administration 1st semester mid term past papers

    0 replies Reply →
Ad

Paper text

University of Sargodha

M.Sc. 3rd Term Examination 2019

Subject: I.T Paper: Database Systems (CMP-3440)

Time Allowed: 2:30 Hours

Maximum Marks: 80

Note: Objective part is compulsory. Attempt any three questions from

subjective part.

Objective Part (Compulsory)

Q.1 Write short answers of the following in 2-3 lines each on your

answer sheet.

(16x2)

i. List any two disadvantages of the file processing systems.

ii. What is the disadvantage of normalization?

iii. Draw an example of associative entity type.

iv. What is derived attribute? Give an example.

v. Name any two components of database environment.

vi. What is program data dependence?

vii. Define total specialization rule.

viii. What is self join?

ix. Differentiate between the logical and physical schema.

x. Define partial functional dependency.

xi. Draw an example of unary one-to-many relationship.

xii. Differentiate between a table and view.

xiii. List any two negative consequences of having anomalies.

xiv. What is referential integrity constraint?

xv. Differentiate between table and relation.

xvi. Write a SQL command to drop a table from a database schema.

Subjective Part

(3x16)

Q.2 Write a note on the advantages of database approach.

Q.3 Given the following table, convert the PRESCRIPTION data into relation

by assigning it name and primary key. Identify all functional

dependencies, then decompose the relation into a set of relations that are

in 3NF.

PrescriptionID Date Medicine Dosage CustomerName CustomerPhone CustomerEmail

P1001 10-07-2018 Amoxil 500 mg Mary Jacob 0705242233 Jacob@gmail.com

P1003 15-07-2018 Aspirin 400 mg Rosalie Jackson 3756413455 Jackson@gmail.com

P1004 15-07-2018 Amoxil 1000 mg Richard May 3756412334 May@gmail.com

P1007 18-07-2018 Calter 250 mg George Smith 3756414366 Smith@yahoo.com

P1008 18-07-2018 Aspirin 600 mg Alan Adams 3756413455 Adams@gmail.com

Q.4 Draw an EER diagram for the following problem. Indicate all attributes in

proper notation, relationship with cardinalities, and subtype

discriminators. A non-profit organization depends on different types of

persons for its successful operation. The organization is interested in the

following attributes for all of these persons: SSN, Name, Address, City,

State, Zip, and Telephone. Three types of persons are of greatest interest:

employees, volunteers, and donors. Employees have only a Date Hired

attribute, and volunteers have only a Skill attribute. Donors have only a

relationship (named Donates) with an Item entity type. A donor must have

donated one or more items, and an item may have no donors, or one or

more donors. There are persons other than employees, volunteers, and

donors who are of interest to the organization so that a person need not

belong to any of these three groups. On the other hand, at a given time a

person may belong to two or more of these groups (e.g., employee and

donor).

Q.5 Describe the purpose of indexes. Discuss the rules for selecting attributes

to be indexed.

Q.6 Write SQL queries considering the following schema: