Hi @cbalmbra1 , a possible way is to execute a SQL statement like this, with the InlineQuerier. Assuming that all the date values are formatted with "yyyy-mm-dd". See also the attached workspace example.
tEdited] Replace the SQL statement in the attached workspace example with this one.
select
d2.id,
d2.start,
d2.finish,
count(d1.date) count
from dataset_2 as d2
left outer join dataset_1 as d1
on d1.date between d2.start and d2.finish
group by d2.id
@cbalmbra1 FME table joiners (FeatureJoiner, FeatureMerger, etc) don't have the equivalent of a BETWEEN joins. Try the InlineQuerier. You can build a SQL BETWEEN there
Hi @cbalmbra1 , a possible way is to execute a SQL statement like this, with the InlineQuerier. Assuming that all the date values are formatted with "yyyy-mm-dd". See also the attached workspace example.
tEdited] Replace the SQL statement in the attached workspace example with this one.
select
d2.id,
d2.start,
d2.finish,
count(d1.date) count
from dataset_2 as d2
left outer join dataset_1 as d1
on d1.date between d2.start and d2.finish
group by d2.id
Awesome. Just the ticket. Thanks!
@cbalmbra1 FME table joiners (FeatureJoiner, FeatureMerger, etc) don't have the equivalent of a BETWEEN joins. Try the InlineQuerier. You can build a SQL BETWEEN there
Awesome. Just the ticket. Thanks!