Create both the tables Branch and Supervisor with appropriate attribute names, primary key, foreign key and data type. Insert the above records into Branch and Supervisor tables. Display all the records from Branch and Supervisor (Separately)

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
  1. Create both the tables Branch and Supervisor with appropriate attribute names, primary key, foreign key and data type.
  2. Insert the above records into Branch and Supervisor tables.
  3. Display all the records from Branch and Supervisor (Separately)   
  4. Display all the details of Name, City and Salary.
  5. Display the total salary for every city in the supervisor table.
  6. Write a PL/SQL program to display BName from the Branch table for D5.   
  7. Write a PL/SQL program to display all the details of Supervisor who is getting more than 1250 salary using cursor.
  8. Update city as ‘Suhar’ for Supervisor named Jack.
  9. Write a Procedure to receive a Supervisor SId as Input and display all the related values of that Supervisor. (Also write the calling program.)   
  1. Delete all the branch details of operations.
Branch
Supervisor
Bld
BName
SId
Sld
Name
| City
Salary
D1
Operations
1234
1234
Jone
Muscat
2340
D2
Engg
1345
1345
Ann
Muscat
1200
Operations 1567
Dubai
D3
1567
Mary
1345
D4
Computer
1234
1655
Viba
Dubai
1290
Operations 1733
Abudhabi 1360
D5
1733
Jack
Transcribed Image Text:Branch Supervisor Bld BName SId Sld Name | City Salary D1 Operations 1234 1234 Jone Muscat 2340 D2 Engg 1345 1345 Ann Muscat 1200 Operations 1567 Dubai D3 1567 Mary 1345 D4 Computer 1234 1655 Viba Dubai 1290 Operations 1733 Abudhabi 1360 D5 1733 Jack
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

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