T-SQL Parsing One Fruit per ColumnBelow is the code to add the new columns. Each fruit must ultimately be in its own column, […] November 21, 2021 in SQL Server tagged SQL Server Parsing Many Columns by Mike
T-SQL Parsing Better QueriesNow that we have finished “normalizing” our fruits, we can write much better queries against the data. We […] November 21, 2021 in SQL Server tagged SQL Server Parsing Many Columns by Mike
T-SQL Parsing To Get FrequencyThis post is about determining just how many parts there are in a string that is delimited with […] November 21, 2021 in SQL Server tagged sql / parse / SQL Server Parsing Many Columns by Mike
T-SQL Parsing Fruit ScriptBelow is the full script that you can use on your non-production server. This script is based on […] November 21, 2021 in SQL Server tagged SQL Server Parsing Many Columns by Mike
SQL Find Nth Occurrence of Char in a StringT-SQL’s CHARINDEX() function is useful for parsing out characters within a string. However, it only returns the first […] November 20, 2021 in SQL Server tagged character / char / string / parse / charindex / nth / occurrence by Mike
T-SQL Parsing Into Many ColumnsThis post is about working with one column in a SQL Server table that contains a comma-separated list […] November 20, 2021 in SQL Server tagged sql / T-SQL / csv / string / parse / split / fruit / SQL Server Parsing Many Columns by Mike
SQL Combining Two TablesThis post is about combining the data from two tables by adding columns, not rows. Here we think […] November 18, 2021 in SQL Server tagged combine / sql by Mike
SQL Server Table VariablesWhat is a table variable and when would you need to use it? A table variable is a […] November 18, 2021 in SQL Server by Mike
T-SQL Count Character OccurrencesDo you have a table in SQL Server that has a column with a string that has several […] November 16, 2021 in SQL Server tagged character / count / char / how / many / parts / occurrences / SQL Server Parsing by Mike
T-SQL Parse a String 2In this post I’ll discuss how to parse a string in SQL Server so that you can move […] November 16, 2021 in SQL Server tagged string / parse / SQL Server Parsing by Mike
T-SQL Parse a StringIn SQL Server, do you have a table with a column that has several values in it that […] November 15, 2021 in SQL Server tagged string / parse / charindex / substring / csv / SQL Server Parsing by Mike
Splitting a Large Text FileSome text files are so large that they become difficult to work with. For example, If you try […] November 14, 2021 in Database tagged file / text / csv / git / Bash / split / tsv / large by Mike