hello,
here is the sybase explanation for error 138:
Illegal correlation clause in a subquery.
Explanation:
Command failed due to invalid or illegal request. Adaptive Server cannot perform the requested action. (This error is not raised in Release 11.0 and higher.)
hth,
q.