Hi guys,
I have four tables those are emp,dept,eliminate and uneliminate.
i wrote small cursor..when i run, it display one error
(ORA-01403 nodata found)...
The query is:

Declare
cursor c1 is
select e.ename emp_name from emp e,dept d where
e.deptno=d.deptno group by deptno;
r1 c1%rowtype;
test_emp varchar2(200);
begin
for r1 in c1
loop
begin
select eliminate_emp into test_emp from eliminate
t,uneliminate ut where t.number=ut.number
and t.deptno=e.deptno and rownum<1;
end;
dbms_output.put_line(r1.emp_name);
end loop;
end;

Thanks...


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Oracle Errors Interview Questions

ORA-23442: object already exists for the refresh group template

1 Answers  


ORA-01106: database must be closed before dismounting

1 Answers  


ORA-30575: ConText Option not installed

1 Answers  


RMAN-03012: fatal error during compilation of command

1 Answers  


ORA-12992: cannot drop parent key column

1 Answers  






SQL*Loader-00943: incorrect datafile string specified for table string partition string

1 Answers  


ORA-08003: sequence string.NEXTVAL exceeds internal limits

1 Answers  


ORA-00827: could not shrink sga_target to specified value

1 Answers  


DRG-12508: null stop words are not allowed

1 Answers  


ORA-39960: scope can only be SYSTEM or SESSION

1 Answers  


ORA-03216: Tablespace/Segment Verification cannot proceed

1 Answers  


ORA-02844: Invalid value for the leave open flag

1 Answers  


Categories