MCS 043 Assignment
MCS 043 Assignment
MCS 043 Assignment
: : : : : :
100 25%
15th October,2011 (for July,2011 session) 15th April,2012 (for January,2012 session)
This assignment has four questions, which carries 80 marks. Answer all the questions. Rest 20 marks are for viva voce. You may use illustrations and diagrams to enhance explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation. Answer to each part of the question should be confined to about 300 words.
Question 1: Consider a publishing house which prints Books and monthly magazines. The books may be either text books written by one or more authors or research oriented books which are collection of research papers in an area. Each of these research papers may be written by one or more authors. Such books are edited by a group of experts. The magazine contains articles written by various article writers. The publishing company also keep track of payment to these authors, editors and writers. The book writers and editors are given 25% of the sale price of each book sold, whereas article writers are paid a fixed amount per article. Perform the following activities for the publishing company:
(a)
Draw the EER diagram for the publishing company showing all entities, relationship, aggregation, generalisation and specialisation for the description given above. (5 Marks) Create the normalised tables till 5 NF for the EER diagram created as answer to part (a) of this question, highlighting the different types of dependencies including Multi-Valued and Join dependencies (if your design does not have any such dependency, then you must explain the MVD and JD with the help of an example situation). (5 Marks) Draw the class diagram for the publishing house as described above and relate it to database design as done in part (b). (5 Marks) Create an embedded SQL query to find out the list of authors who are also writers and have written at least two articles. (2 Marks) List the contents of the catalogue considering that the system has been developed using a commercial database management system? (3 Marks)
(b)
Question 2
(a)
Consider the following relations: StudyCentre (sc_id, sc_name, sc_phone, sc_address, rc_id) Student(st_ id, st_name, st_address, st_programme, sc_id, rc_id) RegionalCentre (rc_id, rc_name, rc_address)
(6 Marks)
Write the SQL query to find the number of students allocated to study centre whose name is -First College and is in the regional centre - Mumbai. Now, assume that there are 40 regional centres, 10,000 student s and 2,500 study centres. Also assume that a block of data can store 10 regional centre records or10 study centre records or 5 student records.
Find the minimum cost for evaluating the query given above if Block Nested- Loop join is performed. Also find the query evaluation plan for the given query. Make suitable assumptions, if any.
(b)
What is a log? Explain the Log based recovery scheme using deferred database modification approach with the help of an example. What is the need of checkpoints in the context o database recovery? (4 Marks) Consider the relations given in part (a) of this question. Design two types of users Regional Director and the student. The Regional Director users are allowed to view and update any data in any table. The student users can only view the data about her/him. Design the suitable access control and use SQL to grant the desired access rights to the users. Make suitable assumptions, if any. (3 Marks) Explain the process of distributed deadlock detection in distributed database system with the help of example. (3 Marks) Differentiate between two phase commit and three phase commit protocols of distributed systems. (2 Marks) What may be the security loopholes for Statistical databases? Explain them with the help of an example. (2 Marks)
(c)
Question 3:
(a)
A Software development company has many employees. The company do multiple projects at a time. Employees are associated to different projects from time to time; however, an employee may not be associated with more than 4 projects at a time. Design a suitable structure of an object oriented database using ODL. Also write a query that finds the information about the number of projects each employee is presently associated. (5 Marks) Create a semi structured data using XML for the students of a study centre (consider a maximum of 10 students). You may include the fields Student ID, Name, Programme, Subjects for the programme, telephone numbers, and addresses including home and office address. Create a suitable DTD for this document. (5 Marks)
(b)
(c)
A University like IGNOU has many Study Centres. The students study at the centres and their examination results are centrally stored. Consider a data warehouse is to be created for the University with three dimension tables and one fact tables Dimension table of Year of Passing, Programme and Study Centre and fact table of overall percentage of marks. Create the star schema for the data warehouse with some sample data. Also design the process of data extraction for the data warehouse so designed from the Universitys Operational database. (5 Marks) Explain how data mining can be used for a University like IGNOU. Explain one algorithm each for classification, clustering and association rule mining with the help of an example. (5 Marks)
(d)
Question 4:
(a)
(i) (ii) (iii) (iv) (v)
Explain the following with appropriate examples. Applications of Multimedia Database Geographic Information Systems and its uses Deductive databases Use of JDBC and ODBC Mobility and databases Explain the following in the context of PostgreSQL i. Process of connection establishment ii. Transaction Management iii. Types of Indexes iv. Query Processing v. Use of any two system defined columns. Explain the following in the context of Oracle i. Data types ii. Different types of SQL statements iii. Redo Log files iv. Tablespaces v. Types of indexes `
(10 Marks)
(b)
(5 Marks)
(c)
(5 Marks)