You are on page 1of 6
0 2283 ( Manipal International University, Mala SCHOOL OF SCIENCE AND ENGINEERING JULY 2016 EXAMINATION (RESIT) Time Allowed: 3 Hours ‘Semester 4: Bachelor of Computer Engineering (Hons) ‘Semester 2: Bachelor of Computer Science Semester 4: Bachelor of Chemical Engineering (Hons) Semester 7/8:Bachelor of Civil Engineering (Hons) ECB 2253: Database Management Systems EYB 4463: Database Management Systems (Open elective) INSTRUCTIONS TO CANDIDATES: Check carefully to ensure that you are sitting for the RIGHT Course and Programme. This question paper consists of Five (5) Questions. Answer all the FIVE (5) Questions. Total marks are 100. Write your answers in the answer booklet/booklets provided, This question paper consists of _04_ pages including this cover page. Please check to make sure that this examination pack consists of ‘An Answer Booklet — provided by the Examination Unit Write ALL answers in the answer booklet/booklets provided This is a closed-book examination ~ this means you are not permitted to use any text books or study aids in the examination. However, you cannot exchange books and material with other students. No electronic devices capable of storing and retrieving text, including mobile phones, electronic dictionaries and programmable calculators, may be used You should cross out any work that you do not wish to be marked. LARY, MANDAL TERNATIONAL UNIVER ‘NILAI CAMPUS ™ k (Bachelor of Computer Engineering / Bachelor of Computer Science /Bschelo of Chemical Engineering) hy, 2038 (Answer all the Questions) Question 1: (20 marks) (a) Write short notes on i) Data and Information ii) Disadvantages of database systems ili) Data redundancy, data inconsistency and data anomalies (@ marks) (b) What is a business rule, and what is its purpose in data modelling? (8 marks) © econ STOR ean (a Wresion.cooe ¥ stoRe.coe @ euip.coDE 1 208 /co0E REGIOILDESCRIN STORE Rane fue 108 DESCRION STORE 9, ses ean 108, as REGION. CODE EP FUE l en tras euF_008 108, coue STORE, cODE Using the above diagram write all the business rules (3 marks) Question 2: (20 marks) (a) _ Use the business rules give below ADRIVER can drive many TRUCKs ‘And each TRUCK can be driven by many DRIVERS Create a relational diagram and an entity relationship diagram to show relationship between the tables. Each table must have minimum 2 attributes. (7 marks) ©) Table name: CUSTOMER, ‘GUS_COBE | CUS_LNANE ‘AGENT_CODE Hirs2e4S Waker Bs 231 25 6152439687 Hizi77er adwes 324s 125 i167 etso426770 1312243 Rakowski 34128187 last 6152431128 11321242 Rodriguez 37134125 [333 sotizsaaes, H1s¢2311Smtnson 71342 1657999 Yenloo 3214823 Using the above tables — |. Create a table to show natural join Il Create a table to show right outer join (6 Marks) (c) Differentiate (with examples) between ECB 2255 (Bachelor of Computer Erasing Bachelor of Computer Sconce /Bachalr of Chemica! Engineering) sy, 2016 LIBRARY, MANIPA (ONAL UNIVERSITY, INILAI CAMPUS i) Weak and a Strong relationship between the entities ii) Unary and Ternary relationship degree (7 Marks) Question 3: (20 marks) (@) Use the dependency diagram given below i) Identify the various dependencies ii) Create a database whose tables are in 2NF, showing dependency diagram for each table. iii) Create a database whose tables are in 3NF, showing dependency diagram for each table. iv) Modify the dependency diagram you created in section (ji) to produce dependency diagram that are in 3 NF and BCNF v) Give the relational schema for the final tables. (15 Marks) (b) — What is a surrogate key? Give an example. (6 Marks) Que: : 4 (25 marks) (a) Consider a ‘University’ database with three tables as given below 4,Student - captures student details student _dob Pane Pac iam. 200 Seo eens Rao mace ests thc atabase Lab 3. Attendance - captures student attendance for different courses ECB 2258 (Bschlor of Computer Engnastng/ Bscheor of Comper Science / Bachelor of Chemical Engen) uy, 2016 SSIs) EISetstststsetsts4 ria 21 ea ra 51 a "| a 2 ca ey x Er Based on the tables given above, answer the following questions i) Write SQL syntax to create table ‘Attendance’ with all necessary constraints. 2 Marks ii) Write an SQL statement - To modify the table ‘student’ and add an attribute ‘student_phone’ with appropriate data type and length. To update the phone number to '0172509618' for the student with student id 1001" for the student table To remove the column ‘student_phone' from the student table, 3 Marks ili) Write an SQL statement which groups the student gender and shows the corresponding student name as give below syle TAN Cran a | Alfred, Jason, Jamie 3 marks iv) Write an SQL statement which shows students who have been absent as given below eet 3 marks v) Write an SQL statement that shows the student name and the dates on 18 /Batheler of C ECB 2255 (Bachelor of Computer Enginoeing Bache of Computer S ical Engnaering) sy, 2016 LIBRARY. MANIPAL nyTERNATION 'NILAI CAMIUS which he/she was present. Output is given below vi) Write a stored procedure which will show details of courses which have 3 credits. 3 Marks vii) Write an SQL statement to remove table ‘course’ and to remove the database ‘university’. Also write an sql statement to change the name of the table ‘student’ to ‘students’. 3 marks (24 Marks) (b) List down what SQL can do? (4 Marks) Question 5: (15 marks) a) __List and discuss the four transaction properties. (6 Marks) b) _List and briefly explain the different phases of SDLC (6 marks) ©) Describe DBA’s managerial role (3 Marks) END OF QUESTION PAPER E08 2269 (Bachelorof ompuer Engineering / Bachelor of CompulerSclenoe/ Bacto of Chemical Engineering) hay 2048

You might also like