Guest_imported
New member
- Jan 1, 1970
- 0
This query is about to drive me bananas.
When I run this query using a cursor and calling it with a post-change trigger, I get no data back.
But when I copy this code to sqlplus, it gives me all the data that I need. What is wrong?
Can you help, please?
select d.deptno from dt, caf, dept
where dt.deptcode = d.deptno
and dt.dcode = callf.ccode.
d is the lookup table.
the hierarchy says get the deptno from d table based on a join between d and dt on deptno
and a join between dt and caf on dcode.
if I search with a specific ccode, it comes back with a no-data found error message.
If I search sqlplus with the same ccode, i get data back.
any help would be greatly appreciated.
tankem
/
When I run this query using a cursor and calling it with a post-change trigger, I get no data back.
But when I copy this code to sqlplus, it gives me all the data that I need. What is wrong?
Can you help, please?
select d.deptno from dt, caf, dept
where dt.deptcode = d.deptno
and dt.dcode = callf.ccode.
d is the lookup table.
the hierarchy says get the deptno from d table based on a join between d and dt on deptno
and a join between dt and caf on dcode.
if I search with a specific ccode, it comes back with a no-data found error message.
If I search sqlplus with the same ccode, i get data back.
any help would be greatly appreciated.
tankem
/