You are on page 1of 2

QUIZ SEMESTER GENAP TAHUN AJARAN 2012/2013 Mata Kuliah/SKS Fakultas Program Studi/ Semester Hari Waktu Sifat

Ujian Dosen Penguji : Analisa Perancangan Sistem Informasi : (fakultas) : Sistem Informasi : Jumat, 15 Maret 2013 : 120 menit : Close Book :

Q.1. (a) Design an ER diagram for an IT training group database that will meet the information needs for its training program. Clearly indicate the entities, relationships and the key constraints. The description of the environment is as follows : The company has 12 instructors and can handle upto 100 trainees for each training session. The company offers 5 Advanced technology courses, each of which is taught by a team of 2 or more instructors Each instructor is assigned to a maximum of two teaching teams or may be assigned to do research Each trainee undertakes one Advanced technology course per training session. (b) Examine the table shown below : Staff No. E101 E101 E122 E122 Branch No. B02 B04 B02 B04 Branch Address Sun Plaza, Delhi, 110001 2/3 UT, Delhi, 110111 Sun Plaza, Delhi, 110001 2/3 UT, Delhi, 110111 Name Ram Ram Mohan Mohan Position Assistant Assistant Assistant Assistant Hrs/Week 16 9 14 10

(i)Why is the table above not in 2NF ? (ii) Describe the process of normalizing the data shown in the table above to third normal form (3NF). (iii) Identify the primary and foreign keys in your 3NF relations. Q.2. (a) Consider the following relations : Employee (emplD, FirstName, LastName, address, DOB, sex, position, deptNo) Department (dtptNo, deptName, mgr, empID) Project (projNo, projName, deptNo) Work on (empID, projNo, hours worked) Write the SQL statements for the (i) List the name and addresses of all employees who work for the IT department. following :

(ii) List the total hours worked by each employee, arranged in order of department number and within department, alphabetically by employee surname. (iii) List the total number of employees in each department for those departments with more than 10 eemployees. (iv) List the project number, project name and the number of employees who work on that project.

Q.3. 1. Supreme products manufactures products like pressure cookers , cook-wavers ,water purifiers, food processor etc. the company markets its products to wholesalers all over the country and dealers sell them to .customers. the company has five regional offices and many sakes persons are attached to regional offices. Sales persons contact dealers and explain about products, incentive offered training program for wholesaler and demonstration for customer etc. Dealers places orders with the sales persons attached with the regional office of their location . After receiving goods they make payment , which may be in a installment company would like to develop a system to monitor sales of different products , Performance of salespersons and order from wholesalers. Do the following : (a) Identify entities , attributes and relationship giving functionalities and draw an E-R diagram for the

system. (b) Convert this to relation table explaining the logic involved.

Q.4. (a) Define the following with respect to an diagram. Explain the manner in which each is mapped to a table . Illustrate with an example : (i) Relationship set (ii) Aggregation (iii) Multivalued attribute

(b) Define primary key, candidate key, foreign key and super key with in example. Discuss the type of integrity constrains that must be checked for the update operation insert and delete. Give examples. (c) Define physical view and logical view in database with example!

Q.5. Consider the following relation with key underline : Street (name, location, city) House (number, street number) Lives (name, house _number ) (a) Define the above relation as tables in SQL making real world assumption about the type of fields. Define the primary keys and forging key . (b) For the above relation answer the following queries in SQL : (i) Get the names of person who live in the street name Mahatma Gandhi (ii) Get the house numbers street wise. (iii) Get the number of house which are not occupied. (c) What is the NULL? Give an example to illustrate testing for NULL in SQL.