INT104 - DBMS - Question Bank1
INT104 - DBMS - Question Bank1
1. Explain the architecture of a database system and its various components along with
suitable diagram.
4. Draw an E-R diagram for a banking enterprise with all components and explain.
5. Design a database using ER model to store IPL match details based on the requirements
given below.
a. Player will have id, name, country and price
b. Team will have short name, name, owner and homeground.
c. Each team will have at least one player
d. Each player plays for at most one team
e. Each team plays match against atleast one other team, on specified date, time
and
ground. Winner of the match should be recorded.
The ER diagram should specify entity sets, relationship sets, participation details,
cardinality ratio, primary key and weak entity sets(if any).
Convert the above ER diagram into Relational schema. Explain the conversion steps
briefly.
6. Supreme Products manufactures products like pressure cookers, cookwares, water purifiers, food
processors etc. The company markets its products to wholesalers all over the country and dealers
sell them to customer. The company has five regional offices and many sales persons are attached
to regional offices. Salespersons contact dealers and explain about products, incentives offered,
training programs for wholesalers and demo for customers etc. Dealers place orders with the
salespersons attached with the regional office of their location. After receiving goods, they make
payments, which may be in installments. Company would like to develop a system to monitor
sales of different products, performance of salespersons and orders from wholesalers. Do the
following:
(i) Identify entities, attribute and relationships giving functionalities and draw E-R
diagram for the system.
(ii) Convert this to relational tables explaining logic involved.
7. Suppose that we have a ternary relationship R between entity sets A, B, and C such that
A has a key constraint and total participation and B has a key constraint; these are the
only constraints. A has attributes a1 and a2, with a1 being the key; B and C are similar. R
has no descriptive attributes. Construct SQL statements that create tables corresponding
to this information so as to capture as many of the constraints as possible. If you cannot
capture some constraint, explain why.?
8. With a neat sketch, Illustrate the two different types of ordered indices and relatively
show how they are differing to access a particular value using index entry to gain fast
random access to records in a file.
9. Explain the structure of B+ tree with suitable example.
Unit – II
1. Consider the following tables.
Department Table
**************************
Dept_ID Dept_Name
1 CPP
2 UNIX
3 Oracle
4
a. Create above Two tables as per the below condition
Create the above two tables in such a way that EMP_DEPTID value entering for
Employee table should be exists in department Table
Use the tables created in the step# a, above and Develop the Queries for the below
requirements
b. Display Manage Name for each and Every Employee along with employee
details in the Employee Table?
c. Display department name along with the employee details for each employee
d. Display the Employees Whose salary is more than RAJANI?
e. Display the LOCATION wise salary for the employee table?
f. Display all the Employees who are reporting to HANUMANTH’s Manager?
g. Display employee details, who is least salaried person in the Organization?
h. Select the Least most and least experience Employee details.
i. Display employee details whose salary is greater than the average salary of his
location, for which the employee belongs to?
j. Display all the employees details along with the department details
Note: If the employee is tagged to department display department and respective
employee details else display only the employee details, if not tagged to any department
a. Explain the Normalization form in which the above table is in currently and
why?
b. Convert the above table into next normal form
For Ex: If the above table is in first Normal form convert to second
If the above table is in second Normal form convert into third
5. The following table is already in first normal form (1NF). There is only one entry per
field. Convert this table to the third normal form (3NF) using the techniques you learned.
6. What are the properties of Armstrong’s axioms are used to infer FDs from others?
Unit – III
1. Explain the steps involved in query processing with neat flowchart and highlight how
query processing is to translate a given query into its internal form.
2. Explain the optimizer uses equivalence rules to transform expressions into other logically
equivalent expressions.
3. Consider three transactions: T1, T2 and T3. Draw the precedence graph for the following
schedule consisting of these three transactions and determine whether it is serializable. If
so, give its serial order(s).
Time T1 T2 T3
t1 : read(Y)
t2 : read(Z)
t3 : read(X)
t4 : write(X)
t5 : write(Y)
t6 : write(Z)
t7 : read(Z)
t8 : read(Y)
t9 : write(Y)
t10 : read(Y)
t11 : write(Y)
t12 : read(X)
t13 : write(X)
4. Describe Two Phase Locking protocol with suitable example.
5. Illustrate any one of the concepts of deadlock detection, deadlock avoidance and
deadlock prevention.
6. Explain time stamp based concurrency control and correctness of timestamp ordering
protocol.
Unit – IV
1. Discuss various types of security issues for a database.
2. Compare and contrast DAC, MAC, RBAC.
3. Briefly explain about the two approaches to storing the relation in the distributed
database.
4. What are the various types of Distributed Database Systems? Explain fragmentation in
distributed database systems.
5. Explain the data warehouse architecture and its components with a suitable diagram.
6. Narrate decision tree induction algorithm for classification with suitable example