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.

Database Systems: Design, Implementation, & Management
11th Edition
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Chapter10: Transaction Management And Concurrency Control
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
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 .
Transcribed Image Text: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 .
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Dataset
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning