idingsdale
New Member
I'm doing some work on a Progress 10.1A database, connected by ODBC to a .NET application in Visual Studio 2008.
My SQL query is returning survey responses and looks like this:
I want to be able to return surveys for jobs completed in the past 4 weeks, but no functions such as "select today()" or "select cur_date()" seem, to work and give the error:
I'm sure I've just got the wrong syntax, but cant find anything in the Progress SQL guide. So how do I go about using the current date?
Thanks in advance!
My SQL query is returning survey responses and looks like this:
SELECT DISTINCT COUNT(PUB.satresponse."job-num") AS Expr1, CASE PUB.satresponse.response
WHEN '90' THEN 'Very Satisfied'
WHEN '60' THEN 'Satisfied'
WHEN '10' THEN 'Disatisfied'
WHEN '30' THEN 'Neither'
WHEN '0' THEN 'No Answer' END AS Expr2
FROM PUB.satresponse, PUB.job WHERE PUB.satresponse."job-num" = PUB.job.num AND (PUB.satresponse."satis-cde" = 14)
GROUP BY PUB.satresponse.response HAVING (PUB.satresponse.response IS NOT NULL)
I want to be able to return surveys for jobs completed in the past 4 weeks, but no functions such as "select today()" or "select cur_date()" seem, to work and give the error:
Syntax error at or about %s(statement excerpt).
I'm sure I've just got the wrong syntax, but cant find anything in the Progress SQL guide. So how do I go about using the current date?
Thanks in advance!