Assignment II
Assignment II
Assignment II
(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:
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