This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Two hands husking corn at a market stall, stripped husks heaped aside and clean cobs in a bowl.

Cleaning Currency Strings Into decimal Values

August 1, 2024
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server, SQL String

Convert currency strings into decimal amounts using known symbols, explicit parsing cultures, conversion checks, and rejection evidence.

Read More
CHARINDEX

SQL SERVER – A Comparison of CHARINDEX vs LIKE

September 26, 2023
Pinal Dave
SQL Performance
SQL Function, SQL Performance, SQL String

In this post, we’ll explore a comparison between the use of CHARINDEX and LIKE in the WHERE clause, supported by real-world statistics.

Read More
A pear tree trained flat against a brick wall, a finger tracing one branch from the trunk to a single pear.

Materialized Path Hierarchies: Storing the Path as a String

August 28, 2023
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL String, SQL Table Operation

Build a materialized path hierarchy in T-SQL, query descendants, calculate depth, and move a subtree without creating cycles.

Read More
STRING-AGG-Function

SQL SERVER – STRING_AGG Function to Concatenate Strings

July 21, 2023
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL String

We were able to improve the performance of the query by using STRING_AGG Function to Concatenate Strings. Let us learn.

Read More
common table expression

SQL SERVER – Replacing a Cursor with a Common Table Expression

July 3, 2023
Pinal Dave
SQL Performance
CTE, SQL Cursor, SQL String

Let us learn today – How I was able to improve the query performance by replacing the cursor with a common table expression (CTE).

Read More
Gouache painting of two nearly identical potted plants on a windowsill with a small vermilion watering can between them.

EDIT_DISTANCE and JARO_WINKLER: Fuzzy String Matching in SQL Server 2025

May 24, 2021
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

EDIT_DISTANCE counts the single-character changes between two strings, and the JARO_WINKLER functions score how alike they look. This post tests the four preview functions on SQL Server 2025, shows the Windows collation error and its fix, and finds near-duplicate customer names.

Read More
Case-Sensitive Search

Case-Sensitive Search – SQL in Sixty Seconds #158

March 16, 2021
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Server, SQL String

Earlier I wrote a blog post about SQL SERVER – Case-Sensitive Search. Lots of people said I should make a video on this topic.

Read More
1 2 3 4 … 22 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com