...in PL/SQL it works fine, but when I call it from VB, I get an ORA-06512 error "Not a GROUP BY expression".
Here's the procedure:
SELECT COUNT (*)
INTO out_TestCount
FROM (SELECT MAX (FolderRSN) AS FolderRSN, TRUNC(MAX(PaymentDate)) AS LastPmtDate
FROM (SELECT F.FolderRSN...