Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

7.assignment - DBMS 2024 2025

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Sal Engineering & Technical Institute

CE, IT, CSE & ICT Department


Database Management System (3130703)

Assignment-1 (Write any 5 Questions)


1) Describe various disadvantages of file system compare to Data base management 7
system.
2) Briefly explain purpose and applications of DBMS 7

3) Discuss the role of Database Administrator (DBA) 7

4) Define database. Explain the three level architecture of DBMS 7

5) Define: (1) Primary key (2) Foreign key (3) Unique Key (4) Not null (5) Commit (6) 7
Candidate key (7) Rollback
6) What is Relational Algebra? Define Relational Algebra Operation cross product 7
with example
7) What is join? Explain various type of joins with example 7

8) Explain generalization and specialization in ER diagram with suitable example 7

Assignment-2 (Write any 5 Questions)


1) Draw ER diagram for Library Management System 7

2) What is Functional Dependency? Explain non-loss decomposition 7

3) What is normalization? Explain 1NF, 2NF, 3NF, 4NF, 5NF and BCNF 7

4) Explain method of query optimization and steps of query evaluation 7

5) Discuss various steps of query processing with proper diagram 7

6) Define Transaction. Explain the transaction properties and transaction states 7

7) Explain Indices, B-trees, hashing 7


8) What is a transaction? Explain ACID properties of Transaction with suitable 7
example

Assignment-3 (Write any 5 Questions)


1) Explain SQL injection with an example. 7

2) Explain Two phase commit protocol? Explain conflict serializability and view 7
serializability
3) What is concurrency? What are the three problems due to concurrency? How the 7
problems can be avoided, explain for one of the three problems
4) Explain the Immediate Database modification Log Based Recovery method with an 7
appropriate example. Explain role of check point in Log base
5) Explain system recovery procedure with check point record 7

6) What is deadlock? Explain deadlock detection and prevention policies 7

7) Define Locking. Explain two phase locking protocol 7

Assignment-4 (Write any 5 Questions)


1. What is security of data? Illustrate Data encryption with an appropriate example 7

2. Explain the difference between Discretionary access control and mandatory access 7
control
3. Describe GRANT and REVOKE commands. State the differences between 7
COMMIT and ROLLBACK commands
4. Explain DDL,DML,DCL with example. Discuss aggregate functions with 7
example(s).
5. What is a view? What are its types? Write the syntax for creating a view 7

6. Define PL/SQL. Write PL/SQL block to print sum of even numbers 7

7. Write a note on stored procedure with suitable example. Cursor and trigger with 7
syntax and example.
Assignment-5 (Write any 5 Questions)

1. Consider the relation scheme R = {E, F, G, H, I, J, K, L, M, M} and the set of


functional dependencies
{{E, F} -> {G}, {F} -> {I, J}, {E, H} -> {K, L}, K -> {M}, L -> {N} on R.
What is the key for R?
2. Consider a relation scheme R = (A, B, C, D, E, H) on which the following
functional dependencies hold: {A–>B, BC–> D, E–>C, D–>A}. What are the
candidate keys of R?( Any 1 in case of more than one candidate key
3 Consider the following relational database schema consisting of the
. four relation schemas:
passenger ( pid, pname, pgender, pcity)
agency ( aid, aname, acity)
flight (fid, fdate, time, src, dest)
booking (pid, aid, fid, fdate)
Answer the following questions using relational algebra queries.
a. Get the details about all flights from Chennai to New Delhi.
b. Get the complete details of all flights to New Delhi.
c. Find the passenger names for passengers who have bookings on at least
one flight.
4 Write the following queries in relational algebra:
. (1) Find the names of suppliers who supply
some red part.
(2) Find the IDs of suppliers who supply some
red or green part.
5 Write Relational Algebra syntax for the following queries.
. Employee(eno,ename,salary,designation)
Customer(cno,cname,address,city)
1) Find out name of employees who are ‘Manager’.
2) Display name of customers.
3) Retrieve Employee records whose salary is less than 20,000.
6 Write Relational Algebra syntax for the given queries using the
. following database.
Employee(eno,ename,salary,designation)
Customer(cno,cname,address,city)
1) Find out name of employees who are also customers.
2) Find out name of person who are employees but not customers.
3) Display all names who are either employees or customers.
7 What is the limitation of index-sequential file? Explain with example
. how B+tree overcomes it.

Prof. Shivani Doshi Prof. Madhuri Parekh Prof. Sachi Bhavsar

Prof. Namrata Patel Head CE & CSE Dept Head IT & ICT Dept

Assistant Professor,SETI SETI SETI

You might also like