• Given the following Relations in a DBMS write the output of the queries, in tuple form with attribute labels. EMPLOYEE Fname Minit Lname John Franklin Alicia Jennifer Ramesh K Narayan 666884444 1962-09-15 975 Fire Oak, Humble, TX M 38000 333445555 Joyce Ssn Bdate Address Sex Salary Super_ssn Dno в | Smith I Wong JZelaya 99887777 1968-01-19 3321 Castle, Spring, TX s Wallace 987654321 1941-06-20 291 Berry, Bellaire, TX 123456789 1965-01-00 731 Fondren, Houston, TX M 30000 333445555 333445555 1955-12-08 638 Voss, Houston, TX M 40000 888665555 F 25000 087654321 F 43000 888665555 4 4 A English 453453453 1972-07-31 5631 Rice, Houston, TX F 25000 333445555 v Jabbar 987987987 | 1969-03-29 980 Dallas, Houston, TX M 25000 087654321 E Borg Ahmad 4 James 888665555 1937-11-10 450 Stone, Houston, TX M 55000 |NULL 1 DEPARTMENT DEPT_LOCATIONS Dname Dnumber Mgr_ssn 333445555 Mgr_start_date Dnumber Dlocation Research 5 1988-05-22 Houston Administration 4 987654321 1995-01-01 4 Stafford Headquarters 888665555 1981-06-19 Bellaire PROJECT 5 Sugarland Pname Pnumber Plocation Dnum 5 Houston ProductX Bollaire 5 ProductY 2 Sugarland 5 Productz 3 Houston Computerization Reorganization Newbenefits 10 Stafford 4 20 Houston 30 Stafford Query 1: SELECT Pnumber, Dnum, Lname, Address, Bdate FROM PROJECT, DEPARTMENT, EMPLOYEE WHERE Dnum=Dnumber AND Mgr_ssn=Ssn AND Plocation='Stafford' Query 2: SELECT E.Fname, E.Lname, S.Fname, S.Lname FROM EMPLOYEE AS E, EMPLOYEE AS S WHERE E.Super_ssn=S.Ssn
• Given the following Relations in a DBMS write the output of the queries, in tuple form with attribute labels. EMPLOYEE Fname Minit Lname John Franklin Alicia Jennifer Ramesh K Narayan 666884444 1962-09-15 975 Fire Oak, Humble, TX M 38000 333445555 Joyce Ssn Bdate Address Sex Salary Super_ssn Dno в | Smith I Wong JZelaya 99887777 1968-01-19 3321 Castle, Spring, TX s Wallace 987654321 1941-06-20 291 Berry, Bellaire, TX 123456789 1965-01-00 731 Fondren, Houston, TX M 30000 333445555 333445555 1955-12-08 638 Voss, Houston, TX M 40000 888665555 F 25000 087654321 F 43000 888665555 4 4 A English 453453453 1972-07-31 5631 Rice, Houston, TX F 25000 333445555 v Jabbar 987987987 | 1969-03-29 980 Dallas, Houston, TX M 25000 087654321 E Borg Ahmad 4 James 888665555 1937-11-10 450 Stone, Houston, TX M 55000 |NULL 1 DEPARTMENT DEPT_LOCATIONS Dname Dnumber Mgr_ssn 333445555 Mgr_start_date Dnumber Dlocation Research 5 1988-05-22 Houston Administration 4 987654321 1995-01-01 4 Stafford Headquarters 888665555 1981-06-19 Bellaire PROJECT 5 Sugarland Pname Pnumber Plocation Dnum 5 Houston ProductX Bollaire 5 ProductY 2 Sugarland 5 Productz 3 Houston Computerization Reorganization Newbenefits 10 Stafford 4 20 Houston 30 Stafford Query 1: SELECT Pnumber, Dnum, Lname, Address, Bdate FROM PROJECT, DEPARTMENT, EMPLOYEE WHERE Dnum=Dnumber AND Mgr_ssn=Ssn AND Plocation='Stafford' Query 2: SELECT E.Fname, E.Lname, S.Fname, S.Lname FROM EMPLOYEE AS E, EMPLOYEE AS S WHERE E.Super_ssn=S.Ssn
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
Related questions
Question

Transcribed Image Text:5. Given the following Relations in a DBMS write the output of the queries, in tuple form with
attribute labels.
EMPLOYEE
Fname Minit Lname
Ssn
Sex Salary Super_ssn Dno
123456789 1965-01-09 731 Fondren, Houston, TX M 30000 333445555 5
M 40000 888665555
J Zelaya 999887777 1968-01-19 3321 Castle, Spring, TX F 25000 987654321
F 43000 888665555
Narayan 666884444 1962-09-15 975 Fire Oak, Humble, TX M 38000 333445555
A English 453453453 1972-07-31 5631 Rice, Houston, TX F 25000 333445555
v Jabbar 987987987 1969-03-29 980 Dallas, Houston, TX M 25000 987654321
888665555 1937-11-10 450 Stone, Houston, TX M 55000 NULL
Bdate
Address
John
в
Smith
Franklin T
Wong
333445555 1955-12-08 638 Voss, Houston, TX
Alicia
4
Wallace 987654321 1941-06-20 291 Berry, Bellaire, TX
Jennifer
4
Ramesh K
Joyce
5
Ahmad
4
James
E Borg
DEPARTMENT
DEPT LOCATIONS
Dname
Dnumber
Mgr_ssn
Mgr_start_date
Dnumber
Dlocation
Research
5
333445555
1988-05-22
Houston
Administration
4
987654321
1995-01-01
4
Stafford
Headquarters
888665555
1981-06-19
Bellaire
PROJECT
Sugarland
Pname
Pnumber
Plocation
Dnum
Houston
ProductX
Bellaire
5
ProductY
2
Sugarland
5
Productz
Houston
Computerization
Reorganization
Newbenefits
10
Stafford
4
20
Houston
30
Stafford
Query 1: SELECT
Pnumber, Dnum, Lname, Address, Bdate
FROM
PROJECT, DEPARTMENT, EMPLOYEE
WHERE
Dnum=Dnumber AND Mgr_ssn=Ssn AND Plocation='Stafford'
Query 2: SELECT
E.Fname, E.Lname, S.Fname, S.Lname
FROM
EMPLOYEE AS E, EMPLOYEE AS S
WHERE
E.Super_ssn=S.Ssn
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 now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

Knowledge Booster
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.Recommended textbooks for you

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education