Please write a view to list the project name, staff name, and the staff’s branch city for the staff who are working on the same project more than one time. You should use Project, Staff2, Branch, and Working tables in the dreamhome database. The output column header should be Project_name, Staff_name, Branch_city. The staff_name should combine fname and lname with a space in between.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

Please write a view to list the project name, staff name, and the staff’s
branch city for the staff who are working on the same project more than one time. You should use
Project, Staff2, Branch, and Working tables in the dreamhome database. The output column header
should be Project_name, Staff_name, Branch_city. The staff_name should combine fname and lname
with a space in between.

[MariaDB [dreamhome]> Select * from Project;
+‒‒‒‒‒‒
-+
| pcode | name
| city
|
+———-
| Union
| NYC
P01
P02
P03
| P04
P05
| Kean University
| Citi Bank
| British Museum
London
| Buckingham Palace | London
| Granite
+‒‒‒‒‒‒
5 rows in set (0.001 sec)
+‒‒‒‒‒‒
| P01
P01
| P01
P02
| P02
P02
| P02
| P03
| P03
| P03
| P03
P03
+▬▬▬▬▬
[MariaDB [dreamhome]> Select * from Working;
+▬▬▬▬▬▬
-+▬▬▬▬▬▬+
| pcode | staffNo | year |
·+▬▬▬▬▬▬+
| ABC1
ABC1
SG5
XY1
| SG5
SG5
| SL21
ABC1
| SG37
| SG14
| CC1
| CC1
1980 |
| 2010
2000
| 2014 |
2002
| 2018 |
2006
| 1995 |
1995 |
| 2003 |
| 1990 |
| 2019 |
-+▬▬▬▬▬▬+
| Aberdeen |
+
12 rows in set (0.001 sec)
Transcribed Image Text:[MariaDB [dreamhome]> Select * from Project; +‒‒‒‒‒‒ -+ | pcode | name | city | +———- | Union | NYC P01 P02 P03 | P04 P05 | Kean University | Citi Bank | British Museum London | Buckingham Palace | London | Granite +‒‒‒‒‒‒ 5 rows in set (0.001 sec) +‒‒‒‒‒‒ | P01 P01 | P01 P02 | P02 P02 | P02 | P03 | P03 | P03 | P03 P03 +▬▬▬▬▬ [MariaDB [dreamhome]> Select * from Working; +▬▬▬▬▬▬ -+▬▬▬▬▬▬+ | pcode | staffNo | year | ·+▬▬▬▬▬▬+ | ABC1 ABC1 SG5 XY1 | SG5 SG5 | SL21 ABC1 | SG37 | SG14 | CC1 | CC1 1980 | | 2010 2000 | 2014 | 2002 | 2018 | 2006 | 1995 | 1995 | | 2003 | | 1990 | | 2019 | -+▬▬▬▬▬▬+ | Aberdeen | + 12 rows in set (0.001 sec)
[MariaDB [dreamhome]> select * from Staff2;
| staffNo | fName | 1Name
| position
| New
|
Intern
DBA
ABC1
CC1
SA9
SG14
SG37
SG5
SL21
SL41
Super
Mary
David
Ann
Susan
John
Julie
New
Engineer
User
Howe
Ford
Beech
Brand
White
Lee
Tester
street
| XY1
9 rows in set (0.001 sec)
[MariaDB [dreamhome]> select * from Branch;
| branch No
| city
+-
| B002
| London
B003
| Glasgow
B004
| Bristol
| B005
| London
B007
| Aberdeen
56 Cover Drive
163 Main Street
32 Manse Road
22 Deer Road
16 Argyll Street
5 rows in set (0.001 sec)
sex
| M
| M
F
Assistant
| Supervisor | M
| Assistant | F
Manager | F
IM
| Assistant | F
| Manager
| Assistant | M
| DOB
| 2000-01-01 | 9000.00 | B002
1995-01-01
90000.00
B005
9000.00 | B007
| 1970-02-19
| 1958-03-24 | 18000.00 | B003
1960-11-10 12000.00 B003
1940-06-03 24000.00 B003
30000.00 | B005
9000.00 | B005
8000.00 | B002
| 1945-10-01
| 1965-06-13
| 1990-01-01
| postcode |
NW10 6EU
G11 9QX
| BS99 1NZ
SW1 4EH
AB2 3SU
salary
| branchNo
| superno |
| SL21
| SG14
SG5
SG5
| SG5
SL21
NULL
SL21
| SL21
Transcribed Image Text:[MariaDB [dreamhome]> select * from Staff2; | staffNo | fName | 1Name | position | New | Intern DBA ABC1 CC1 SA9 SG14 SG37 SG5 SL21 SL41 Super Mary David Ann Susan John Julie New Engineer User Howe Ford Beech Brand White Lee Tester street | XY1 9 rows in set (0.001 sec) [MariaDB [dreamhome]> select * from Branch; | branch No | city +- | B002 | London B003 | Glasgow B004 | Bristol | B005 | London B007 | Aberdeen 56 Cover Drive 163 Main Street 32 Manse Road 22 Deer Road 16 Argyll Street 5 rows in set (0.001 sec) sex | M | M F Assistant | Supervisor | M | Assistant | F Manager | F IM | Assistant | F | Manager | Assistant | M | DOB | 2000-01-01 | 9000.00 | B002 1995-01-01 90000.00 B005 9000.00 | B007 | 1970-02-19 | 1958-03-24 | 18000.00 | B003 1960-11-10 12000.00 B003 1940-06-03 24000.00 B003 30000.00 | B005 9000.00 | B005 8000.00 | B002 | 1945-10-01 | 1965-06-13 | 1990-01-01 | postcode | NW10 6EU G11 9QX | BS99 1NZ SW1 4EH AB2 3SU salary | branchNo | superno | | SL21 | SG14 SG5 SG5 | SG5 SL21 NULL SL21 | SL21
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Query Syntax
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 System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education