Hi guys,
I am using cusor 'c_query' against which I run a SELECT joined to a table, and output to the original cursor. I have a long list of these which are all run based on conditions. This works fine if the cursor is joined to a table but in the following case 'div_sel' is also a cursor. When I run cursor joined to cursor I get a 'not a table error'. Is this possible or do I have to create a 'div_sel' table first.
IF RECCOUNT("div_sel" > 0
SELECT c_query.*;
FROM c_query INNER JOIN Div_sel ;
ON ALLTRIM(c_query.division) == ALLTRIM(div_sel.division);
INTO CURSOR c_query
ENDIF
Cheers, Garry.
I am using cusor 'c_query' against which I run a SELECT joined to a table, and output to the original cursor. I have a long list of these which are all run based on conditions. This works fine if the cursor is joined to a table but in the following case 'div_sel' is also a cursor. When I run cursor joined to cursor I get a 'not a table error'. Is this possible or do I have to create a 'div_sel' table first.
IF RECCOUNT("div_sel" > 0
SELECT c_query.*;
FROM c_query INNER JOIN Div_sel ;
ON ALLTRIM(c_query.division) == ALLTRIM(div_sel.division);
INTO CURSOR c_query
ENDIF
Cheers, Garry.