on 2022 Jan 12 3:15 PM
I am trying to aggregate some text from all my numAtCard fields would this function make sense?
string_agg
Request clarification before answering.
Hi Jonathan,
In the example below, the STRING_AGG function will retrieve all NumAtCard values from the ORDR table and concatenate them in a string with a comma separator between the values. NULL values will be ignored.
SELECT STRING_AGG(NumAtCard,',') AS NumAtCard FROM ORDR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
39 | |
8 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.