Dear All,
Question for this Week
Find out possible error(s) (either at compile
time or at runtime) in the following PL/SQL block. State
the reason(s) and correct the errors.
Declare
Cursor C1 is select ename, sal, comm from emp;
Begin
For i in C1 Loop
If i.comm between 299 and 999 then
Dbms_output.put_line(i.Ename || ‘
** Good Commission’);
Elsif i.comm > 999 then
Dbms_output.put_line(i.Empno || ‘
** Very Good Commission’);
close C1;
Else
Dbms_output.put_line(i.Ename || ‘
** ’ ||nvl(i.comm,‘O’));
End if;
End Loop;
End;
Answer Posted / intejar ahmad
invalid single quotes and cursor does not selecy empno
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is row_number () in sql?
What is sap sql anywhere?
Is t sql a programming language?
Is left join and outer join same?
what is denormalization. : Sql dba
What is java sql driver?
How to run sql*plus commands in sql developer?
What is sqlservr exe?
Why are sql stored procedures used?
What is aggregate function in sql?
what is the difference between group by and order by in sql? : Sql dba
What is a natural join sql?
Why do we use view in sql?
What is materialized view in sql?
Is natural join and inner join same?