Skip to main content
Question

"Flattering" left join

  • Sep 1, 2016 6:31 PM UTC
  • 4 replies
  • 61 views

Forum|alt.badge.img

How can I change something like this:

1Chris1Rock2John2Small

Into something like this:

1Chris Rock

 

2John Small

 

Thanks,

Submi

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.

4 replies

Forum|alt.badge.img
  • Sep 1, 2016 6:38 PM UTC

For SQL solution, look at this link.

For workbench solution, assuming that id = index and a space is used as the separator:

Gives:

Note that your features have to be correctly ordered.

Regards,

Larry


itay
Supporter
Forum|alt.badge.img+19
  • Supporter
  • Sep 1, 2016 6:46 PM UTC

or just the aggregator with a group by set to the index and attributes to concatenation are the strings using a space " " for separation


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • Sep 1, 2016 6:46 PM UTC

This can also be done using the Aggregator transformer, grouping by index.


Forum|alt.badge.img
  • Author
  • Sep 1, 2016 6:53 PM UTC

Wow, thanks for many answers. In meantime I have found aggregator transformer but also ordering issue as mentioned by larry.

Many thanks again,

Submi