
sql - STRING_AGG aggregation result exceeded the limit of 8000 …
Sep 19, 2022 · 124 Try as below select c.id , c.bereichsname , STRING_AGG( CAST(j.oberbereich as nvarchar(MAX)),',') oberBereiches from stellenangebote_archiv j join …
sql - Optimal way to concatenate/aggregate strings - Stack Overflow
They have implimented STRING_AGG () in Azure SQL Database as well. That should provide the exact functionality originally requested in this post with native and built in support. @hrobky …
sql - How to sort the aggregate values from STRING_AGG () IN …
This question is not about SQLServer's version of STRING_AGG() with ORDER BY. SQL Server pages: How to get strings comma separated in ascending order with SQL Server's …
String_agg for SQL Server before 2017 - Stack Overflow
Mar 19, 2018 · Can anyone help me make this query work for SQL Server 2014? This is working on PostgreSQL and probably on SQL Server 2017. On Oracle it is listagg instead of …
How to concatenate text from multiple rows into a single text …
Oct 27, 2015 · SQL Server 2017+ and SQL Azure: STRING_AGG Starting with the next version of SQL Server, we can finally concatenate across rows without having to resort to any variable or …
Get unique values using STRING_AGG in SQL Server
May 29, 2018 · I have multiple string_agg columns all based off the same table, so doing the distinct options mentioned above just didn't seem to work unless I really added a lot of sql …
aggregate functions - Can we use SQL Server STRING_AGG () in …
Mar 29, 2023 · Can we use SQL Server STRING_AGG () in queries using GROUP BY ROLLUP () Asked 2 years, 6 months ago Modified 11 months ago Viewed 21k times
sql server - STRING_AGG with CASE WHEN - Stack Overflow
Nov 22, 2019 · string_agg(case when age < 10 then sub.dependant else null end, ', ') as 'Under 10' Still still looking for suggestions and ideas how to improve on my original query.
String Aggregation in Oracle: Multiple Rows into Single Column
Oct 20, 2013 · hi I have following function for string aggregation in oracle CREATE OR REPLACE FUNCTION STRING_AGGREGATE(i_query VARCHAR2, i_seperator VARCHAR2 DEFAULT …
Substitute for STRING_AGG pre SQL Server 2016 - Stack Overflow
Jun 24, 2021 · In SQL Server 2017 the above result can be achieved with: SELECT STRING_AGG(ID) ID, (SELECT Country, City FOR JSON PATH) Json FROM Places GROUP …