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

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter3: Table Creation And Management
Section: Chapter Questions
Problem 5MC: Which of the following is true? a. If you truncate a table, you cant add new data to the table. b....
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L