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
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 |
---|---|
91 | |
9 | |
8 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.