About 50 results
Open links in new tab
  1. How Stuff and 'For Xml Path' work in SQL Server?

    Jul 4, 2015 · There is very new functionality in Azure SQL Database and SQL Server (starting with 2017) to handle this exact scenario. I believe this would serve as a native official method for what you are …

  2. STUFF function to display multiple columns with comma-separated in …

    Nov 1, 2019 · STUFF function to display multiple columns with comma-separated in SQL Server Asked 6 years, 3 months ago Modified 6 years, 3 months ago Viewed 8k times

  3. SQL STUFF function roll up multiple rows - Stack Overflow

    Jul 19, 2017 · SQL STUFF function roll up multiple rows Asked 8 years, 7 months ago Modified 2 years, 4 months ago Viewed 21k times

  4. How to convert STRING_AGG to stuff function to work query on SQL …

    Jan 2, 2023 · How to convert STRING_AGG to stuff function to work query on SQL Server 2016 below? [duplicate] Asked 3 years, 1 month ago Modified 3 years, 1 month ago Viewed 4k times

  5. sql - Use STUFF function to bring only those values which match the ...

    Oct 26, 2020 · STUFF((SELECT DISTINCT ', ' + CAST(id as varchar) FROM users WHERE userID = depatments.userID FOR XML PATH('')), 1, 1, '') AS Users Every user has one department, I want to …

  6. alternative to stuff function in sql server - Stack Overflow

    Jan 24, 2015 · 3 The issue here isn't the stuff() function. It's the subquery and the XML processing. There really isn't an alternative in SQL Server. I mean, there are two other possible ways to do …

  7. sql server - How can I apply STUFF () to comma seperate this - Stack ...

    Sep 14, 2012 · As Nathan explained, STUFF() isn't actually performing any concatenation, it is simply removing the leading comma (which is better, IMHO, then having a trailing comma you have to …

  8. sql - apply sorting in stuff, stuff distinct and order by - Stack Overflow

    Jun 17, 2019 · 9 Apply sorting to any result in SQL is done by using the order by clause. It's not the stuff function that's giving you a hard time, it's the fact that you didn't specify an order by to the …

  9. Oracle equivalent to SQL Server STUFF function? - Stack Overflow

    Mar 6, 2013 · Does Oracle have its own implementation of SQL Server stuff function? Stuff allows you to receive one value from a multi row select. Consider my situation below ID HOUSE_REF PERSON 1 A...

  10. SQL Server String Concat with Stuff - Stack Overflow

    Mar 8, 2016 · I've looked online a few days now to how to use STUFF on sql server, most of the examples I see are involving only two tables and my query is going through 3 tables and I just can't …