
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
With the following Object Oriented Relational
create type Person
(ID varchar(20) primary key,
name varchar(20),
address varchar(20)) ref from(ID);
(ID varchar(20) primary key,
name varchar(20),
address varchar(20)) ref from(ID);
create table people of Person;
create table students
( degree varchar (20))
inherits people ;
create table teachers
( salary integer )
inherits people ;
( degree varchar (20))
inherits people ;
create table teachers
( salary integer )
inherits people ;
a. |
id |
|
b. |
salary |
|
c. |
degree |
|
d. |
name |
Expert Solution

arrow_forward
Step 1
Actually, A relational database is a type of database that stores and provides access to data points that are related to one another.
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- Consider the following relational database schema: manages (employee_name: char (20), manager_name: char (20)) employee (employee_name: char (20), street: char (30), city: char(30)) works (employee_name: char (20), company name: char (15), salary: Integer) company (company_name: char(15), city: char(30)) Primary Keys are underlined. Foreign Keys are referenced to Primary keys using arrows. Write DDL SQL queries to create the 4 tables of this database. Do not forget to identify referential-integrity constraints that should hold and maintain .arrow_forwardin Access databases, What is the relationship between a table of Movies and a table of ActorsActresses and how might it be implemented in a relational database?arrow_forward2. The following relational schema form a university database which is implemented in a relational database: student (s_ID, s_name, semester, year) department(d_ID, d_name, floor) course (c_code, c_title, d_ID, credits) Write down the Relational Algebra for the following queries: a) Find your own name using your own registration number as the student ID. b) Show the ID and name of the department located at the floor number equals to the last digit of your own registration number. c) Find the codes and titles of the courses having credits more than 3 credits. d) Find the name of all students from your own semester and year.arrow_forward
- Design a relational database schema from the Car Sharing IS domain class diagram. Output should look like image number 2arrow_forwardConsider the following database scheme Employee (SSN, fname, lname, salary, deptno) Department (deptno, dname, total_salary) Where total salary is a derived attribute that represents the total salary of employees working in a specific department. Write a trigger to compute the total_salary in the event of inserting one or more new employee record(s) in the employee table.arrow_forwardWe have the following functional dependency A -> B. The following is a well-formed database design. MYTABLE (TheKey, A, B, C) True Falsearrow_forward
- Consider the following database scheme Employee (SSN, fname, lname, salary, deptno) Department (deptno, dname, total_salary) Where total salary is a derived attribute that represents the total salary of employees working in a specific department. Write a trigger to compute the total_salary in the event of inserting one or more new employee record(s) in the employee table.arrow_forwardIn what situations might "materialized views" be used in a database model?arrow_forwardConsider a database with the following schema: Person ( name, age, gender ) name is a keyFrequents ( name, pizzeria ) (name, pizzeria) is a keyEats ( name, pizza ) (name, pizza) is a keyServes ( pizzeria, pizza, price ) (pizzeria, pizza) is a key Write relational algebra/SQL expressions for the following:a. Find the names of all females who eat both mushroom and pepperoni pizza.b. For each person, find all pizzas the person eats that are not served by any pizzeria the personfrequents. Return all such person (name) / pizza pairs.c. Find all pizzerias that are frequented by only females or only males.arrow_forward
- Consider the following database instance. Table name: Students Primary key: sid Sid sname 7 Ricky 2 Ellen 6 MaryLou 4 Ellen Table name: Courses Primary key: cid cid cname 1 ICS 2 Finance Table name: Register Primary key: sid,cid Foreign key: sid references Students(sid) Foreign key: cid references Courses(cid) sid cid 7 2 2 2 7 1 4 1 5.1) For each of the following statements, show whether the statement is correctly executed or not (assume that the statements are executed in order, which means that if a statement is correctly executed, its effect is reflected in the following statement). If you say the statement is not executed, explain why. INSERT INTO Students VALUES (3, ‘Ellen’); INSERT INTO Students VALUES (6, ‘Ellen’); INSERT INTO Register VALUES (1, 2); INSERT INTO Courses VALUES (5, ‘Systems’); INSERT INTO Register VALUES (6, 5); INSERT INTO Register…arrow_forwardConsider the following database instance. Table name: Students Primary key: sid Sid sname 7 Ricky 2 Ellen 6 MaryLou 4 Ellen Table name: Courses Primary key: cid cid cname 1 ICS 2 Finance Table name: Register Primary key: sid,cid Foreign key: sid references Students(sid) Foreign key: cid references Courses(cid) sid cid 7 2 2 2 7 1 4 1 5.1) For each of the following statements, show whether the statement is correctly executed or not (assume that the statements are executed in order, which means that if a statement is correctly executed, its effect is reflected in the following statement). If you say the statement is not executed, explain why. INSERT INTO Students VALUES (3, ‘Ellen’); INSERT INTO Students VALUES (6, ‘Ellen’); INSERT INTO Register VALUES (1, 2); INSERT INTO Courses VALUES (5, ‘Systems’); INSERT INTO Register VALUES (6, 5); INSERT INTO Register…arrow_forward1) Write the SQL code to add a binary variable “Hire_prior_2000” in the Employee table.If the hire year (year of hire needs to be identified) is prior to 2000, then Hire_prior_2000=1, other wise Hire_prior_2000=0.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