About 50 results
Open links in new tab
  1. How to use GROUP BY to concatenate strings in SQL Server?

    This type of problem is solved easily on MySQL with its GROUP_CONCAT() aggregate function, but solving it on Microsoft SQL Server is more awkward. See the following SO question for help: "How to …

  2. sql - How do I split a delimited string so I can access individual ...

    Nov 2, 2015 · Using SQL Server, how do I split a string so I can access item x? Take a string "Hello John Smith". How can I split the string by space and access the item at index 1 which should return …

  3. Databricks SQL string_agg - Stack Overflow

    Nov 18, 2021 · Hopefully a quick one; Migrating some on-premise SQL views to Databricks and struggling to find conversions for some functions. The main one is the string_agg function. …

  4. aggregate functions - Can we use SQL Server STRING_AGG () in queries ...

    Mar 29, 2023 · Aggregate functions that are used with CUBE, ROLLUP, or GROUPING SET queries must provide for the merging of subaggregates. To fix this problem, remove the aggregate function …

  5. Oracle PL SQL STRING Functions - Stack Overflow

    Jun 19, 2020 · Below SQL uses Oracle built-in functions INSTR and SUBSTR and assumes that the "code" is always the last part of the string and is always preceded by a single, underscore character, …

  6. How do I search an SQL Server database for a string?

    Dec 8, 2019 · I need to search an SQL Server database for all mentions of a specific string. For example, I would like to search all tables, views, functions, stored procedures, ... for string …

  7. Difference between scalar, table-valued, and aggregate functions in …

    Jul 14, 2016 · What is the difference between scalar-valued, table-valued, and aggregate functions in SQL server? And does calling them from a query need a different method, or do we call them in the …

  8. How to get first character of a string in SQL? - Stack Overflow

    Apr 27, 2009 · I have a SQL column with a length of 6. Now want to take only the first char of that column. Is there any string function in SQL to do this?

  9. sql - How to split a comma-separated value to columns - Stack Overflow

    May 14, 2012 · STRING_SPLIT() is only really useful in SQL Server 2022 and above with the use of the enable_ordinal = 1 option. The STRING_SPLIT() results can then be used with a PIVOT or …

  10. sql - How to write dynamic queries in snowflake user defined functions ...

    How to write dynamic queries in snowflake user defined functions Asked 5 years, 8 months ago Modified 2 years, 4 months ago Viewed 13k times