2024 Jan. ITT206-F
2024 Jan. ITT206-F
:_______________ Name:__________________________
0200ITT206122301
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fourth Semester B.Tech Degree (S, FE) Examination January 2024 (2019 Scheme)
Page 1 of 4
0200ITT206122301
specific doctor. Every doctor has a unique ID, name, and specialty. Patients are
identified uniquely by their ID and name. Medical records capture details such as
the date of visit, diagnosis, prescribed medications, and tests conducted. Design an
ER Diagram that captures these entities and their relationships
b) Discuss the challenges associated with translating an ER diagram into an actual 6
database schema
12 a) Students can enroll in multiple courses. Each course possesses a unique code, a 8
title, and is instructed by a specific instructor. Instructors are uniquely identified
by an ID and have a name; they can conduct multiple courses. Students, on the
other hand, have unique identifiers by their IDs and names. Design an ER Diagram
that captures the relationships and entities present in this university registration
context.
b) Explain the 3-Schema architecture of the database system with the help of a neat 6
diagram.
Module -2
13 a) Consider the following relational database schema consisting of four relational 8
schemas:
student(sid, sname, major, year)
course(cid, cname, credits, instructor)
enrollment(sid, cid, semester, grade)
Answer the following questions using relational algebra queries:
i) Retrieve the names of students who are enrolled in at least one course during the
current semester.
ii) Identify the names of students who have not enrolled in any courses for the
current academic year.
iii) Find the names of instructors teaching courses that have more than 50 enrolled
students in the spring semester.
iv) List the details of courses that are offered in both the spring and fall semesters
of the academic year.
b) Define the main operations in relational algebra: select, project, union, set 6
difference, and join. How do these operations help in retrieving and manipulating
data in a relational database?
14 a) Consider the E-R diagram in the Figure below, which models an online bookstore. 8
Page 2 of 4
0200ITT206122301
b) Using a practical example, illustrate how the relational algebra operation "join" 6
combines two relations based on a common attribute. Highlight the types of joins,
such as inner join, outer join, and their significance.
Module -3
15 a) Consider an e-commerce platform's database that maintains an Inventory table to 8
track product stock levels. You are tasked with ensuring that whenever the stock
count of any product in the Inventory table drops below 20 units, an automated
alert is sent to the system administrator. Design a trigger named
NotifyAdminLowStock for a database system. This trigger should be activated
whenever the stock count of any product in the Inventory table drops below 20
units. Once triggered, the system should send an alert notification to the system
administrator, notifying them of the low stock situation. Provide the SQL code for
creating this trigger and ensure to explain each component of your code to
demonstrate its functionality.
b) Explain how database triggers can be used to enforce data integrity rules. 6
Page 3 of 4
0200ITT206122301
Page 4 of 4