Skip to main content
Solved

Filter by date value - Select date value starting with "2023", "2022", etc.

  • February 23, 2023
  • 5 replies
  • 28 views

In SQL, it's possible to select all your data starting with "2023" like this :

-------------------------------------

SELECT *

FROM mydata

WHERE date LIKE "2023%"

--------------------------------------

Is there a way to do it with FME?

 

I have already apply a "DateTimeConverter" to convert my data in FME format (20230223).

 

I see on FME Workbanch that there is a "SQLCreator", but I need to import my data from a url and not from an DataBase like PostGIS

Best answer by david_r

The easiest is probably to use a Tester with a criteria to check for "starts with".

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

david_r
Celebrity
  • 8391 replies
  • Best Answer
  • February 23, 2023

The easiest is probably to use a Tester with a criteria to check for "starts with".


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • February 23, 2023

Hi @geo.uqam​ 

 

You can use the Transformer Tester.

 

In the configuration of Tester, has a option Begin With.

 

 

Thanks in Advance,

 

 


  • Author
  • 2 replies
  • February 23, 2023

The easiest is probably to use a Tester with a criteria to check for "starts with".

It works! Thank you, it is appreciated.


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • February 23, 2023

The easiest is probably to use a Tester with a criteria to check for "starts with".

Same time :)


  • Author
  • 2 replies
  • February 23, 2023

Same time :)

That was my very first question. Now I know that there is a very active community ready to help. Thank you!😀