
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
- Use your ERD to define the table structures in the
database using SQL DDL commands to build your schema.

Transcribed Image Text:Buyer
Employer
Agreement
PK buyer_user_id
PK employer code int
PK agreement number int
FK1 employer_code int
employer_name varchar
FK1 contractor_details int
buyer_name varchar
employer_address varchar
agreement_description int
Sales
employer_phone int
buyer_address varchar
PK sale number
buyer_phone int
FK1 buyer_user_id int
account_number int
FK2 property_id int
credit_score int
FK3 agent_id int
Architecture
Contractor
buyer_occupation varchar
FK4| agreement_number
PK style_id int
buyer_salary int
PK contractor id
architecture_name varchar
contractor_name varchar
description
contractor_address varchar
contractor_phone int
Properties
PK property_id
Employee
style_id int
Agents
PK employee id
parcel_number int
PK| agent id int
employee_name varchar
property_address varchar
property_id int
employee_address varchar
agent_name varchar
room_numbers int
employee_phone int
agent_address varchar
purchase_amount int
employee_position varchar
purchase_date varchar
agent_phone int
market_value int
square_feet int
Expert Solution

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

Knowledge Booster
Similar questions
- By the use of a select operation, a relational database may reduce the number of columns in a table that meet the specified conditions.Which is it: correct or incorrect?arrow_forwardExplain the concept of referential integrity constraints and how they maintain data consistency in a relational database.arrow_forward1. Write a database description for each of the relations shown, using SQL DDL (shorten, abbreviate, or change any data names, as needed for your SQL version). Assume the following attribute data types: StudentID (integer, primary key) StudentName (25 characters) FacultylD (integer, primary key) FacultyName (25 characters) CourselD (8 characters, primary key)arrow_forward
- Hi, For this proble I need to create a table called instructor_course_nums within a university database schema. 1. I need to write a procedure that accepts an instructor ID as input. The procedure calculates the total number of course sections taught by that instructor, and adds a tuple to the instructor_course_nums table consisting of the instructors ID number, name, and total courses taught - call these attributes: ID, name, and tot_courses. 2. If the instructor already has an entry in the table, then the procedure makes sure the total number of courses taught in the instructor_course_nums table is up-to-date. Here is what I have that answers the first part of the question: CREATE TABLE instructor_course_nums ( id varchar (10), name varchar (30), tot_courses integer, CONSTRAINT instructor_course_nums_pkey PRIMARY KEY (id)); CREATE OR REPLACE PROCEDURE Student_00_insCourseNumsProc(ID varchar(10), name varchar (25), tot_courses…arrow_forwardSUBJECT/TOPIC: MySQL Database Management System (xampp) PLEASE ANSWER THIS WITH COMPLETE EXPLANATION AND SOLUTION. ASSESSMENT TASK MySQL Database Management System (xampp)arrow_forwardA concise explanation of the many reasons why the use of tables in database design is a good idea could be of some use. Would you mind providing a brief remark on the subject of NULL?arrow_forward
- EMPLOYEE Frame Minit Lname Sen Bdate Address Sex Salary Super sen Dno +444 DEPARTMENT Dname Dnumber Mor an Mgr start date DEPT LOCATIONS Dnumber Dlocation PROJECT Prame Prumber Plocation Dnum WORKS ON Ennn Pno Hoir Hours DEPENDENT Esen Dependent name Se Bdate Relationship Reforential integrity constraints displayed on the COMFWNY relational database schema. One possible database state for the COMPANY relational database schema. EMPLOYEE Fname Minit Lname John Frankin T Sex Salary 30000 333445555 5 M 40000 Jo00665555 F 25000 Joe7e54321 43000 J88Ge5556 San Bdate Address Super en Dno 123456789 1965-01-09 731 Fondren, Hounton, TX M 333445555 1955-12-08 638 Voas, Houston, TX Go0087777 1960-01-19 3321 Castle, Spring. TX 987654321 1941-06-20 291 Berry, Bellaire, TX Narayan 666884444 1962-09-15 975 Fire Oak, Humibile, TX M B Smith Wong Zelaya Wallace 5 Alicia 4 Jennifer F 38000 333445655 25000 333445555 M 25000 007654321 M 55000 NULL Ramesh English 453453453 1972-07-31 5631 Rice, Houston, TX F…arrow_forwardAssume the e-commercial database shown in the Appendix. Write the following queries in (a) relational algebra and (b) SQL. State your assumptions if the semantics is not clear. 1) Find the names of all students who have not taken any courses. APPENDIX STUDENTS(student id, first_name, last _name, email, major_code, class_year) COURSES(course id, course_name, course_description, credits, department_code) ENROLLMENTS(student id, course id, semester, grade) MAJORS(major code, major_name, department_code) DEPARTMENTS(department code, department_name)arrow_forwardPrepare a MySQL script that creates your database, tables, and inserts a small sampling of madeupdata. Test it out in MySQL before submission For the below diagram write the SQL queriesarrow_forward
- What exactly is an index? What are the benefits and drawbacks of utilising indexes? How do you make an index with SQL?arrow_forwardI NEED HELP WITH THIS QUESTION FOR MY DATABASE MANAGEMENT Edit Question I NEED HELP WITH THIS QUESTION FOR MY DATABASE MANAGEMENT CLASS. How would you add PK to a table, without dropping it, for which no PK was declared with Create.arrow_forwardOutlining the SQL Environment's architecture and its constituent pieces is crucial.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
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