I have a Business Object to count the number of folders for a process.
This works fine:
SELECT COUNT(*) AS numFolder
FROM efolder
WHERE eMapName = 'MyProcess'
AND eCreationTime < SysDate
But this doesn't work, it fails to generate the variable name:
SELECT COUNT(*) AS numFolder
FROM efolder
WHERE eMapName = 'MyProcess'
AND eCreationTime < @pEndDate --@pEndDate is a datetime
Neither does this:
SELECT COUNT(*) AS numFolder
FROM efolder
WHERE eMapName = 'MyProcess'
AND eCreationTime < TO_DATE(@pEndDate,'mm/dd/yyyy') --@pEndDate is text
Has anyone seen this? Any suggestions for a workaround...
Stephen