Definition of SET - 14
Patient (Patient_code, Patient_name, Address, City, DOB, Gender)Implement the following:
A)
- Create a Sequence that can be used to enter new Patient code into the Patient table.
Add a new record into Patient table using the created sequence using the format
‘PT1001’. - Find those patients who do not belong to ‘Ahmedabad’ or ‘Mehsana’ city. (Use set
operator)
- Create a PL/SQL block to generate the following report:
Gender (Patients in Age group)
1-20 21-40 41-60 61-80 81-100 Total
Male
Female
Total