BSc (Hons) Computer Science with Network Security. Examinations for / Semester1

Size: px
Start display at page:

Download "BSc (Hons) Computer Science with Network Security. Examinations for / Semester1"

Transcription

1 BSc (Hons) Computer Science with Network Security Cohort: BCNS/14/FT Examinations for / Semester1 MODULE: DATABASE DESIGN MODULE CODE: DBT 1111C Duration: 2 Hours 30 Mins Instructions to Candidates: 1. Answer ANY FOUR questions. 2. Questions may be answered in any order but your answers must show the question number clearly. 3. Always start a new question on a fresh page. 4. All questions carry equal marks. 5. Total marks Appendix included [3 pages] This Exam Paper contains 5 questions and 11 pages. Page 1 of 11

2 ANSWER ANY FOUR QUESTIONS QUESTION 1: (25 MARKS) (a) Explain the term query and list any four functions performed by a query. [1 + 4 marks] (b) List and briefly describe five potential benefits of the database approach compared to conventional file systems. [5 X 2 marks] (c) Differentiate between Database System and Database Management System. Support your answer with an appropriate example of each.. [4 marks] (d) Explain the terms entity integrity and referential integrity and state how they should be supported in relational database management systems. Support your answer with appropriate example [6 marks] QUESTION 2: (25 MARKS) The UTM Flower and Plant Nursery (UFPN) has been created by the UTM Student Union in order to help generate some additional funds to finance some of their activities. The UFPN sells seeds and plants of flowers and vegetables to the public in general as well as insecticides/pesticides and fertilizers (both chemical fertilizers and manure). All these items are recorded under one generic Page 2 of 11

3 component i.e. Product but with their respective details as specific items. Usually the nursery produces all of its seeds/plants but in periods of high demand additional seeds/plants are bought from local planters. The UFPN wishes to computerize its database system to better monitor its transaction and stock. The customers can be any of these: Public, Staff, or Student (Including Student Union members). The system would hold data about the following: CUSTOMER: Customer Number (C_NO), Forename (CFName), Lastname (CLName), Street, City, Phone1 (Home), Phone2 (Mobile), , National ID Number (NIC), Credit Card Number (CCN), Type (Public, Staff, Student). For the public, the following details are also recorded: Employed/Unemployed/Self Employed and Employer address. For UTM staff, Staff Number (S_NO), Department (Dept) and School are recorded. For the student, Student Number (St_NO), Cohort and Programme as well as whether they are Student Union member or not, are recorded. All these details will be later used to generate statistics about the sales and revenues. At the end of each academic year, during the End of Year Party, student who sells/buy more products are rewarded with a symbolic shield. Only Student Union members are allowed to operate as staff for the nursery. They will buy additional seeds/plants from local planters, Fertilizers and Herbicides/pesticides from local suppliers. Details recorded for planters are: Planter_Id (P_Id), Planter forename (PFName), Planter last name (PLName), Planter Category (Fruits/Vegetables) Address, City, Phone1, Phone2, Fax, and . Details recorded for suppliers are: Supplier_Id (S_Id), Supplier forename (SPFName), Supplier last name (SPLName), Supplier Type (Fertizers/Herbicides/Pesticides) Address, City, Phone1, Phone2, Fax, and . Page 3 of 11

4 Details of payment include Payment_Id (PY_Id), Payment date (PY_Date), Amount Tendered (Amt_T), Amount Returned (Amt_R), Method (Cash (CH) or Credit Card (CC). Details of Stock are Stock date (STK_date), products Name and their quantity. Products fall under the following categories: Seed: Seed Id (SD_Id), Common Name (CN), Scientific Name (SN), Seed Type (Fruits/Vegetables), Quantity in grammes (Qty), Production date (Prod_date), Expiry date (Exp_date). Plant: Plant Id (PL_Id), Common Name (CN), Scientific Name (SN), Plant Type (Fruits/Vegetables), Quantity in grammes (Qty), Production date (Prod_date), Expiry date (Exp_date). Fertilizer: Fertilizer Id (F_Id), Common Name (CN), Scientific Name (SN), fertilizer Type (Chemical/Organic), Quantity in Kilogrammes (Qty), Production date (Prod_date). Medecine: Medecine Id (M_Id), Common Name (CN), Scientific Name (SN), Medecine Type (Herbicide/Pesticides), Quantity in Litres (Qty), Production date (Prod_date), Expiry date (Exp_date). Apart from the Ids for the different categories, a Product Id (PR_Id) and a product Name (PR_Name) are also recorded in the system. A customer can buy any number of products and a product may be bought by one or more customers, depending on its availability in stock. A planter may provide any number of seeds/plants and a seed/ plant is provided by one or more planter. A fertilizer is supplied by one or more supplier. Each supplier supplies one or more fertilizers. An Herbicide/Pesticide is supplied by one or more suppliers. Each supplier can supply one or more herbicide/pesticide. A student Union member can sell one or more product. A product can be sold by one or more student union member. Page 4 of 11

5 A student Union member can buy one or more product. A product can be bought by one or more student union member. After each transaction, payment is effected either by cash or credit card and the stock is updated immediately. (a) Produce an Entity Relationship Diagram (Logical Data Structure) for the above scenario. For each entity list the attributes and underline their respective primary key. Identify any double relationship that may exist between any two entities. [11 Marks] (b) Translate your ERD into a relational database schema. [10 Marks] (c) Identify two Supertype entities and their respective Subtypes entities in the system. [2+2 Marks] QUESTION 3: (25 MARKS) (a) Explain the need for Normalization in Database Design and define the following terms with appropriate example: (i) First Normal Form (ii) Second Normal Form (iii) Third Normal Form. [8 marks] Based on the data provided below (Fig 3) carry out the tasks mentioned below (i.e. parts (i) to (iv)) to normalize the table up to the third Normal Form Page 5 of 11

6 S_ID is student ID and S_Name is student name Br_NO is Branch number and B_Name is Branch name C_ID is Course ID Ins_ID is Instructor ID and Ins_Name is Instructor Name Assumptions: Each student is enrolled on at least one course Each course has got its minimum break through to be run Each branch is running at least one course. Fig 3 (b) Explain why the table is un-normalised and convert it into 1 st Normal Form identifying an appropriate Primary key for this 1NF table. [2 + 3 marks] (c) Draw the 1 st Normal Form Table. [4 marks] (d) Decompose the 1 st NF into 2 nd Normal Form [4 marks] (e) Decompose the 2 nd Normal Form into 3 rd Normal Form [4 marks] Page 6 of 11

7 QUESTION 4: (25 MARKS) Using the tables provided in the Appendix A, express the following queries in SQL USING ORACLE 9I SYNTAX. (a) Write the SQL code that will create the table structure for the (i) OWNER table (without specifying any primary key). (ii) PET table (without specifying C_NO and V_NO) [3 + 3 marks] (b) Having created the table OWNER in question (a) above, write the SQL code that will enter the first data row into the Experiment table. [3 marks] (c) Add a PRIMARY KEY constraint to make O_NO the primary key of the CUSTOMER table [2 marks] (d) Add a FOREIGN KEY constraint to make O_NO the foreign key in the PET table. [3 marks] (e) Add a new column in the OWNER table with the following data definition (Column Name of Varchar2 data type and field size of 25, and contains a constraint that data cannot be NULL ) [2 marks] (f) The parrot named Angel suffered from a rare disease and passed away recently. Write the SQL code to delete the parrot from the PET table. [2 marks] (g) The Veterinary Issacjee recently left the country to work abroad for two years. During his absence from the country he has requested Dr Huang to continue his consultation with his patient. Consequently you have been asked to update the PET table. Write SQL code to update the veterinary number (V_N0) [3 marks] Page 7 of 11

8 (h) Write SQL code to display the name of the youngest dog registered in the system. [4 marks] QUESTION 5: (25 MARKS) This question refers to the database tables given in the Appendix A. Formulate each of the following queries in Relational Algebra. (a) Display the last names of all owners who own both a dog and a cat. [6 marks] (b) Display the forename of all owners who own either a dog or a cat. [6 marks] (c) Display the last names of all owners who do not own a cat. [6 marks] (d) Display the forenames and last names of all owners who own all categories of pet at their place. [7 marks] Page 8 of 11

9 APPENDIX A Data in Appendix A are meant for Question 4 and Question 5. Below are three tables: OWNER, PET AND VETERINARY. The OWNER Table consists of the OWNER Number (O_No) as Primary key, Fname as owner Forename, Lname as Owner Lastname, Street, City and Phone. The PET Table consists of the Pet Number (P_NO) as Primary Key, Pet name as P_name, Age (in Months), Category, vaccinated (YES/NO), O_NO, V_NO. The VETERINARY Table consists of the Veterinary Number (V_NO) as Primary key, Veterinary First Name (Vfname), Veterinary Last Name (Vlname), Address, City and Mobile number. A customer can have one or more pet(s). A pet is bought by one customer only. A veterinary can consult one or more pets of different category. A pet is consulted by one veterinary. Your task is to express each of the given queries in SQL using Oracle 9i syntax. Example data are provided in these tables for your convenience but note that they are only example data. Your queries must work for all potential data residing in the given tables, not just those illustrated here. Page 9 of 11

10 APPENDIX A FOR QUESTION 4 AND QUESTION 5 Page 10 of 11

11 ***END OF PAPER*** Page 11 of 11

BSc (Hons) Web Technologies, BSc (Hons) Business Information System. Examinations for / Semester 2. Resit Examinations for BIS/15B/FT

BSc (Hons) Web Technologies, BSc (Hons) Business Information System. Examinations for / Semester 2. Resit Examinations for BIS/15B/FT BSc (Hons) Web Technologies, BSc (Hons) Business Information System Cohorts: BWT/16B/FT & BIS/16B/FT Examinations for 2016-2017 / Semester 2 Resit Examinations for BIS/15B/FT MODULE: DATABASE MANAGEMENT

More information

BSc (Hons) Software Engineering. BSc (Hons) Computer Science with Network Security. Examinations for / Semester 2 & 2017 / Semester 1

BSc (Hons) Software Engineering. BSc (Hons) Computer Science with Network Security. Examinations for / Semester 2 & 2017 / Semester 1 BSc (Hons) Software Engineering BSc (Hons) Computer Science with Network Security Cohort: BSE/16B/FT & BCNS/17A/FT Examinations for 2016 2017 / Semester 2 & 2017 / Semester 1 Resit Examinations for BCNS/14B/FT,

More information

Multiple-Choice. 3. When you want to see all of the awards, even those not yet granted to a student, replace JOIN in the following

Multiple-Choice. 3. When you want to see all of the awards, even those not yet granted to a student, replace JOIN in the following Database Design, CSCI 340, Spring 2015 Final, May 12 Multiple-Choice 1. Which of the following is not part of the vocabulary of database keys? (3 pts.) a. Referential key b. Composite key c. Primary key

More information

The University of Nottingham

The University of Nottingham The University of Nottingham SCHOOL OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY A LEVEL 1 MODULE, SPRING SEMESTER 2006-2007 DATABASE SYSTEMS Time allowed TWO hours Candidates must NOT start writing

More information

Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment

Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment Introductory concepts of DBMS 1. Explain detailed 3-level architecture

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY Seat No.: Enrolment No. GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER III (NEW) - EXAMINATION SUMMER 2017 Subject Code: 21303 Date: 02/06/2017 Subject Name: Database Management Systems Time: 10:30 AM

More information

VIEW OTHER QUESTION PAPERS

VIEW OTHER QUESTION PAPERS VIEW OTHER QUESTION PAPERS E B4E0562 Reg No.: Name: Total Pages: 2 APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY FOURTH SEMESTER B.TECH DEGREE EXAMINATION, JULY 2017 Course Code: CS208 Course Name: PRINCIPLES

More information

1 (10) 2 (8) 3 (12) 4 (14) 5 (6) Total (50)

1 (10) 2 (8) 3 (12) 4 (14) 5 (6) Total (50) Student number: Signature: UNIVERSITY OF VICTORIA Faculty of Engineering Department of Computer Science CSC 370 (Database Systems) Instructor: Daniel M. German Midterm Oct 21, 2004 Duration: 60 minutes

More information

THE COPPERBELT UNIVERSITY

THE COPPERBELT UNIVERSITY THE COPPERBELT UNIVERSITY SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY IT/IS DEPARTMENT MAY, 2018 SESSIONAL EXAMINATIONS CS235 DATABASE TECHNOLOGY TIME ALLOWED: THREE HOURS INSTRUCTIONS : Maximum

More information

Bsc(Hons) Web Technologies. Examinations for / Semester 2

Bsc(Hons) Web Technologies. Examinations for / Semester 2 Bsc(Hons) Web Technologies Cohort: BWT/11/FT Examinations for 2012-2013 / Semester 2 MODULE: ADVANCED WEB DATABASE MANAGEMENT SYSTEM MODULE CODE: DBT2105 Duration: 2 ½ Hours Instructions to Candidates:

More information

. : B.Sc. (H) Computer Science. Section A is compulsory. Attempt all parts together. Section A. Specialization lattice and Specialization hierarchy

. : B.Sc. (H) Computer Science. Section A is compulsory. Attempt all parts together. Section A. Specialization lattice and Specialization hierarchy ' This question paper contains 8 printed pages] Roll No. I I I I I I I I I I ( 1 S. No. of Question Paper : 6074 Unique Paper Code Name of the Paper Name of the Course Semester Duration : 3 Hours : 234305

More information

QSCU Merchandise Store

QSCU Merchandise Store QSCU Merchandise Store Document Status: Milestone 2 October 29th 2018 COSC 304 Team Members: Team Members Removed Table Of Contents 1. Introduction 2 1.1 Mission Statement 2 1.2 Purpose of Document 2 1.3

More information

The appendix contains information about the Classic Models database. Place your answers on the examination paper and any additional paper used.

The appendix contains information about the Classic Models database. Place your answers on the examination paper and any additional paper used. Name: Student Number: Instructions: Do all 9 questions. There is a total of 87 marks. The appendix contains information about the Classic Models database. Place your answers on the examination paper and

More information

UNIVERSITY OF TORONTO MIDTERM TEST SUMMER 2017 CSC343H Introduction to Databases Instructor Tamanna Chhabra Duration 120 min No aids allowed

UNIVERSITY OF TORONTO MIDTERM TEST SUMMER 2017 CSC343H Introduction to Databases Instructor Tamanna Chhabra Duration 120 min No aids allowed UNIVERSITY OF TORONTO MIDTERM TEST SUMMER 2017 CSC343H Introduction to Databases Instructor Tamanna Chhabra Duration 120 min No aids allowed This test is worth 15% of your final mark. Please answer all

More information

Database Management Systems

Database Management Systems Sample Questions 1 Write SQL query to create a table for describing a book. The table should have Book Title, Author, Publisher, Year published, and ISBN fields. Your table should have a primary key. For

More information

Bachelor in Information Technology (BIT) O Term-End Examination

Bachelor in Information Technology (BIT) O Term-End Examination No. of Printed Pages : 6 I CSI-14 I Bachelor in Information Technology (BIT) O Term-End Examination cn Cn1 June, 2010 CD cp CSI-14 : DATA ANALYSIS AND DATABASE DESIGN Time : 3 hours Maximum Marks : 75

More information

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Data Modeling Data modeling is a very vital as it is like creating a blueprint to build a house before the actual building takes place. It is built

More information

1. (a) Briefly explain the Database Design process. (b) Define these terms: Entity, Entity set, Attribute, Key. [7+8] FIRSTRANKER

1. (a) Briefly explain the Database Design process. (b) Define these terms: Entity, Entity set, Attribute, Key. [7+8] FIRSTRANKER Code No: R09220502 R09 Set No. 2 1. (a) Briefly explain the Database Design process. (b) Define these terms: Entity, Entity set, Attribute, Key. [7+8] 2. Explain schema refinement in Database Design? [15]

More information

Database Systems CSE Comprehensive Exam Spring 2005

Database Systems CSE Comprehensive Exam Spring 2005 Database Systems CSE 5260 Spring 2005 Database Schema #1 Branch (Branch_Name, Branch_City, Assets) Customer (Customer_Name, SS#, Street, City, State, Zip_Code) Account (Account_Number, Branch_Name, Balance)

More information

BSc (Hons) in Computer Applications. Examinations for / Semester 1

BSc (Hons) in Computer Applications. Examinations for / Semester 1 BSc (Hons) in Computer Applications Cohort: BCA/07A/PT Examinations for 2007-2008 / Semester 1 MODULE: ADVANCED DATABASE MANAGEMENT MODULE CODE: DBT2102 Duration: 2 Hours and 30 Minutes Instructions to

More information

CITS3240 Databases Mid-semester 2008

CITS3240 Databases Mid-semester 2008 CITS3240 Databases Mid-semester 2008 This paper consists of 6 pages and 3 questions. You should complete every question (total of 40 marks). Answer each question in the space provided. Name: Student Number:

More information

DATABASE DEVELOPMENT (H4)

DATABASE DEVELOPMENT (H4) IMIS HIGHER DIPLOMA QUALIFICATIONS DATABASE DEVELOPMENT (H4) Friday 3 rd June 2016 10:00hrs 13:00hrs DURATION: 3 HOURS Candidates should answer ALL the questions in Part A and THREE of the five questions

More information

CS40 Exam #1 October 17, 2001

CS40 Exam #1 October 17, 2001 CS40 Exam #1 October 17, 2001 Name: 1. Short answer [5 points each]: a. Consider an ER diagram giving a conceptual schema for an Amazon.com shopping basket. A basket can contain any number of items, each

More information

MCA (Revised) Term-End Examination December,

MCA (Revised) Term-End Examination December, No. of Printed Pages : 6 MCS-043 MCA (Revised) Term-End Examination December, 2013 1 0 2 9 0 MCS-043 : ADVANCED DATABASE MANAGEMENT SYSTEMS Time : 3 hours Maximum Marks : 100 Note : Question number 1 is

More information

CS 327E Class 3. February 11, 2019

CS 327E Class 3. February 11, 2019 CS 327E Class 3 February 11, 2019 1) A join is used to concatenate rows from two tables that are related via referential integrity. For example, joining T and U on T.b and U.b produces V when projecting

More information

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530 Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms Relation Primary key Foreign key Referential integrity Field

More information

Database Management Systems

Database Management Systems ADIKAVI NANNAYA UNIVERSITY CBCS/SEMESTER SYSTEM IV SEMESTER BACHELOR OF COMPUTER APPLICATIONS (w.e.f. 2015-16 Admitted Batch) Database Management Systems Unit-I: Database Systems Introduction and Fundamentals:

More information

FINAL Examination Paper (COVER PAGE)

FINAL Examination Paper (COVER PAGE) Session : August 2011 FINAL Examination Paper (COVER PAGE) Programme : Bachelor of Business Information Technology (Hons) BBITI B.Sc. (Hons) Network and Mobile Computing BNMCI B.Sc. (Hons) in Internet

More information

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data. Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting

More information

BSc (Hons) Web Technologies. BSc (Hons) Business Information System. Examinations for 2016 Semester 2. Resit Examination for BIS/15A/FT & BIS/15B/FT

BSc (Hons) Web Technologies. BSc (Hons) Business Information System. Examinations for 2016 Semester 2. Resit Examination for BIS/15A/FT & BIS/15B/FT BSc (Hons) Web Technologies BSc (Hons) Business Information System Cohort: BWT/16A/FT Examinations for 2016 Semester 2 Resit Examination for BIS/15A/FT & BIS/15B/FT MODULE: DATABASE MANAGEMENT SYSTEM MODULE

More information

12. MS Access Tables, Relationships, and Queries

12. MS Access Tables, Relationships, and Queries 12. MS Access Tables, Relationships, and Queries 12.1 Creating Tables and Relationships Suppose we want to build a database to hold the information for computers (also refer to parts in the text) and suppliers

More information

Birkbeck. (University of London) BSc/FD EXAMINATION. Department of Computer Science and Information Systems. Database Management (COIY028H6)

Birkbeck. (University of London) BSc/FD EXAMINATION. Department of Computer Science and Information Systems. Database Management (COIY028H6) Birkbeck (University of London) BSc/FD EXAMINATION Department of Computer Science and Information Systems Database Management (COIY028H6) CREDIT VALUE: 15 credits Date of examination: 9 June 2016 Duration

More information

UNIVERSITI SAINS MALAYSIA. CIT503 Databases and E-Commerce Rapid Application Development. CSI512 Database Management Systems

UNIVERSITI SAINS MALAYSIA. CIT503 Databases and E-Commerce Rapid Application Development. CSI512 Database Management Systems UNIVERSITI SAINS MALAYSIA First Semester Examination Academic Session 2001/2002 September 2001 CIT503 Databases and E-Commerce Rapid Application Development CSI512 Database Management Systems Duration

More information

Bsc (Hons) Software Engineering. Examinations for / Semester 1. Resit Examinations for BSE/15A/FT & BSE/16A/FT

Bsc (Hons) Software Engineering. Examinations for / Semester 1. Resit Examinations for BSE/15A/FT & BSE/16A/FT Bsc (Hons) Software Engineering Cohort: BSE/16B/FT Examinations for 2017-2018 / Semester 1 Resit Examinations for BSE/15A/FT & BSE/16A/FT MODULE: DATABASE APPLICATION DEVELOPMENT MODULE CODE: DBT2113C

More information

1. Database Design. Assignment 2: Database Design A Basic ER Diagram and a Data Dictionary (40 points)

1. Database Design. Assignment 2: Database Design A Basic ER Diagram and a Data Dictionary (40 points) CCT395, Fall 2010, Topics in CCIT: Databases Assignment 2: Database Design Due on October 20, 2010, at the beginning of class This assignment is worth 150 points, 15% of your course grade. The assignment

More information

Faculty of Environment & Technology

Faculty of Environment & Technology Faculty of Environment & Technology Academic Year: 2012/13 Module Leader: Module Code: Title of Module: Prakash Chatterjee UFCE8K-15-M Data Management Examination Date: TBA Examination Start time: TBA

More information

EECS-3421a: Test #2 Queries

EECS-3421a: Test #2 Queries 2016 November 9 EECS-3421a: Test #2 w/ answers 1 of 16 EECS-3421a: Test #2 Queries Electrical Engineering & Computer Science Lassonde School of Engineering York University Family Name: Given Name: Student#:

More information

Birkbeck. (University of London) BSc/FD EXAMINATION. Department of Computer Science and Information Systems. Database Management (COIY028H6)

Birkbeck. (University of London) BSc/FD EXAMINATION. Department of Computer Science and Information Systems. Database Management (COIY028H6) Birkbeck (University of London) BSc/FD EXAMINATION Department of Computer Science and Information Systems Database Management (COIY028H6) CREDIT VALUE: 15 credits Date of examination: Monday 9th June 2014

More information

CSE 344 Midterm. Wednesday, February 19, 2014, 14:30-15:20. Question Points Score Total: 100

CSE 344 Midterm. Wednesday, February 19, 2014, 14:30-15:20. Question Points Score Total: 100 CSE 344 Midterm Wednesday, February 19, 2014, 14:30-15:20 Name: Question Points Score 1 30 2 50 3 12 4 8 Total: 100 This exam is open book and open notes but NO laptops or other portable devices. You have

More information

PLEASE HAND IN UNIVERSITY OF TORONTO Faculty of Arts and Science

PLEASE HAND IN UNIVERSITY OF TORONTO Faculty of Arts and Science PLEASE HAND IN UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2015 EXAMINATIONS CSC 343 H1S Instructor: Horton and Liu Duration 3 hours PLEASE HAND IN Examination Aids: None Student Number: Family

More information

CITS2232 Databases Mid-semester 2010

CITS2232 Databases Mid-semester 2010 CITS2232 Databases Mid-semester 2010 This paper consists of 6 pages and 3 questions. You should complete every question (total of 30 marks). Answer each question in the space provided. Family Name: First

More information

COMP Instructor: Dimitris Papadias WWW page:

COMP Instructor: Dimitris Papadias WWW page: COMP 5311 Instructor: Dimitris Papadias WWW page: http://www.cse.ust.hk/~dimitris/5311/5311.html Textbook Database System Concepts, A. Silberschatz, H. Korth, and S. Sudarshan. Reference Database Management

More information

SUMMER EXAMINATIONS 2013

SUMMER EXAMINATIONS 2013 SUMMER EXAMINATIONS 2013 CSY202913N MODULE TITLE Database Technology 1 LEVEL TIME ALLOWED Five Two Hours Instructions to students: Enter your student number not your name on all answer booklets. You are

More information

EXAMINATION FOR THE BSC (HONS) IN INFORMATION SYSTEMS; YEAR 2

EXAMINATION FOR THE BSC (HONS) IN INFORMATION SYSTEMS; YEAR 2 FACULTY OF SCIENCE AND TECHNOLOGY EXAMINATION FOR THE BSC (HONS) IN INFORMATION SYSTEMS; YEAR 2 ACADEMIC SESSION; 2013 SEMESTER 4 SEG2102: DATABASE MANAGEMENT SYSTEMS FINAL JULY 2013 EXAM CYCLE TIME: 2

More information

Northern India Engineering College, New Delhi Question Bank Database Management System. B. Tech. Mechanical & Automation Engineering V Semester

Northern India Engineering College, New Delhi Question Bank Database Management System. B. Tech. Mechanical & Automation Engineering V Semester 1. List four significant differences between a file-processing system and a DBMS. 2. Explain the difference between physical and logical data independence. 3. What are five main functions of a database

More information

Detailed Data Modelling: Attribute Collection and Normalisation of Data

Detailed Data Modelling: Attribute Collection and Normalisation of Data Detailed Data Modelling IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling: Attribute Collection and Normalisation of Data The objective of detailed data modelling is to develop a detailed

More information

Official Statistics - Relational Database Management Systems. Official Statistics - Relational Database Management Systems

Official Statistics - Relational Database Management Systems. Official Statistics - Relational Database Management Systems Chapter 1 Database fundamentals 1.1. What is a database? A database is a stored collection of data designed for efficient information retrieval, efficient data maintenance and centralised control of an

More information

SAMPLE FINAL EXAM SPRING/2H SESSION 2017

SAMPLE FINAL EXAM SPRING/2H SESSION 2017 SAMPLE FINAL EXAM SPRING/2H SESSION 2017 School of Computing, Engineering and Mathematics Complete your details in this section when instructed by the Exam Supervisor at the start of the exam. You should

More information

Appendix A Database Design. Data Modeling and the Entity-Relationship Model

Appendix A Database Design. Data Modeling and the Entity-Relationship Model Appendix A Database Design Data Modeling and the Entity-Relationship Model 1 Three Stages of Database Development The three stages of database development are: 1. Requirements Analysis Stage 2. Component

More information

KINGDOM OF SAUDI ARABIA-JAZAN UNIVERSITY COLLEGE OF COMPUTER SCIENCE & INFORMATION SYSTEMS 221 INFS 3 DATABASE SYSTEMS-1 REVIEW QUESTIONS

KINGDOM OF SAUDI ARABIA-JAZAN UNIVERSITY COLLEGE OF COMPUTER SCIENCE & INFORMATION SYSTEMS 221 INFS 3 DATABASE SYSTEMS-1 REVIEW QUESTIONS KINGDOM OF SAUDI ARABIA-JAZAN UNIVERSITY COLLEGE OF COMPUTER SCIENCE & INFORMATION SYSTEMS 221 INFS 3 DATABASE SYSTEMS-1 REVIEW QUESTIONS Chapter 1: Databases and Database Users 1. Define the following

More information

UNIVERSITY OF BOLTON WESTERN INTERNATIONAL COLLEGE FZE BSC (HONS) COMPUTING SEMESTER ONE EXAMINATION 2015/2016 DATABASE THEORY AND PRACTICE

UNIVERSITY OF BOLTON WESTERN INTERNATIONAL COLLEGE FZE BSC (HONS) COMPUTING SEMESTER ONE EXAMINATION 2015/2016 DATABASE THEORY AND PRACTICE OCD52 UNIVERSITY OF BOLTON WESTERN INTERNATIONAL COLLEGE FZE BSC (HONS) COMPUTING SEMESTER ONE EXAMINATION 2015/2016 DATABASE THEORY AND PRACTICE MODULE NO: CPU5002 Date: Wednesday, 13 January 2016 Time:

More information

CS425 Midterm Exam Summer C 2012

CS425 Midterm Exam Summer C 2012 Q1) List five responsibilities of a database-management system. Q2) Fill in the terms in the right hand side of the table that match the description from the list below: Instance SQL Integrity constraints

More information

D B M G. SQL language: basics. Managing tables. Creating a table Modifying table structure Deleting a table The data dictionary Data integrity

D B M G. SQL language: basics. Managing tables. Creating a table Modifying table structure Deleting a table The data dictionary Data integrity SQL language: basics Creating a table Modifying table structure Deleting a table The data dictionary Data integrity 2013 Politecnico di Torino 1 Creating a table Creating a table (1/3) The following SQL

More information

NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE

NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE Exams, Awards & Graduations NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE EXAM COVER SHEET EXAMINATION DETAILS Course Code/s: ISYS1055/1057 Course Name/s: Database Concepts Date of Exam: Sample

More information

CSE 544 Principles of Database Management Systems

CSE 544 Principles of Database Management Systems CSE 544 Principles of Database Management Systems Lecture 1 - Introduction and the Relational Model 1 Outline Introduction Class overview Why database management systems (DBMS)? The relational model 2

More information

EXAMINATION PAPER. Exam in: INF-2700 Database Systems Date: Thursday Time: Kl 15:00-19:00 Place: Åsgårdveien 9. Approved aids: None

EXAMINATION PAPER. Exam in: INF-2700 Database Systems Date: Thursday Time: Kl 15:00-19:00 Place: Åsgårdveien 9. Approved aids: None EXAMINATION PAPER Exam in: INF-2700 Database Systems Date: Thursday 03.12.2015 Time: Kl 15:00-19:00 Place: Åsgårdveien 9 Approved aids: None The exam contains 5 pages, including this cover page. Contact

More information

CSE 344 Final Examination

CSE 344 Final Examination CSE 344 Final Examination December 12, 2012, 8:30am - 10:20am Name: Question Points Score 1 30 2 20 3 30 4 20 Total: 100 This exam is open book and open notes but NO laptops or other portable devices.

More information

Database Applications (15-415)

Database Applications (15-415) Database Applications (15-415) The Relational Model Lecture 3, January 18, 2015 Mohammad Hammoud Today Last Session: The entity relationship (ER) model Today s Session: ER model (Cont d): conceptual design

More information

Management of Information Systems Session 3

Management of Information Systems Session 3 Management of Information Systems Session 3 Prof. Dr. Frank G. Goethals Information Systems lifecycle The role of a manager: 1. Define requirements! System Conception Line Leadership IS Leadership Line

More information

LAB 3 Part 1 ADBC - Interactive SQL Queries-Advanced

LAB 3 Part 1 ADBC - Interactive SQL Queries-Advanced LAB 3 Part 1 ADBC - Interactive SQL Queries-Advanced ***For each question Create the SQL query that solves the problem Write all SQL statements in the same script file and save into a text file called

More information

PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore ) Department of MCA. Solution Set - Test-II

PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore ) Department of MCA. Solution Set - Test-II PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore 560100 ) Solution Set - Test-II Sub: Database Management Systems 16MCA23 Date: 04/04/2017 Sem & Section:II Duration:

More information

LECTURE 3: ENTITY-RELATIONSHIP MODELING

LECTURE 3: ENTITY-RELATIONSHIP MODELING LECTURE 3: ENTITY-RELATIONSHIP MODELING Ref. Chapter11 + Appendix F from Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. 1 IS220 : D a t

More information

CIS 330: Applied Database Systems. ER to Relational Relational Algebra

CIS 330: Applied Database Systems. ER to Relational Relational Algebra CIS 330: Applied Database Systems ER to Relational Relational Algebra 1 Logical DB Design: ER to Relational Entity sets to tables: ssn name Employees lot CREATE TABLE Employees (ssn CHAR(11), name CHAR(20),

More information

HW1 is due tonight HW2 groups are assigned. Outline today: - nested queries and witnesses - We start with a detailed example! - outer joins, nulls?

HW1 is due tonight HW2 groups are assigned. Outline today: - nested queries and witnesses - We start with a detailed example! - outer joins, nulls? L05: SQL 183 Announcements! HW1 is due tonight HW2 groups are assigned Outline today: - nested queries and witnesses - We start with a detailed example! - outer joins, nulls? 184 Small IMDB schema (SQLite)

More information

School of Computing and Information Technology. Examination Paper Autumn Session 2017

School of Computing and Information Technology. Examination Paper Autumn Session 2017 School of Computing and Information Technology CSIT115 Data Management and Security Wollongong Campus Student to complete: Family name Other names Student number Table number Examination Paper Autumn Session

More information

BIRKBECK (University of London)

BIRKBECK (University of London) BIRKBECK (University of London) BSc Examination for Internal Students School of Computer Science and Information Systems Database Management COIY028U - Course Unit Value: 1/2 May 2006 : Afternoon 14.30

More information

Logical Database Design. ICT285 Databases: Topic 06

Logical Database Design. ICT285 Databases: Topic 06 Logical Database Design ICT285 Databases: Topic 06 1. What is Logical Database Design? Why bother? Bad logical database design results in bad physical database design, and generally results in poor database

More information

King Fahd University of Petroleum and Minerals

King Fahd University of Petroleum and Minerals 1 King Fahd University of Petroleum and Minerals Information and Computer Science Department ICS 334: Database Systems Semester 041 Major Exam 1 18% ID: Name: Section: Grades Section Max Scored A 5 B 25

More information

RELATIONAL DATA MODEL

RELATIONAL DATA MODEL RELATIONAL DATA MODEL EGCO321 DATABASE SYSTEMS KANAT POOLSAWASD DEPARTMENT OF COMPUTER ENGINEERING MAHIDOL UNIVERSITY RELATIONAL DATA STRUCTURE (1) Relation: A relation is a table with columns and rows.

More information

CSE-3421 Test #1 Design

CSE-3421 Test #1 Design 2 April 2009 CSE-3421 Test #1 (corrected) w/ answers p. 1 of 10 CSE-3421 Test #1 Design Family Name: Given Name: Student#: CS Account: Instructor: Parke Godfrey Exam Duration: 75 minutes Term: winter 2009

More information

Multiple-Choice. 1. Which of the following is equivalent to a table? (3 pts.) a. record b. relation c. relationship d. constraint e.

Multiple-Choice. 1. Which of the following is equivalent to a table? (3 pts.) a. record b. relation c. relationship d. constraint e. Database Design, CSCI 340, Spring 2016 2 nd Exam, April 1 Multiple-Choice 1. Which of the following is equivalent to a table? (3 pts.) a. record b. relation c. relationship d. constraint e. schema 2. Which

More information

Lecture4: Guidelines for good relational design Mapping ERD to Relation. Ref. Chapter3

Lecture4: Guidelines for good relational design Mapping ERD to Relation. Ref. Chapter3 College of Computer and Information Sciences - Information Systems Dept. Lecture4: Guidelines for good relational design Mapping ERD to Relation. Ref. Chapter3 Prepared by L. Nouf Almujally & Aisha AlArfaj

More information

Relational Model History. COSC 304 Introduction to Database Systems. Relational Model and Algebra. Relational Model Definitions.

Relational Model History. COSC 304 Introduction to Database Systems. Relational Model and Algebra. Relational Model Definitions. COSC 304 Introduction to Database Systems Relational Model and Algebra Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Relational Model History The relational model was

More information

Introduction to Databases Exam

Introduction to Databases Exam Introduction to Databases Exam Werner Nutt 03/09/09 The exam comprises 5 questions some of which consist of several subquestions. There is a total of 60 points that can be achieved in this exam. You will

More information

Revised Guidelines for B.A. Programme Semester II Paper: Database Management System (Meeting held on 15 th Jan 2015)

Revised Guidelines for B.A. Programme Semester II Paper: Database Management System (Meeting held on 15 th Jan 2015) Revised Guidelines for B.A. Programme Semester II Paper: Database Management System (Meeting held on 15 th Jan 2015) Theory Theory Periods 4 periods/ week Tutorial - 1 period / 15 days Theory Paper Marks

More information

Total No. of Questions :09] [Total No. of Pages : 02

Total No. of Questions :09] [Total No. of Pages : 02 CS/IT 315 (CR) Total No. of Questions :09] [Total No. of Pages : 02 III/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC- 2016 First Semester CS/IT DESIGN ANALYSIS OF ALGORITHMS Time: Three Hours Answer Question

More information

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called Q.1 Short Questions Marks 1. Considering functional dependency, one in which removal from some attributes must affect dependency is called 01 A. full functional dependency B. partial dependency C. prime

More information

Entity Relationship Modelling

Entity Relationship Modelling Entity Relationship Modelling P.J. M c.brien Imperial College London P.J. M c.brien (Imperial College London) Entity Relationship Modelling 1 / 49 Introduction Designing a Relational Database Schema How

More information

MIS Database Systems Entity-Relationship Model.

MIS Database Systems Entity-Relationship Model. MIS 335 - Database Systems Entity-Relationship Model http://www.mis.boun.edu.tr/durahim/ Ahmet Onur Durahim Learning Objectives Database Design Main concepts in the ER model? ER Diagrams Database Design

More information

The Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes.

The Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes. Chapter 6: Entity-Relationship Model Our Story So Far: Relational Tables Databases are structured collections of organized data The Relational model is the most common data organization model The Relational

More information

Principles of Data Management

Principles of Data Management Principles of Data Management Alvin Lin August 2018 - December 2018 Structured Query Language Structured Query Language (SQL) was created at IBM in the 80s: SQL-86 (first standard) SQL-89 SQL-92 (what

More information

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd.

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd. The Entity- Relationship Model R &G - Chapter 2 A relationship, I think, is like a shark, you know? It has to constantly move forward or it dies. And I think what we got on our hands is a dead shark. Woody

More information

Example Examination. Allocated Time: 100 minutes Maximum Points: 250

Example Examination. Allocated Time: 100 minutes Maximum Points: 250 CS542 EXAMPLE EXAM Elke A. Rundensteiner Example Examination Allocated Time: 100 minutes Maximum Points: 250 STUDENT NAME: General Instructions: This test is a closed book exam (besides one cheat sheet).

More information

ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD (Department of Computer Science)

ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD (Department of Computer Science) ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD (Department of Computer Science) WARNING 1. PLAGIARISM OR HIRING OF GHOST WRITER(S) FOR SOLVING THE ASSIGNMENT(S) WILL DEBAR THE STUDENT FROM AWARD OF DEGREE/CERTIFICATE,

More information

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one Data Management We start our studies of Computer Science with the problem of data storage and organization. Nowadays, we are inundated by data from all over. To name a few data sources in our lives, we

More information

EECS-3421a: Test #1 Design

EECS-3421a: Test #1 Design 2016 October 12 EECS-3421a: Test #1 1 of 14 EECS-3421a: Test #1 Design Electrical Engineering & Computer Science Lassonde School of Engineering York University Family Name: Given Name: Student#: EECS Account:

More information

BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT DATABASE SYSTEMS

BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT DATABASE SYSTEMS BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT DATABASE SYSTEMS Tuesday 31 st March 2015 Morning Answer any FOUR questions out of SIX. All questions carry

More information

Score. 1 (10) 2 (10) 3 (8) 4 (13) 5 (9) Total (50)

Score. 1 (10) 2 (10) 3 (8) 4 (13) 5 (9) Total (50) Student number: Signature: UNIVERSITY OF VICTORIA Faculty of Engineering Department of Computer Science CSC 370 (Database Systems) Instructor: Daniel M. German Midterm 18 June 2003 Duration: 75 minutes

More information

CONCEPT ON STRUCTURED QUERY LANGUAGE (SQL) By: Rohan Byanjankar Sainik Awasiya Mahavidyalaya, Sallaghari, Bhaktapur

CONCEPT ON STRUCTURED QUERY LANGUAGE (SQL) By: Rohan Byanjankar Sainik Awasiya Mahavidyalaya, Sallaghari, Bhaktapur CONCEPT ON STRUCTURED QUERY LANGUAGE (SQL) By: Rohan Byanjankar Sainik Awasiya Mahavidyalaya, Sallaghari, Bhaktapur 1 Structured Query Language Structured Query Language (SQL) is the special purposed programming

More information

Schema And Draw The Dependency Diagram

Schema And Draw The Dependency Diagram Given That Information Write The Relational Schema And Draw The Dependency Diagram below, write the relational schema, draw its dependency diagram, and identify all You can assume that any given product

More information

Note: Select one full question from each unit

Note: Select one full question from each unit P.E.S COLLEGE OF ENGINEERING, MANDYA-571401 (An Autonomous Institution Under VTU Belgaum) Department of Master of Computer Applications Model Question Paper Data Structures Using C (P18MCA21) Credits :

More information

Practice questions recommended before the final examination

Practice questions recommended before the final examination CSCI235 Database Systems, Spring 2017 Practice questions recommended before the final examination Conceptual modelling Task 1 Read the following specification of a sample database domain. A construction

More information

CSE 444 Midterm Exam

CSE 444 Midterm Exam CSE 444 Midterm Exam November 13, 2009 Name Question 1 / 24 Question 2 / 22 Question 3 / 22 Question 4 / 12 Question 5 / 20 Total / 100 CSE 444 Midterm, Nov. 13, 2009 Page 1 of 8 Question 1. SQL (24 points,

More information

DATABASE DESIGN I - 1DL300

DATABASE DESIGN I - 1DL300 DATABASE DESIGN I - 1DL300 Spring 2011 An introductory course on database systems http://www.it.uu.se/edu/course/homepage/dbastekn/vt11/ Manivasakan Sabesan Uppsala Database Laboratory Department of Information

More information

Module Contact: Dr Beatriz de la Iglesia, CMP Copyright of the University of East Anglia Version 1

Module Contact: Dr Beatriz de la Iglesia, CMP Copyright of the University of East Anglia Version 1 UNIVERSITY OF EAST ANGLIA School of Computing Sciences Main Series UG Examination 2015-16 DATABASE SYSTEMS CMP-4010B / CMP-5038B Time allowed: 3 hours Answer THREE questions out of FIVE. All questions

More information

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam Question No: 1 ( Marks: 1 ) - Please choose one Which of the following is NOT a feature of Context DFD?

More information

The Relational Model. Week 2

The Relational Model. Week 2 The Relational Model Week 2 1 Relations A relation is a more concrete construction, of something we have seen before, the ER diagram. name S.S.N students street city A relation is (just!) a table! We will

More information

ARTICLE RELATIONAL ALGEBRA

ARTICLE RELATIONAL ALGEBRA ARTICLE ON RELATIONAL ALGEBRA Tips to crack queries in GATE Exams:- In GATE exam you have no need to learn the syntax of different operations. You have to understand only how to execute that operation.

More information

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 304: MIDTERM EXAMINATION SET A OCTOBER 2016

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 304: MIDTERM EXAMINATION SET A OCTOBER 2016 THE UNIVERSITY OF BRITISH COLUMBIA CPSC 304: MIDTERM EXAMINATION SET A OCTOBER 2016 General Instructions 1. This is a closed book, closed notes exam. There are total 12 pages. Answer all questions in the

More information

ER Model Overview. The Entity-Relationship Model. Database Design Process. ER Model Basics

ER Model Overview. The Entity-Relationship Model. Database Design Process. ER Model Basics ER Model Overview The Entity-Relationship Model Davood Rafiei Developed by Peter Chen in the mid 70 s Used for the design of conceptual schema. The world is described in terms of entities relationships

More information