I would like to create a calculated field in tabular report datapage that displays a column in related table as a concatenated string.
For Example, many of my apps use the tblPlants as a data source. This is a table of plant species that has a one-to-many relationship with many other tables. I would like to present a field in the report that lists the the botanical gardens for each plant is found in from the tblBG as a string.
SELECT STRING_AGG(tblBG.Garden,",")
FROM tblBG
WHERE tblBG.PlantID = [@field:PlantID];
I get an error that say there is a syntax error near "(", which I take to meant hat the STRING_AGG function does not exist. Is there another function I could use to accomplish this?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Heineperson
Hello,
I would like to create a calculated field in tabular report datapage that displays a column in related table as a concatenated string.
For Example, many of my apps use the tblPlants as a data source. This is a table of plant species that has a one-to-many relationship with many other tables. I would like to present a field in the report that lists the the botanical gardens for each plant is found in from the tblBG as a string.
SELECT STRING_AGG(tblBG.Garden,",")
FROM tblBG
WHERE tblBG.PlantID = [@field:PlantID];
I get an error that say there is a syntax error near "(", which I take to meant hat the STRING_AGG function does not exist. Is there another function I could use to accomplish this?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.