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 parse / sql / 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 char / string / parse / charindex / nth / occurrence / character 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 sql / combine 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 count / char / how / many / parts / occurrences / character / 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 parse / charindex / substring / csv / string / SQL Server Parsing by Mike
SQL Select DistinctSometimes a column in a table has repeating values and you want to know what the list of […] November 12, 2021 in SQL Server tagged distinct / unique by Mike
SQL Count NULLsHow many NULLs are there in a column? What would the SQL query be? For small tables you […] November 12, 2021 in SQL Server tagged count / null / SQL Count by Mike