Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
INSS 651 Final EXAM Fall 2007 Data Base Management System MUST BE DONE INDIVIDUALLY READ THE INSTRUCTIONS CAREFULLY!!!!!!!! NO LATE SUBMISSION!!!!!!! DUE DATE: May 14, 2007 Note: This is an EXAM; I can NOT answer any questions. Please do not ask for any help. email me for any general clarifications Exam is to be done individually Honesty and integrity is expected Do not submit anything else. Before submitting delete up to this point EVIDENCE FORM 1 I have read UB’s policy on cheating and plagiarism (see UB’s website for more information). I have done all work myself with no HELP from anybody. Please put your name in the line below to certify the above statement. ___________________ Last First Total points 50 2 Ques #1. Note these are NOT simple T/F answers Circle the appropriate answer. GIVE REASONS or EXPLANATIONS for correct answers and if the answer is false explain why and then indicate the correct answer: It is NOT a simple T/F question each question requires T/F explanation (10 points) T F 1 A data warehouse is a snapshot of an organization at a particular time T 2. F Update CUSTOMER Set cust_name=”SMITH” Where cust_order IN (select cust_ord from ORDER where order_name = 20); will require a shared lock on both Customer and Order tables. T F 3. Derived data will always create dependency and the relation will not be in the third normal form. T F 4. Given the following Relation R ( B, A, C, D) (B) is the PK and following dependency exist (B,A) ----D Is the relation in 2nd NF? T F 5. Cardinality of following would be Assuming a club must have at least one student and a student must belong to a club STUDENT (0,1) CLUB (1,N) 3 Ques#2. You have just accepted a job as a CIO (Chief Information Officer) of WHOrWE, a distribution company. On your first week on the job you discover that database users are entering one common password to enter to log on to the database each morning when they arrive for work. You also learned employees leave their workstations connected to the database all day, even when they are away from their machines for an extended period of time. (4 points) Answer each part separately a. Should you be concerned? WHY? b. What would you do in this situation? 4 Ques#3 Given the following table: Assign_HRS (Emp_name, Project_ID, Task_ID, Phone, Total-Hours) An employee can work on many projects and a project can have many tasks (10 points) Emp_Name Project_ID Task_ID Phone Total-hours Don Don Don Don Pam Pam Pam 100A 100A 200B 200B 100A 200A 200D B-1 P-1 B-1 P-1 C-1 C-1 C-1 12345 12345 12345 12345 67890 67890 67890 12 12 12 12 26 26 26 Answer the following: (each part is independent) a. What is the normal form of the ASSIGN_HRS table? Justify your answer b. assuming total-hours are total hours an employee works, i.e. Don works a total of 12 hours irrespective of the project or task Based on above assumption, convert the above table in 3NF c. Assuming that total_hours are the hours worked by an employee on a given PROJECT, i.e. Don worked 12 hours on PROJECT 100A and 12 hours on Project 200B Based on assumption in part c, convert the original ASSIGN_HRS table in 3NF d. Assuming total-hours are the number of hours worked by an employee on a given task for a given project, i.e. Don worked 12 hours on task B-1 Project 100A, worked 12 hours on task P-1 on Project 100A etc.. Based on assumption in part d, convert the original ASSIGN_HRS table in 3NF 5 Ques#4. Go to the following Conference web site, an international organization for IS people http://www.ecis2007.ch/ Answer the following. (stay focused on the web site ONLY, do not go to any hyperlinks. Identify objects and draw OODM =================================================== (8 points) 6 Ques#5. The following question is based on the DDBMS scenario shown below (10 points) TABLES CUSTOMER PRODUCT INVOICE INV_LINE FRAGMENTS N/A PROD_A PROD_B N/A N/A LOCATION C,A A B C C Note: both sites A & C have replicated CUSTOMER data; PRODUCT data is partitioned between two sites A, B. Specify the minimum type(s) of operation(s) the database must support (remote request, remote transaction, distributed transaction, or distributed request) in order to perform the following operations: At Site C: a. SELECT CUS_NUM, CUS_NAME, INV_TOTAL FROM CUSTOMER, INVOICE WHERE CUSTOMER.CUS_NUM = INVOICE.CUS_NUM; b. SELECT * FROM CUSTOMER; 7 At Site B: c. BEGIN WORK; UPDATE CUSTOMER SET CUS_BALANCE = CUS_BALANCE + 100 WHERE CUS_NUM='10936'; INSERT INTO INVOICE(INV_NUM, CUS_NUM, INV_DATE, INV_TOTAL) VALUES ('986391', '10936', ‘15-FEB-2002’, 100); INSERT INTO INVLINE(INV_NUM, PROD_CODE, LINE_PRICE) VALUES ('986391', '1023', 100); COMMIT WORK; d. SELECT * FROM PRODUCT WHERE PROD_QOH <10; For above queries identify nature of lock needed (only consider shared & exclusive locks) on each table: (list N/A if it is not applicable to a table in a given query) Operation/Query Minimum type(s) of operation(s) database must support for each query Types of lock on Tables/Query PRODUCT_A PRODUCT_B CUSTOMER INVOICE INVLINE a b c d a b c d ============================================================== 8 Ques#6. (8 points) Generic answers will NOT get much credit, must relate to concepts from the book or other resources (list sources). a. Pho_r_us.com is a completely internet based Chinese noodle company. It started operations in 2001 and has been very successful until now. In 2005 their sales soared from $10 million (2001) to $1.2 billion (2005). However sales in first two quarters of 2006 were dismissal and their stock price plummeted 60% in 2006. Mr. B.T. Smith (Highest degree: MS in MIS, age 32), a UB graduate (2003) was promoted as DBA at pho_r_us.com on October 2, 2005. Mr. Smith reports directly to Ms Shee (Highest degree: MBA with MIS concentration; age 52), chief information officer (CIO). On April 15th 2006, marketing department refused to give any additional data access to Ms Shee and after much discussion, Mr. Lou, the CEO, (highest degree: BA in political Science, age 65) agreed with the marketing department. On May 6th 2006, Mr. Lou refused Ms Shee’s request to allocate more money for information technology (IT) needed for B2B and B2C portal enhancements, even though competition using latest technology, was cutting into pho_r_us.com’s market share. Competitors are constantly providing incentives using viral marketing and have added enhancement like; on line secure payment (using paypal), free delivery (using FedEx/UPS), one click ordering (using Amazon.com technology) and repeat customer incentives . Pho_r_us.com is losing market share. Frustrated, Mr. Smith, the DBA, resigned on October 12, 2006. Ms. Shee resigned on November 2, 2006. What are the repsonsibilities of a CIO & DBA and what are the problems at pho_r_us.com that made Mr. Smith & Ms. Shee resign? b. Assume you have a position as a CIO in a large corporation. The company has been collecting data about employees, including monitoring their working habits by recording their keystrokes, timing their telephone interactions with clients, and scanning their emails for personal correspondence. You have asked your DBA to develop a database to store such data. Does the company have a legal right to perform this kind of monitoring? What is your professional responsibility in this situation? Visit some ethics sites (www.acm.org or www.ieee.org or any other professional site to answer this question) ============================================ 9