Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Map the Below ER diagram to a relational database. Make sure you show the primary keys and map all the relationships. Part III

Map the Below ER diagram to a relational database. Make sure you show the primary
keys and map all the relationships.

 

 

Part III
Create queries demonstrating INSERT, CREATE, UPDATE, SELECT, and DESC for the following
data below. DO NOT CREATE TABLES IN ORACLE. Show Queries in word.
Database is Pensacola High School
Site(SiteID, SuborgID, Addr)
Staff(StaffID, FirstName, LastName, DOB, SiteID)
Student(StudentID, FirstName, LastName, Addr, SiteID)
Class (ClassID, ClassName, StaffID, StudentID, SiteID)

1. display a query displaying all students
2. display a query showing all classes for a student with an ID of 2.
3. display a query showing all Staff with name LIKE Smith.
4. display a query showing classes and student info for the student with ID of 5 and ClassID of 21.
5. display a query showing a class for student with ID of 5 and staffID of 7. Ensure to include
student.FirstName student.Lastname staff.firstName staff.lastName, StudentID, StaffID, ClassID
and ClassName. Hint use Inner Join query.

 

i have provided the answer to part 1

Screenshot 2023-02-28 105639.png 

Dssn D_Name D_Specialization D_Address D_Phone Doctors 1 Has N Dependents Pssn P_Name P_Phone P_Address 1 (1,N) Sees Patients DependentID Dependent Name InsuranceID 1 Has (0,N) Insurance P_Sex P_Age Insurance_Name Insurance Coverage

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

What is another technical term for a proportion?

Answered: 1 week ago

Question

1. Letters and diaries in history.

Answered: 1 week ago

Question

What is an n -ary relationship?

Answered: 1 week ago

Question

How does negentropy relate to biotic evolution?

Answered: 1 week ago