DATABASE MANAGEMENT SYSTEM
QUESTION BANK
UNIT NO.01 INTRODUCTION TO DATABASE SYSTEM
2 MARKS QUESTIONS:
1)State any two advantages of DBMS.
2)List any for applications of DBMS.
3)List any four limitations/drawbacks of DBMS.
4)What is Data abstraction.
5)Define: Instance.
6)Enlist different components of DBMS.
7)List various data models.
8)List any two data models.
9)Define the data model.List its types.
10)Define data abstraction.
3 MARKS QUESTIONS:
1)Define the following terms: a)Data b)Database c)DBMS.
4 MARKS QUESTIONS:
1)State and explain four advantages of DBMS over file
processing systems.
2)Difference between database management system and file
processing system.
3)Describe data independence with its types.
4)Draw the overall structure of DBMS.
5)List first four codd rules.
6)Distinguish between the network model and hierarchical
model.
UNIT NO:02 RELATIONAL DATA MODEL
2 MARK QUESTIONS:
1)Describe primary key and candidate key.
2)How to apply NOT NULL constraint at the time of table
creation? Give syntax.
3)State the components used in E-R diagram.
4)State weak and strong entity set.
5)Define entity.
6)Define Attribute.
7)Define Normalization.
8)What is meant by database normalization.
9)Explain two goals of Normalization.
10)List normalization types.
11)State and explain 2NF with example.
4 MARK QUESTIONS:
1)Describe following keys: a) Primary key b)Forein key.
2)Explain : a)Candidate key b)Forein key.
3)Explain not null constraints by suitable example.
4)Explain the strong entity and weak entity set.
5)Explain the single-value and multi-value attributes of ER
model.
6)Explain any four types of attributes.
7)A publication may be a book or an article.Articles are
published in Journals.Publication has title and location.Book
having their title and category.Article includes title, Topic and
date. Publication is written by Authors stores Name, address
and mobile number.Publication also belongs to particular
subject which has their names.
8)Draw ER diagram for car insurance company that has a set of
customer each of whose having one or more car.Each car
associated with it zero to any number of record accidents.
4 MARK QUESTIONS:
9)Construct an ER diagram for a hospital with a set of patients
and the set of medical doctors associated with each patient a
record of various text and examination conducted.
10)Draw an ER diagram and reduce it to relational database
model for a university database for scheduling of classrooms
for final exams. This database could be modeled using entities
as exam (Course_name, section_number, room_number, time);
course (name, department, C_number), room (r_number,
capacity, building). Entity section is dependent on course.
11)Explain normalization with example.
12)Explain need of normalization.
13)State and explain 1NF with example.
14)State and explain 2NF with example.
15)Explain 3NF with example.
16)Relation R(A, B, C, D, E, F, G, H, I, J).Having following set of
FDs, Show whether it is in 2NF and 3NF.
16)Relation R(A, B, C, D, E, F, G, H, I, J).Having following set of
FDs, Show whether it is in 2NF and 3NF.
AB → C
BD → EF
AD → GH
A→I
H→J
17)Relation R(A, B, C, D, E). Having following set of FDs, convert
it to 3NF.
A → BD B→C D→E
18)We are given Relation R with Attributes A, B, C, D, E, F and
the FDs as below, Find and explain which armstrong’s Axioms
can be applied here to find closure,
A → BC B→E CD → EF
UNIT NO. 03 INTERACTIVE SQL AND PERFORMANCE TUNING
2 MARK QUESTIONS:
1)Explain data types in SQL.
2)List four DDL commands with syntax.
3)Give the syntax and example of CREATE command.
4)Write syntax for creating and renaming a table.
5)Explain DROP command with syntax and example.
6)List DML commands.
7)Explain order by clause with suitable example.
8)Explain group by clause.
9)Define group by clause.
10)Enlist arithmetic and logical SQL operators.
11)Explain range searching operator, “BETWEEN”.
12)Explain pattern matching operator “LIKE”.
13)Enlist four aggregate functions.
14)State the use of AVG function with example.
15)What is view?Write the syntax of create view.
16)Write the syntax of create view.
17)With the help of example, explain DROP VIEW command
DROP query is used to delete a view.
18)Define Index.
4 MARK QUESTIONS:
1)Explain any two DDL commands along with example.
2)Explain Alter command. Give syntax of add and modify
option.
3)Give the syntax of RENAME command with example.
4)Write syntax of insert command. Demonstrate with suitable
example.
5)Describe how to delete the data from table with an example.
6)Describe savepoint and rolback commands with example.
7)How to use commit, savepoint, rollback commands.
8)Describe commit and rollback with syntax and example.
9)Consider table students_academics_details with the following
columns.
Rollno, Student_name, Class, Division,Faculty, Marks_subject1,
Marks_subjects2,Marks_subject3.
Find following queries:
1.Find average marks in each subject faculty wise.
2.Find the number of students in each division of each class.
3.Find sum of all the m1, m2, m3subject marks.
4.Display the class and the number of students where no>3
5.Find minimum, maximum and average marks of m1, m2, m3
subject.
10)Consider
the following table:
ID Name Work-date Daily_typing pages
1 John 2007-01-24 250
2 Ram 2007-05-27 220
3 Jack 2007-05-06 170
3 Jack 2007-04-06 100
4 Jill 2007-04-06 220
5 Zara 2007-06-06 300
5 Zara 2007-02-06 350
Answer following queries:
a)Find the count for a name Zara.
b)Calculate total of all the daily typing-pages.
c)Sum up all the records related to a single person
d)Calculate square root of all the daily-typing-pages.
e)Fetch year from database.
11)Explain group by clause with suitable example.
12)Explain Having clause with example.
13)Explain joins in SQL with examples.
14)Explain set operations with examples.
15)Explain any four string functions with examples.
16)Explain any four string functions.
17)Explain any four date function with example.
18)Explain any four Aggregate functions with example.
19)Explain views with example.
20)What is Sequence?
21)Define Sequence.
22)Explain sequences with example.
23)What are sequence? Why it is used?
24)Create sequence for student table.
25)Explain Index.
26)Write syntax for : Create index.
27Write syntax for drop index.
6 MARK QUESTIONS:
1)Consider the following schema Depositor (ACC_no, Name,
PAN, Balance) Create a view on Depositor having attributes
(ACC_no, PAN) Where balance is greater than 100000.
2)Create a sequence
Sequence name is seq_1, Start with1, increment by1,
minimumvalue1, maximum value 20.
Use a seq_1 to insert the values into table Student (ID
Number(10), Name char(20); change the seq_1 max value 20 to
50. Drop the sequence.
UNIT NO:04 PL/SQL PROGRAMMING
2 MARKS QUESTIONS:
1)Draw the block structure of PL/SQL.
2)List advantages of PL/SQL
3)Define cursor? List the two types of cursor.
4)What is cursor?
4 MARKS QUESTIONS:
1)What are the various data types of PL/SQL?
2)What are the various control structure statements used in
PL/SQL?
3)Explain conditional control in PL/SQL with example.
4)Write a PL/SQL block to print given number only if it is greater
than 100.
5)Write a PL/SQL block to accept total marks and obtained
marks print ‘successful’ if student passes.(assume passing
above 35%)
6)Write a PL/SQL block to check given number is greater than
100 or not.
7)Write a PL/SQL block to accept total marks and obtained
marks and cutoff percentage. Print ‘successful’ if student passes
otherwise print ‘unsuccessful’(assume passing above 35% of
marks).
8)Write a PL/SQL block to generate 10 odd numbers using Basic
loop.
9)Create table part details then write a PL/SQL block to insert
10 rows to part_details table which have part_id accepted by
user and its sequential(i.e. 1 to 10) subparts_id .
10)Explain for loop in PL/SQL with example.
11)Explain while-loop in PL/SQL with example.
12)Explain GOTO statement with example.
13)Describe exception handling in brief.
14)Write a PL/SQL program which accept the customer ID from
the user if user enters an invalid ID then the exception
invalid_id is raised using exception handling.
15)Explain implicit cursors with example.
16)Write step by step syntax to create , open and close cursor
in PL/SQL block.
UNIT NO: 5 DATABASE ADMINISTRATION
2 MARK QUESTIONS:
1)Draw transaction state diagram.
4 MARK QUESTIONS:
1)Write syntax for creating USER with suitable example.
2)Explain privileges.
3)Enlist the privileges with suitable example.
4)Write a short note on:
a) Ownership Privileges
b) Object Privileges
c) System Privileges
5)Write syntax for GRANT privileges.
6)Write a short note on Revoking of Privileges.
7)What is Viewing Privileges? Write syntax with example.
8)What is transaction? Explain concept of transaction using
example.
9)What is transaction? Explain concept of transaction using
example.
10)Explain ACID properties of transaction.
11)Explain states of transaction with neat diagram.
12)Draw transaction state diagram.
13)Describe state of transaction with neat diagram.
14)Explain system failure classification.
15)Explain various types of system failure.
16)Explain concept of database recovery and also explain the
techniques.
17)Explain concept of log and log based recovery algorithm.
18)Explain Deffered log based in detail.
19)Explain Immediate log base in detail.
20) Explain concept of checkpoint with suitable example.
21)Explain concept of shadow paging.
22)Difference between data warehouse and data mart.
23)Explain Data lake in details.
24)What is Big Data? Explain its significance in today’s world.
25)What are the different characteristics of Big Data?
26)Describe the 3V’s of Big Data.
27)Comparison Between MangoDB and RDBMS.