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
DRG-50858: OCI error: string
ORA-12198: TNS:could not find path to destination
ORA-01910: TABLES keyword expected
ORA-27158: process control failure
ORA-01658: unable to create INITIAL extent for segment in tablespace string
LSX-00162: string "~S" is an invalid default for the complex type
NNL-00951: Names created on lookup: number
DRG-11816: Use Proxy
ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
ORA-01197: thread string only contains one log
PLS-00505: User Defined Types may only be defined as PLSQL Tables or Records
UDE-00050: Unable to setup parameter processing.