Docsity

Relational Database - Introduction to Databases - Exam Paper, Exams of Computer Science

Toggle sidebar
bg1
Page 1 of 4
CORK INSTITUTE OF TECHNOLOGY
INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ
Autumn Examinations 2012
Module Title: Introduction to Databases (CA)
Module Code:
COMP6016
School:
Science & Computing
Programme Title(s):
Higher Certificate in Computing in Information Technology Support
Bachelor of Science (Honours) in IT Management
Programmes Code(s):
KITSU_6_Y2
KITMN_8_Y2
External Examiner(s):
Ms. Ann Meagher
Internal Examiner(s):
Ms. Linda O’Sullivan
Instructions:
Answer all 4 questions. All questions carry equal marks.
Duration:
2 Hours
Sitting:
Autumn 2012
Requirements for this examination:
Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the
correct examination. If in doubt please contact an Invigilator.
pf3
pf4

Partial preview of the text

Download Relational Database - Introduction to Databases - Exam Paper and more Exams Computer Science in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Autumn Examinations 2012

Module Title: Introduction to Databases (CA)

Module Code: COMP

School: Science & Computing

Programme Title(s): Higher Certificate in Computing in Information Technology Support

Bachelor of Science (Honours) in IT Management

Programmes Code(s): KITSU_6_Y

KITMN_8_Y

External Examiner(s): Ms. Ann Meagher

Internal Examiner(s): Ms. Linda O’Sullivan

Instructions: Answer all 4 questions. All questions carry equal marks.

Duration: 2 Hours

Sitting: Autumn 2012

Requirements for this examination:

Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination. If in doubt please contact an Invigilator.

1.(a) Contrast each of the following terms: (i) Data; Information (ii) Database; Database Management System (iii) Database Application; Database System (9 Marks) (b) Discuss the following limitations of the file-based approach to data management. (i) Program-Data Dependence (ii) Duplication of Data (6 Marks) (c) Discuss the following disadvantages of the database approach to data management: (i) Installation and Management Cost and Complexity (ii) Conversion Costs

(6 Marks) (d) List four typical facilities provided by a database management system. (4 marks)

  1. The following is a relational database schema for a raw materials management system: Raw_Material (Raw_Material_ID, Raw_Material_Name, Material, Standard_Price) Vendor (Vendor_ID, Vendor_Name, Vendor_Address) Supplies (Vendor_ID, Raw_Material_ID, Supply_Unit_Price) Product (Product_ID, Product_Description, Product_Finish, Standard_Price, Product_On_Hand) Uses (Product_ID, Raw_Material_ID, Goes_Into_Quantity) where: Raw_Material contains details of the raw materials used. Vendor contains details of the vendors from whom raw materials are purchased. Supplies contains details of which vendors supply which raw materials. Products contains details of the products produced. Uses contains details of which raw materials are used in the manufacture of different products. (a) Explain the following relational data model terms: (i) Relation (ii) Tuple (iii)Attribute (iv) Degree (v) Cardinality Use the above relational database schema to illustrate your answer. (5 Marks) (b) Using the above relational database schema - for each relation list:  a superkey – one is sufficient  all candidate keys  the primary key  all composite keys, if applicable  all alternate keys, if applicable  all foreign keys, if applicable (12 Marks)
  1. Based on the relational database schema given in question 2. Write SQL queries for the requests listed (a) – (e). (a) List full details of all raw materials made of copper or steel whose standard price is between €0.05 and €0.10 – arrange the output in descending order of standard price and within standard price in alphabetical order of name. (5 Marks) (b) List vendor ID number of all vendors that supply more than one raw material. (5 Marks) (c) List full details of all products which are made from raw materials that are supplied by a vendor called Bolt from the Blue. (5 Marks) (d) For every raw material supplied, list full details of the raw material together with the name of the vendor who supplies the raw material. (5 Marks) (e) For each vendor that supplies a raw material, list the vendor’s ID number, name and the number of raw materials they supply together with the cost of the most expensive raw materials they supply– arrange the output in descending order of the number of raw materials supplied. (5 marks)