on 11-03-2015 11:39 PM
Hi, is it possible to use DateDiff in a Crystal SQL Command?
I have tried this:
(last_date_of_service is a field in my database)
Select ...., DateDiff("d", last_date_of_service, Date) As "DAYS"
From mytable as "mt"
I get this error <A term expected, beginning with either of: udentifier, constant, aggregate, $$, (, :, +..... or %Upper^Sele [Database Vendor Code:12]
Ok, I figured out for some reason is doesn't like 'Date' for todays date or 'CurrentDate', but it will work if I use '2015-11-03'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.