Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

- Write a stored function that takes the name of the city where the patient lives. The value return will be based on the following

- Write a stored function that takes the name of the city where the patient lives. The value return will be based on the following table:

City

Discount

Carbondale

20%

Anna

10%

No discount is given to patient that lives in any other cities. Call this function from anonymous block. Allow the user to enter the patient ID. Calculate and display the amount that the patient has to pay.

Expected output:

Enter the patient ID: 331

He/she is the patient of Dr. Smith

Charge per appointment for Dr.Smith is RM 25 Please pay only : RM 22.5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

Could the company be guilty of motor vehicle homicide?

Answered: 1 week ago