Question

3.1 (12) Transform the following ER diagram into a relational schema diagram. Semester Year Cno Title SecNo Term --- ssn Name

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Below are the tables .

1.Table Name :Teacher
create table Teacher(
ssn int primary key,
Name varchar(20));

2.Table Name :Course
create table Course(
cno int primary key,
Title varchar(20));

3.Table Name :Section
create table Section(
SecNo int ,
Semester varchar(20),
Year int,
ssn int ,
cno int,
primary key (SecNo,ssn,cno),
foreign key (ssn) references teacher(ssn),
foreign key (cno) references course(cno));

Add a comment
Know the answer?
Add Answer to:
3.1 (12) Transform the following ER diagram into a relational schema diagram. Semester Year Cno Title...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Part I. Mapping an (E)ER schema to a relational database schema (46 points) NOTE o Each...

    Part I. Mapping an (E)ER schema to a relational database schema (46 points) NOTE o Each relation sachem should have a primary key (PK) when you answer. • To present the reference table of the foreign key (e.g., FK, FK1, K2), use an arrow. Do not use the relationship cardinality symbols of crow's foot notation in the relational database schema. o It is not required to specify the domain constraint (e.g., data type and length) of each attribute. 1. (12...

  • You are given the following relational schema (keys bolded): Employee(SSN, Name) Faculty(SSN) (Faculty(SSN) references Employee(SSN)) Staff(SSN,...

    You are given the following relational schema (keys bolded): Employee(SSN, Name) Faculty(SSN) (Faculty(SSN) references Employee(SSN)) Staff(SSN, ManagerSSN) (Staff(SSN) references Employee(SSN); Staff(ManagerSSN) references Staff(SSN)) Student(PersonNo, Name) Course(CourseNo, Title) Offering(CourseNo, Semester, InstructorSSN, Credit) (Offering(CourseNo) references Courses(CourseNo); Offering(InstructorSSN) references Faculty(SSN)) Enrolls(CourseNo, Semester, PersonNo, Grade) (Enrolls(CourseNo, Semester) references Offering(CourseNo, Semester); Enrolls(PersonNo) references Student(PersonNo)) ---------------------------------------------------------------------------------------------------- Decompile the above schema into an E-R schema representing the same information.

  • covert the er diagram to a relational database schema The following ER diagram represents ships. Ships...

    covert the er diagram to a relational database schema The following ER diagram represents ships. Ships are said to be sisters it they designed from the same plans. Convert the diagram to a relational database schema.

  • Question 5: ERD and Relational Schema 10 marks Figure 1 shows an ER diagram for a...

    Question 5: ERD and Relational Schema 10 marks Figure 1 shows an ER diagram for a university dining services organization that provides dining services to a university. 1- Transform the diagram to a set of relations and develop a relational schema (5 marks) Find the functional dependencies in the relations and determine their normal forms (5 2- marks) MENU EVENT Served at Event ID Menu ID Event Location Menu Description Event Time Menu Type Contains Supervises DISH WORK SCHEDULE STAFF...

  • Consider following relational database schema and translate the queries ‘a’ and ‘b’ into relational algebra expressions...

    Consider following relational database schema and translate the queries ‘a’ and ‘b’ into relational algebra expressions Teacher(ID, Name, Designation, Phone, Address) Course(CourseCode, CourseName, CreditHour) Taught(TeacherID, CourseCode, Semester) a. SELECT Name, Address FROM Teacher, Taught WHERE Teacher.ID=Taught.TeacherID and CourseCode=’IT344’ b. SELECT CourseName FROM Course, Taught WHERE Course.CourseCode=Taught.CourseCode and TeacherID=200

  • 2. The following figure shows an ER schema for a university database. a) Map this schema...

    2. The following figure shows an ER schema for a university database. a) Map this schema into a relational schema b)Show the SQL statements needed to create the relations, using proper constraints. If your translation cannot capture any constraints in the ER diagram, explain why. COffice CName CPhone COLLEGE 0. 1 D Rank Office IName IPhone INSTRUCTOR D EAN (0.NO CStartDate (0.1) <ADMINS . CHIAR (1,1) EMPLOYS (MName FName LName (SName DOB DName Sid IO.NO Name Poate DEPT on H...

  • Part. II Please draw ER Diagram and write relational data model for the following business. 1....

    Part. II Please draw ER Diagram and write relational data model for the following business. 1. IT Training IT Specialists is a company to provide IT courses in programming, database development and Web applications. Business rules include: » Each course is identified by a unique course number (cNo) and other course attributes include: course name (cName), course description, pre-requirements . At least one and up to many sections can be offered by each course. » Each section is identified by...

  • This is how i mapped the relational schema diagram. would this be correct? i feel like...

    This is how i mapped the relational schema diagram. would this be correct? i feel like i am missing something. ud bundle at the start of the class on the due date. ment. 1. (10 pts) Use the ER-to-relational mapping algorithm to map the BANK ER diagram to a relational schema diagram. Prepare the diagram using ERDPlus and make sure to specify all primary keys and foreign keys. (Position the relations so that the arcs from the foreign keys to...

  • ER to Relational Mapping a) i) Reverse engineer the following schema to make an ER Diagram...

    ER to Relational Mapping a) i) Reverse engineer the following schema to make an ER Diagram A (), B (), C () B.a references A.a; C.ab references B.ab ii) EMP (, ename, supervisor, Dno), DEP (, dname) EMP.Dno referencesDEP.Dno; EMP.supervisor references EMP.ssn bold is underline.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT