Skip to main content
Question

query date from odbc


apence231
Contributor
Forum|alt.badge.img+7
I have an odbc connection and am trying to return the new records from the last 24 hours. I think I keep running into issues on how to format the SQL statement.My plan is to run this daily and only geocode the newest records in the past 24 hours. Thanks!

4 replies

david_r
Evangelist
  • August 12, 2015
Hi

 

 

What is the statement you're currently using and what is the error message?

 

 

David

apence231
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 12, 2015
Hi David,

 

 

I've tried many statements and different transformers so I don't have one error message I can show you since I'm still pretty new at FME and not sure where to put the statement (once I figure it out). What I was trying to do a query on my table (named lwmain) and I have a field/attribute with date and time in it (named dtrepor) and only geocode the new records- I have the rest of the transformers I need working to get the correct writer.

 

 

Thanks.

 

 

Alice

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • August 13, 2015
Presuming that this query is the starting point for your workbench I would use an sql creator with a query along the lines of

 

 

Select * from lwmain where dtrepor > sysdate -1

apence231
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 13, 2015
Thanks E.Gomm- That was exactly what I was looking for and it worked like a charm.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings