Wrox Home  
Search P2P Archive for: Go

  Return to Index  

sql_language thread: Problem with Date Functions


Message #1 by "Roel Dancel" <roel_d@y...> on Fri, 9 Aug 2002 11:52:23
Try resolving getdate() before the SQL and referenece
a variable that is populated by getdate().

Good Luck;

Cash Cloister
--- Roel Dancel <roel_d@y...> wrote:
> Here is my code kindly check it if it's right:
> 
> SELECT id, MAX(servicedate) AS ServDate
> FROM service
> WHERE DATEDIFF(day, ServDate, getdate()) <= 30
> GROUP BY ID
> 
> Im using a Visual Basic SQL Builder. I put it in a
> database designer.
> Im getting an "Undefined function 'getdate' in
> expression." error. Dont 
> know what to do.
> 
> Roel Dancel:)


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

  Return to Index