Hello Richard,
Thanks for the detailed explanation. It worked. I was missing approach of saving count(*) into local variable.
Between, I tried ::ROWCOUNT option. That is,
t_emp =select * from Employee;
if ::ROWCOUNT > 0 then.....
but somehow it did not work. Also, tried opening up the cursor on the select statement and using its ROWCOUNT property, but no luck there too.
Finally, your approach and worked like a breeze.
AO.