HI,
I really hope someone can help me out with this. I have a definition query defined on a feature class coming from an Oracle SDE where a date field is queried to return values within 6 months of the current date (see below)
RELDATE_DATE > ADD_MONTHS(TO_DATE(SYSDATE),-6
We are in the process of migrating to a PostgreSQL SDE and with the same feature class the query no longer works or is verified ( returns an error)
What should my new definition query look like?
The feature class filed being queried is RELDATE_DATE
Thanks
Gregor
Solved! Go to Solution.
Try this:
RELDATE_DATE > (NOW() - interval '6 months')
EDIT:
It looks like you can't use those functions in Pro, even if the DB itself would in a query. Try this instead:
RELDATE_DATE > (CURRENT_DATE - 182)
Try this:
RELDATE_DATE > (NOW() - interval '6 months')
EDIT:
It looks like you can't use those functions in Pro, even if the DB itself would in a query. Try this instead:
RELDATE_DATE > (CURRENT_DATE - 182)
Hi Josh,
Thanks for the response - the RELDATE_DATE > (CURRENT_DATE -182) works.
Thanks very much