Joel W Winston
Member
Could someone let me know if I could use SQL statement along with 4GL / ABL in a .p / .w?
Should I use a "CURSOR" for this purpose?
Any downside to this approach.
The reason I ask this is because I want to use something like
"SELECT max(empno) FROM emp"
which could not be done using 4gl as I have no index on empno which leaves me with no option but to read through (for each emp) all the records.
Hence I would like to use "SELECT max(empno) FROM emp".
Please let me know.
Thanks
Joel
Should I use a "CURSOR" for this purpose?
Any downside to this approach.
The reason I ask this is because I want to use something like
"SELECT max(empno) FROM emp"
which could not be done using 4gl as I have no index on empno which leaves me with no option but to read through (for each emp) all the records.
Hence I would like to use "SELECT max(empno) FROM emp".
Please let me know.
Thanks
Joel