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
NNL-00023: SET command is missing an argument
QSM-00504: internal error
ORA-28003: password verification for the specified password failed
ORA-07614: $CHANGE_CLASS failed in retrieving the user's process label
ORA-31012: Given XPATH expression not supported
QSM-02083: mv references PL/SQL function that maintains state
ORA-37077: (XSMCSESS05) Object workspace object is specified more than once.
ORA-09875: TASDEF_WRITE: write error when writing ?/dbs/tasdef@.dbf file.
ORA-03277: invalid SIZE specified
NNC-00428: invalid meta-data data item
PLS-00905: object string is invalid
IMG-00606: unable to access image data