
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 …
sql - Optimal way to concatenate/aggregate strings - Stack Overflow
I'm finding a way to aggregate strings from different rows into a single row. I'm looking to do this in many different places, so having a function to facilitate this would be nice. I've tried solu...
Entity framework EF.Functions.Like vs string.Contains
Aug 14, 2017 · It says that they added new Sql functions like EF.Functions.Like for performing the SQL LIKE operation. I was wondering, what then would be the difference between …
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 …
sql - Built-in function to capitalise the first letter of each word ...
Mar 2, 2011 · This based on several years of perusing the available string-functions in T-SQL and some pretty recent 5-day courses in SQL Server 2008 R2. Of course, I still could be wrong :).
Using RegEx in SQL Server - Stack Overflow
Jan 19, 2012 · On-prem Microsoft SQL Server will gain the same regex feature in the next major release ("vNext" as they say; so, that'll be SQL Server 2025 presumably). The new set of …
How to convert all UPPER CASE text to Proper Case/Title Case in …
In SQL Server 2017 and above, you can achieve proper case by combining STRING_SPLIT, a CTE with ROW_NUMBER to maintain word order, and STRING_AGG to reassemble the string.
Is there an equivalent to the SUBSTRING function in MS Access …
Jun 9, 2015 · I want to do something like this within an MS Access query, but SUBSTRING is an undefined function. SELECT DISTINCT SUBSTRING(LastName, 1, 1) FROM Authors;
SQL MAX function in non-numeric columns - Stack Overflow
Sep 1, 2013 · As far as I understand the MAX function, it shall return a maximum value from a given column. In case of numeric values, for example a salary column, it is clear for me - and …
Split Spark dataframe string column into multiple columns
173 pyspark.sql.functions.split() is the right approach here - you simply need to flatten the nested ArrayType column into multiple top-level columns. In this case, where each array only contains …