Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( Marks: 1 4 ) Question 5 Consider the following PL / SQL query: SET ServerOutputs on DECLARING doctor _ name varchar 2 ( 5
Marks:
Question
Consider the following PLSQL query:
SET ServerOutputs on
DECLARING
doctorname varchar;
CURSER c IS SELECT dfirstname dsurname DOCTOR
FROM doctor medicine prescription
where doctorid doctorid
and medid medid
and quantity ;
BEGIN
OPEN C;
LOOP
FETCH cur INTO doctorname;
EXIT WHEN NOTFOUND;
dbmsoutput.putlineDOCTOR: dname ;
END;
END;
Q The code above has seven errors. Identify the errors and rewrite the code so
that it would produce a valid output.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started