Jump to content
We've recently updated our Privacy Statement, available here ×

Problem with Datediff in sql query


chuck.dinovo

Recommended Posts

I am having issues with a DATEDIFF query where I am using GETDATE () in the formula

DATEDIFF(DAY,a.DUEDATE,GETDATE()) AS DaysPastDue

Jasper Studios shows this error -- Multiple Markers at this line - mismatched input ')' Expecting FROM and - no viable alternative at input

The FROM appears later in the query. 

It just does not like GETDATE() as I can use the following query just fine

DATEDIFF(DAY,a.DUEDATE,a.INVDATE) as Age

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...