0% found this document useful (0 votes)
22 views

Assignment II

This document contains questions from a database management systems assignment. It includes questions about writing SQL queries on sample tables, constructing entity-relationship diagrams based on requirements, and analyzing relational schemas and functional dependencies based on given information. The questions cover topics related to SQL, ER modeling, functional dependencies, and BCNF normalization. The document provides context for 5 questions to be answered as part of the assignment.

Uploaded by

soesettlynn2003
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Assignment II

This document contains questions from a database management systems assignment. It includes questions about writing SQL queries on sample tables, constructing entity-relationship diagrams based on requirements, and analyzing relational schemas and functional dependencies based on given information. The questions cover topics related to SQL, ER modeling, functional dependencies, and BCNF normalization. The document provides context for 5 questions to be answered as part of the assignment.

Uploaded by

soesettlynn2003
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Faculty of Information Science, UCSY

Paper No: IS-201


Fundamental Database Management System

The scope of this assignment is chapter 3, 4, 6 and 7, Database System Concepts.

Roll Number : YKPT-

Question 1. In a given database, write the following queries in SQL.


Suppliers (sID, sName, address)
Parts (pID, pName, colour)
Catalog (sID, pID, price)

(a) Find the names of all red parts.


Answer:

(b) Find all prices for parts that are red or green.
Answer:

(c ) Find the sIDs of all suppliers who supply a part that is red or green.
Answer:

(d) Find the names of all suppliers who supply a part that is red or green.
Answer:

( e) Change the supplier’s address MDY to YGN.

Answer:
Question 2. Support you are given the following requirements for a simple database for
the national Hockey. The Hockey has many teams

- Each team has a name, a city, a coach, a captain, and a set of players,
- Each player belongs to only one team
- Each player has a name, a position (such as left wing or goalie), a skill level, and a
set of injury records
- A team captain is also a player
- A game is played between two teams (referred to as host_team and guest_team) and
has a date (such as May 11th, 2020) and a score (such as 4 to 2).
Construct a clean and concise ER diagram for the Hockey database

Question 3. Construct an E-R diagram for the student's enrollment with a set of student,
courses and a set of instructors. Use appropriate relationship set based on cardinality of
each entity
Support you are given the following requirements for a simple database for university:
- Courses, including number, title, credits, syllabus, and prerequisites.
- Course offerings, including course number, year, semester, section number,
instructor(s), timings, and classroom.
- Students, including student_id, name, and program;
- Instructors, including identification number, name, department, and title.
- Instructor teaches courses.
- Student enrolls in courses
- Grades awarded to students in each course they are enrolled

Question 4. Consider the following relational schema and functional dependencies.


R (A, B, C, D, E)
F {A->B, C->D, C->E, AC->BD}
Answer the following questions.
(a) Are there any trivial functional dependencies?
(b) Can we transitively determine any functional dependencies?
(c) What is the closure of the left hand side if each functional dependencies?
(d) Are there any BCNF violating functional dependencies?

Question 5.Consider the following relational schema and functional dependencies.


instructor {id, name, dept, course, sec}
F {idname, deptcourse, deptsec, id,deptname,course}
Answer the following questions.
(e) Are there any trivial functional dependencies?
(f) Can we transitively determine any functional dependencies?
(g) What is the closure of the left hand side if each functional dependencies?
(h) Are there any BCNF violating functional dependencies?
Remark:
1) Fill your roll number on the top-right corner of this sheet.
2) Write down your answer on this sheet and submit to moodle assignment test.
3) Submission dead line is 14.3.2024 (Thursday).
4) This is individual assignment, so, write your own answer. The copied answer will be
rejected.

You might also like