0% found this document useful (0 votes)
18 views3 pages

Question Paper1-Format-B.E 2023-24-NEP Batch

This document outlines the examination structure for the Database Management System course at The National Institute of Engineering, Mysuru, including various questions related to DBMS concepts, relational algebra, normalization, SQL queries, and transaction management. The exam consists of multiple sections, each focusing on different aspects of database systems, with specific tasks and examples provided for students to demonstrate their understanding. The total marks for the examination is 100, and students are required to answer all questions.

Uploaded by

prakharsinha063
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views3 pages

Question Paper1-Format-B.E 2023-24-NEP Batch

This document outlines the examination structure for the Database Management System course at The National Institute of Engineering, Mysuru, including various questions related to DBMS concepts, relational algebra, normalization, SQL queries, and transaction management. The exam consists of multiple sections, each focusing on different aspects of database systems, with specific tasks and examples provided for students to demonstrate their understanding. The total marks for the examination is 100, and students are required to answer all questions.

Uploaded by

prakharsinha063
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

USN

THE NATIONAL INSTITUTE OF ENGINEERING, MYSURU – 8


(An Autonomous Institute Affiliated to VTU, Belagavi)

Fourth Semester B.E. Degree Examination, July / Aug - 2024

BCS403 Database Management System

Time: 3 Hrs Max. Marks: 100


Note: Answer all the questions.
Q. No. Cognt. COs Questions Marks
Level
1.a) L2 CO1 Define DBMS. Explain any six advantages of Database System over 7
File System
b) L2 CO1 Explain High level Conceptual data models for database design with 8
a neat diagram.
c) L2 CO1 Explain any five types of Attributes with examples. 5

2.a) L3 CO2 Explain the different types of update operations on relational 6


database. Demonstrate with an example of violation referential
integrity constraint in each of the update operations.
b) L3 CO2 Consider the following tables : 10
Students (student_id, student_name, major)
Courses (course_id, course_name, department)
Enrollments (student_id, course_id, grade)
Professors (professor_id, professor_name, department)
Teaches (professor_id, course_id, semester)
Give the Relational Algebra expression for the following.
i)List the names of all students who are enrolled in at least one course.
ii)Find the names of all professors who teach in the 'Computer
Science' department.
iii)Get the names of all students who have received an 'A' grade in
any course.
iv)Find the names of students who are enrolled in courses taught by
'Professor Smith'.
v)Retrieve the names and departments of all professors who do not
teach any course in the 'Fall 2023' semester.
c) L2 CO2 Describe the different Characteristics of Relations. 4
OR
2.d) L3 CO2 Given the Schema: 10
Books(book_id, title, author_id, genre, price)
Authors(author_id, author_name, nationality)
Publishers(publisher_id, publisher_name, location)
BookOrders(order_id, book_id, quantity, order_date)
Customers(customer_id, customer_name, email, city
Give the Relational Algebra expression for the following.
i)List the titles and prices of all books in the 'Mystery' genre.
ii)Find the names of authors who have written books published by
'Penguin Books'.
iii)Get the titles and order dates of books ordered by customer 'Alice'
in the year 2023.
iv)Retrieve the names and nationalities of authors whose books have
been ordered more than 100 times.
v)Find the names of customers who have placed orders for books
written by 'Stephen King'.
e) L2 CO2 Given the following ER diagram description, convert it into a 10
relational schema using the ER-to-Relational mapping algorithm.
Clearly describe each step of the algorithm and Draw the resulting
relational schema with primary and foreign keys.
Entities:
Student: Attributes: student_id (primary key), student_name, major
Course: Attributes: course_id (primary key), course_name, credits
Professor: Attributes: professor_id (primary key), professor_name,
department_id
Department: Attributes: department_id (primary key),
department_name
Relationships:
Enrolls: Between Student and Course. Attributes: grade
Teaches: Between Professor and Course. Attributes: semester
Advises: Between Professor and Student. No attributes

3.a) L2 CO3 Consider a relational database designed to store information about 10


students, courses, and enrollments. The database schema includes the
following relations:
Students(student_id, student_name, address, date_of_birth)
Courses(course_id, course_name, department, credits)
Enrollments(student_id, course_id, semester, grade)
1)Explain the concept of database normalization. Why is
normalization important in database design? Discuss the goals of
normalization.
2)Identify and explain the functional dependencies present in the
provided relations. Based on these dependencies, identify which
normal form each relation currently satisfies. Justify your answer.

b) L3 CO3 Consider the Relational Schema 6


Customers(C_Id, company, First, Last, street, city, state, Zip, Tel)
Orders(O_id, C_id, O_date, ship_date, shipping,tax)
Books(ISBN,Title,Price,Authors,Pages,Pubdate,Qty)
Order_info(O_id,ISBN,Qty,price)
Write SQL queries to
i)List all the ISBN for which an order is placed by customer
ii)Retrieve the number of times each customer has placed an order
iii) Retrieve those books which has ‘D’ as the first character in title
and which was published in the year 2019.
c) L3 CO Write an example query for Delete and Update operation on a 4
Relation.
OR
d) L3 CO3 Consider the relation scheme R = {E, F, G, H, I, J, K, L, M, N} and 5
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?
e) L2 CO3 Explain Third Normal Form with an example. 5
f) L3 CO3 Consider a relational database schema for a small bookstore with the 10
following tables:
Books(book_id, title, author_id, genre, publication_year, price)
Authors(author_id, author_name, nationality)
BookOrders(order_id, book_id, customer_id, order_date, quantity)
Write SQL queries to perform the following tasks.
1. Retrieve the titles of all books published after the year 2000. Sort
the titles alphabetically.
2. Find the total number of books in each genre. Sort the result by
the number of books in descending order.
3. Increase the price of all books by 5%.
4. Retrieve the author names of the book ‘database’
5. Retrieve the Book details for which the price is less than 200 Rs.

4.a) L3 CO4 Consider a relational database for an online shopping platform with 6
the following tables:
Customers(customer_id, customer_name, email, total_orders)
Orders(order_id, customer_id, order_date, total_amount)
Write a SQL statement to create a trigger that automatically updates
the total_orders column in the Customers table whenever a new
order is inserted into the Orders table. Explain its components
b) L3 CO4 Consider a relational database schema for a company's human 6
resources department:
Employees(employee_id, employee_name, department_id, salary,
hire_date)
Departments(department_id, department_name, manager_id)
Salaries(employee_id, salary_amount, effective_date)
Write SQL statement to create a view that shows the current salaries
of all employees, including their names and departments
c) L3 CO4 Explain different transaction States. Write an SQL command to set 8
the transaction isolation level to Read Committed.

5.a) L3 CO5 Illustrate the deadlock problem in transactions with an example 6

b) L3 CO5 Explain Timestamp Ordering algorithm with an example. 7

c) L3 CO5 Write MongoDB basic queries using CRUD operations. 7


---***---

You might also like