
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
Convert the diagram into a set of relational tables. The tables must be in 3NF. All referential integrity and functional dependencies must be indicated accurately in EITHER of the following 2 ways:
- Draw lines for referential integrity and for functional dependencies as belows.
1. Show referential integrity as follows:
Supplier(S#, Sname, City, Status);
Part(P#, Pname, Color, Weight, City);
SP(S#, P#, QTY)
Foreign key (S#) References Supplier,
Foreign key (P#) References Part;
2. Show functional dependencies as follows: B → C CD → E

Transcribed Image Text:Manager
Manager_ID
Manager_FName
Manager_LName
Manager_Phone#
Manager_Date_Joined
Manages
Employees
Courts
Employee_ID
Employee_FName
Employee_LName
Employee_Phone#
Employee_Date_Joined
Court_#
Referee
Assigned
includes
Shifts
Equipment
Shift_Date
Shift_Time
Equipment_Num
Equipment_Type
Customers
Customer_ID PK
Name
Reservations
Customer_FName
Customer_LName
Customer_Phone#
Customer_Date_Joined
Reserve_Date
Reserve_Time
Create-
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- a) Consider the following EER diagram. Map it to the relational model. Specify the relational schema in DBDL notation. b) Convert the following relational schema to BCNF (FD1, FD2 and FD3 are functional dependencies. CourseOffering(coId, courseId, semesterId, year, campus, courseName) Primary key (coId) Alternate Key (courseId, semesterId, year, campus) FD1: coId courseId, semesterId,arrow_forwardConsider the employee database of Figure 3.19. Give an expression in SQL foreach of the following queries. Give all managers of “First Bank Corporation” a 10 percent raise.arrow_forwardImplement a new independent entity phone in the Sakila database. Attributes and relationships are shown in the following diagram: The diagram uses Sakila naming conventions. Follow the Sakila conventions for your table and column names: All lower case Underscore separator between root and suffix Foreign keys have the same name as referenced primary key Write CREATE TABLE and ALTER TABLE statements that: Implement the entity as a new phone table. Implement the has relationships as foreign keys in the Sakila customer, staff, and store tables. Remove the existing phone column from the Sakila address table. Step 2 requires adding a foreign key constraint to an existing table. Ex: ALTER TABLE customer ADD FOREIGN KEY (phone_id) REFERENCES phone(phone_id) ON DELETE SET NULL ON UPDATE CASCADE; Specify data types as follows: phone_id, phone_number, and country_code have data type INT. phone_type has date type VARCHAR(12) and contains strings like 'Home', 'Mobile', and 'Other'. Apply…arrow_forward
- Consider the relations Courses1, Courses2, _Enrollment and Students. Courses1 Location cid cname Al Calculus LI A2 Algebra L2 A5 English L3 Student(sid, sname, age, level) Courses2 cid A5 BI B2 name English History b) Courses 1-Courses2 L3 L4 Computing L5 c) Courses Courses2 Classroom d) Courses1 Enrollment (1) Give the results of the following relational algebra expressions: a) Teid ( name='History' OR 'Computing (Courses2)) e) Enrollment / Teid (Courses1) Enrollment cid Al A5 sid 101 102 103 102 102 B1 Al A2 (2) Write the following query in Relational Algebra. a) Find the sids of students who have enrolled in _course Calculus. b) Find the names of students who have enrolled in course Calculus. _c) Find the names of students who have enrolled at least one course. d) Find the names of students who have enrolled in _Calculus or Algebra. e) Find the sids of students who have enrolled in all courses (both Courses1 and Courses2).arrow_forwardUse the following business rule to create a Crow's Foot ERD that can be implemented in the Relational Model. A CUSTOMER may rent many DVD's in a movie rental company and a DVD can be rented by many CUSTOMER's. Show the primary and foreign keys in your entities.arrow_forwardPlease draw an relational ERD with multiplicities and all the attributes based on following description: ( Please identify the primary key in each entity.) An Adult Education Department runs various courses during the daytime and evenings, and at different times of the year. For example, ‘Spanish level 1’ is offered on Monday mornings, Monday evenings or Wednesday evenings, and runs over 25 weeks from October to March. On the other hand, ‘Introduction to Digging Up Your Ancestors’ only runs for 8 weeks, but is offered on Tuesday or Wednesday evenings from October to December, January to March, and April to June, with an optional field week in August. There is always a maximum number of places for each course offering, which is dependent on the individual teacher. For example, ‘Spanish level 1’ on Monday evenings may be limited to 20 places, but on Wednesday evenings the limit may be 25. Each course offering is only taken by one teacher, however teacher may take…arrow_forward
- Consider the follow relations’ schemas to answer the following questions: Student (sid, name, level, address) Book(bid, title, author) BorrowedBook(sid, bid, date) 1) Assume that, there are 10,000 Student records stored on 1,000 pages/blocks, 50,000 Book records stored on 5,000 pages, 300,000 BorrowedBook records stored on 15,000 pages, and there are 500 different authors. Find out what is the record size for each of the previous relation?, and what is the blocking factor for each relation?arrow_forwardSuppose that A and B are two sets of entities connected by a relation R that has multiple one-to-one occurrences (see Figure 1). Think about a scenario in which R's generated connection is coupled with A's. SQL allows null values for attributes that are a part of a foreign key constraint. Give an example of how non-null constraints may be used in SQL to place a restriction on how much A can be involved in R.arrow_forwarda) Draw a 1NF dependency diagram. Based on the data in table above, identify all the functional dependencies, partial dependencies and transitive dependencies in order for the table to be in the first normal form (1NF).arrow_forward
- Informally describe the conditions to be met for a relation to be in Second Normal Form. In terms of functional dependency, describe why the following CUSTOMER_PURCHASE relation is not in second normal form. This table describes every instance of an individual Customer purchasing a Product. How would this relation suffer from Update Anomalies? CUSTOMER_PURCHASE (CUSTOMER_ID, PRODUCT_ID, PURCHASE_DATE, PURCHASE_AMT, PRODUCT_DESCRIPTION, CUSTOMER_NAME) Note the relation’s primary key is underlinedarrow_forwardConsider the following schema: Suppliers (sid, sname, city) Parts (pid, pname, color) Catalog (sid, pid, price) Write relational algebra expressions for the following queries: Find the sids of suppliers who supply every part. please don’t send the answer as a picture.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON

Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY