Answer to Question #268510 in Databases | SQL | Oracle | MS Access for Lee

Question #268510

Write a pl /SQL anonymous block that will prompt the user to enter a particular student number and the displays the students registration information

1
Expert's answer
2021-11-19T17:14:43-0500
DECLARE
stu_number student.studid%type;
stu_name  student.name%type; 
stu_gender student.gender%type; 
stu_course  student.course%type; 
begin
stu_number := :stu_number;
SELECT name, gender, course INTO stu_name, stu_gender, stu_course FROM student WHERE studid = stu_number;
dbms_output.put_line('Student Name is: '||stu_name||' Gender is: '||stu_gender||'Course is: '||stu_course);
end;

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