KONGU ENGINEERING COLLEGE, PERUNDURAI, ERODE – 638 060
CONTINUOUS ASSESSMENT TEST - I January 2025
Roll Number………………..
Programme : [Link] Date :
Branch : Software Systems Time :
Semester : IV
Course Code : 22IST42 Duration : 1 ½ Hours
Course Name : Database Management Systems Max Marks : 50
PART-A (10X2=20 Marks)
Answer all questions
1. Compare file system and database system. [CO1,K2]
2. Infer data consistency. [CO1,K2]
3. Interpret the levels of data abstraction. [CO1,K2]
4. Classify schema in relational database. [CO1,K2]
5. Categorize database models. [CO1,K2]
6. Infer the integrity constraints in relational database. [CO1,K2]
7. Consider the employee database, Give an expression in the relational algebra to [CO1,K3]
express the following query:
employee (ID, person name, street, city) works (ID,company name, salary)
company ( company name, ity)
Find the name of each employee who lives in city Miami.
8. Compare union and union all with suitable example. [CO2,K2]
9. Find the names of student whose substring is ‘an’ from student table. [CO2,K3]
10. Write a SQL query to find all courses taught in the Fall 2017 semester, but not in [CO2,K3]
the Spring 2018 semester in courses table.
Courses(course_id, name, semester, year)
PART-B (3X10=30 Marks)
Answer any Three Questions
11. a) Summarize the operations of relational algebra. (5 Marks) [CO1,K2]
b) Illustrate the database architecture. (5 Marks) [CO1,K2]
12. Consider the employee database and use the relational algebra to express the
following queries:
employee (ID, person name, street, city) works (ID, company name, salary)
company (company name, city)
a) Find the name of each employee who lives in city Miami. (2)
b) Find the name of each employee whose salary is greater than $100000. (2)
c) Find the name of each employee who lives in Miami and whose salary is
greater than $100000. (2)
d) Find the ID and name of ea h employee who does not work for BigBank. (2)
e) Find the ID and name of ea h employee who earns at least as mu h as every
employee in the database. (2)
13. Consider the bank database, where the primary keys are underlined. Construct [CO2,K3]
the following SQL queries for this relational database.
branch(branch name, branchcity, assets)
customer (ID, customer name, customer street, customercity)
loan (loan number, branch name, amount)
borrower (ID, loan number)
account (account number, branch name, balance )
depositor (ID, account number)
a) Find the ID of each customer of the bank who has an account but not a loan.
(2)
b) Find the ID of each customer who lives on the same street and in the same
city as customer 12345. (3)
c) Find the name of each branch that has at least one customer who has an
account in the bank and who lives in Harrison. (3)
d) Find the number for customers in each branch. (2)
14. Consider Library database. [CO2,K3]
member(memb_no,name,age)
book(isbn,title,authors,publisher)
borrowed(memb_no,isbn,date)
a) Print the names of members who have borrowed any book published by
“McGraw-Hill” (2)
b) Print the names of members who have borrowed all books published by
“McGraw-Hill” (3)
c) For each publisher print the names of members who have borrowed more
than five books of that publisher. (3)
d) Print the average number of books borrowed by each member. (2)
Blooms Rememberin Understanding Applying Analyzing Evaluating Creating
Taxonomy g [K2] [K3] [K4] [K5] [K6]
[K1]
% - 40 60 - - -