Given the following two tables answer the question below Employee ID 25 205 392 *** Department Dept ID Research Marketing Accounting *** Name Jim Jones Ginny Lee Layla Marcos Location New York Denver Detroit Location New York Denver New York Phone 215-6321 419-2503 609-3216 MgrlD 25 310 255 Salary 4000 9000 1200 Dept ID Research Marketing Marketing

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
Chapter3: The Relational Database Model
Section: Chapter Questions
Problem 25P: Create the ERD. (Hint: Look at the table contents. You will discover that an AIRCRAFT can fly many...
icon
Related questions
Question
please fast its database i need it now
Given the following two tables answer the question below
Employee
ID
25
205
392
Department
Dept ID
Research
Marketing
Accounting
Name
Jim Jones
Ginny Lee
Layla Marcos
Location
Phone
New York 215-6321
419-2503
609-3216
Denver
Detroit
Location
New York
Denver
New York
MgrID
25
310
255
Salary
4000
9000
1200
Dept ID
Research
Marketing
Marketing
[10 points]
Assume that managers are also employees, and therefore the domain of MgrID is the same as EmployeeID. Every
department has exactly one manager, and that every manager manages exactly one department.
Write SQL statements for the following queries:
Transcribed Image Text:Given the following two tables answer the question below Employee ID 25 205 392 Department Dept ID Research Marketing Accounting Name Jim Jones Ginny Lee Layla Marcos Location Phone New York 215-6321 419-2503 609-3216 Denver Detroit Location New York Denver New York MgrID 25 310 255 Salary 4000 9000 1200 Dept ID Research Marketing Marketing [10 points] Assume that managers are also employees, and therefore the domain of MgrID is the same as EmployeeID. Every department has exactly one manager, and that every manager manages exactly one department. Write SQL statements for the following queries:
3- Display employee names and phones for employees whose manager ID is 310.
4- Display how many employees in each department. Bring the record for the department even if it has no
employees.
5- Display the names of employees who have maximum salary.
Transcribed Image Text:3- Display employee names and phones for employees whose manager ID is 310. 4- Display how many employees in each department. Bring the record for the department even if it has no employees. 5- Display the names of employees who have maximum salary.
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Decision Table
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
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning