Question: - 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
Get step-by-step solutions from verified subject matter experts
