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

Model MidTerm QBank DBMS

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Question Bank /Model Question paper with Units

KARNAVATI UNIVERSITY
UNITEDWORLD SCHOOL OF COMPUTATIONAL INTELLIGENCE
Mid Semester Examination-October-2022, ODD Semester, (AY 2022-23)
[Programme: B.Tech./B.Sc. (Hons.).] [Semester: III] [Batch: 2021]
1. Explain the differences between file system and Database system Unit1 08

2. Sketch a neat diagram on overall system architecture of database and Explain in detail. Unit1 08
Write SQL Query to find the following:

1. To find the name of the employee whose salary is first and second highest salary
from Employee Unit1 08
3.
 SELECT MAX(SALARY) FROM EMPLOYEE;
 SELECT MAX(SALARY) FROM EMPLOYEE WHERE SALARY<(SELECT
MAX(SALARY) FROM EMPLOYEE);
2. To create new table called Employee_Struct with same structure and data of
Employee table?
CREATE TABLE EMPLOYEE_STRUCT SELECT * FROM EMPLOYEE;
3. To display first 50 records out of 100 records from Employee table
SELECT * FROM EMPLOYEE
LIMIT 50;
4. To display all odd records of the Student table
SELECT * FROM STUDENT
WHERE id IN(SELECT id FROM STUDENT WHERE id%2 = 0);

Draw an ER diagram for the situation given below : "In a University many employees are
working on different schools. Head of the department holds the responsibility of the
4. department to float courses to the students of admitted for a programme. Prepare suitable Unit2 08
choices of the attributes for the entities, identified by you for your ER. diagram. Transform
your ER diagram into a Relational Database.
Consider following schema and represent given statements in relational algebra form.
Branch(branch_name,branch_city)
Account(branch_name, acc_no, balance)
Depositor(Customer_name, acc_no) Unit2 08
5.
( i ) Find out list of customer who have account at ‘BSC’ branch.
Select *from tablename where branchname like’BSC%’;

( ii ) Find out all customer who have account in ‘Gandhinagar’ city and balance is
greater than 5,000.
Select *from tablename where branch_city like’Gandhinagar%’;

(iii) find out list of all customer name with their balance.
Select Customer_name, balance from tablename;

Why do we do normalization of databases? Discuss synthesis and decomposition Unit2 08


6.
approaches of normalization. Give one example for each approach.
7. Explain ACID properties and Illustrate them through examples? Unit3 08
Why do we need for concurrency control in transaction management system? Explain with 08
8. Unit3
the techniques.

You might also like