Answer to Question #268393 in Databases | SQL | Oracle | MS Access for tumi

Question #268393

Question 1                                                                                                                                                         [20]


Write a PL/SQL anonymous block that will prompt the user to enter a particular student number and the displays the student’s registration information. Refer to the sample output below


Enter value for studentno: 97003455

Student: SMUTS, JH

DOB / age: 12-JAN-70(51)

No. of Subject enrolled: 6

Total Fees payable: 7900

Registration date: 10-JAN-97

 

Enter value for studentno: 94001111

Student: PETOORS, WHY

DOB / age: 03-DEC-75(45)

No. of Subject enrolled: 1

Total Fees payable: 500

Registration date: Date Unknown

1
Expert's answer
2021-11-18T23:53:48-0500
CREATE OR REPLACE PROCEDURE cust_spent (
    reg_num      IN    info.stud_num%TYPE,
    name_output    OUT   info.stud_nume%TYPE,
    age_output     OUT   info.stud_age%TYPE,
    subjects_output   OUT   info.subj_num%TYPE
    fees_output   OUT   info.stud_fees%TYPE
    regdate_output   OUT   info.reg_date%TYPE
) AS

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS