Write an anonymous block which updates the .Physician table.(As you can not update the .Physician Table, you will have to create your own table based on the structure and contents of the Physician Table). Use named parameters to get values for Phys_ID, Phys_name, Phys_phone, and Phys_speciality. If the value for Phys_ID is in the Physician Table, Update the values of the remaining columns. If the Phys_ID is not in the Physician Table, INSERT a row into the Physician Table with those values.               - Hint: Use variables for each of the columns above and assign a named parameter to each of             them. Then use the variable in the rest of the block. - Write a simple driver to test the block with a Phys_ID that is in the Physician Table and a    Phys_ID that is not in the Physician Table. Physician Table   Phys_ID               Phys_Name                        Phys_Phone                       Phys_Specialty -----------             ------------------------          ------------------                  --------------------------   101                     Wilcox, Chris                     512-329-1848                    Eyes, Ears, Throat   102                     Nusca, Janie                       512-516-3947                    Cardiovascular   103                     Gomez, Johny                    512-382-4987                    Orthopedics   104                     Li, Jan                                512-516-3948                    Cardiovascular   105                     Simmons, Alex                  512-442-5700                    Hemotology

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

Write an anonymous block which updates the .Physician table.(As you can not update the .Physician Table, you will have to create your own table based on the structure and contents of the Physician Table). Use named parameters to get values for Phys_ID, Phys_name, Phys_phone, and Phys_speciality. If the value for Phys_ID is in the Physician Table, Update the values of the remaining columns. If the Phys_ID is not in the Physician Table, INSERT a row into the Physician Table with those values.

              - Hint: Use variables for each of the columns above and assign a named parameter to each of

            them. Then use the variable in the rest of the block.

- Write a simple driver to test the block with a Phys_ID that is in the Physician Table and a

   Phys_ID that is not in the Physician Table.

Physician Table

 

Phys_ID               Phys_Name                        Phys_Phone                       Phys_Specialty

-----------             ------------------------          ------------------                  --------------------------

  101                     Wilcox, Chris                     512-329-1848                    Eyes, Ears, Throat

  102                     Nusca, Janie                       512-516-3947                    Cardiovascular

  103                     Gomez, Johny                    512-382-4987                    Orthopedics

  104                     Li, Jan                                512-516-3948                    Cardiovascular

  105                     Simmons, Alex                  512-442-5700                    Hemotology

 

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

I need more details for the solution ,we dont have the physician table so we need to creat new one

 

Solution
Bartleby Expert
SEE SOLUTION
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