Getting stuck with a SQL statement that i'm using for the InlineQuerier. I normally do not work that much with SQL code and only use if to perform simple one on one joins. I am working with one data frame at the moment that contains multiple attributes and i want to create an extra attribute based on these. An short example:
<code>ID road_name road_type Type Traffic
1 bakerstreet elements B light
2 bakerstreet elements B light
3 piccadilly circus asphalt A heavy
4 woodstreet concrete A heavy
5 settlerstreet concrete A heavy
6 woodstreet concrete A heavy
7 settlerstreet concrete A light
8 settlerstreet concrete B heavy
I am trying to give all the features a unique RoadID based on all 4 attributes so i can merge them later on. The new attribute RoadID must be a data type Integer and the value should be matching a unique combination of the 4 attributes.
The results should be something like:
<code>ID road_name road_type Type Traffic RoadID
1 bakerstreet elements B light 1
2 bakerstreet elements B light 1
3 piccadilly circus asphalt A heavy 2
4 woodstreet concrete A heavy 3
5 settlerstreet concrete A heavy 4
6 woodstreet concrete A heavy 3
7 settlerstreet concrete A heavy 4
8 settlerstreet concrete B heavy 5
I tried to do this with the SQL function concat but this got this result: "no such function: CONCAT" Is there another way to do this in the inlinequerier or with another transformer?