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
SQL SERVER - Script to Find Strings with Same Characters

SQL SERVER – Script to Find Strings with Same Characters

February 21, 2015
Pinal Dave
SQL Tips and Tricks
SQL String

Need to find strings with same characters, like KKK but not KKT? Here is a simple trick using REPLACE and LEFT, with no WHILE loop needed.

Read More
A hand stacking four identical flat caps, crumpled, inside out, wet and flattened, on a lost-property shelf

Finding Near-Duplicate Rows With REGEXP_REPLACE

January 28, 2015
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Function, SQL Server, SQL String

Find near-duplicate rows with SQL Server 2025 normalization, group matching labels, rank survivors, and preserve originals for review.

Read More
SQL SERVER - Reverse String Word By Word - Part 4

SQL SERVER – Reverse String Word By Word Part 4

December 19, 2014
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL String

In Reverse String Word By Word Part 4, Paul G slices the string by a delimiter and rebuilds it in reverse order. Here is his full script.

Read More
SQL SERVER - Reverse String Word By Word - Part 3

SQL SERVER – Reverse String Word By Word Part 3

December 17, 2014
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL String

Reverse String Word By Word Part 3 shows Yuri Petrov’s way to reverse words in a sentence, using an auxiliary numbers table in two parts.

Read More
SQL SERVER - Reverse String Word By Word - Part 2

SQL SERVER – Reverse String Word By Word Part 2

December 15, 2014
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

In Reverse String Word By Word Part 2, Sanjay Monpara and Yuri Petrov improve my script. The new, more robust version uses a Split function.

Read More
SQL SERVER - Reverse String Word By Word

SQL SERVER – Reverse String Word By Word

December 6, 2014
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A reader wanted to reverse string word by word, so “I am Pinal Dave” becomes “Dave Pinal am I”. Here is the function that does it.

Read More
Gouache painting: a row of identical grey pebbles on a pale windowsill, one of them clear glass that catches the light, with a thin vermilion thread tied around it

ISNUMERIC Puzzle: SQL in Sixty Seconds #076

October 29, 2014
Pinal Dave
SQL Video
SQL Datatype, SQL Function, SQL in Sixty Seconds, SQL String

The ISNUMERIC puzzle hides a tab character. Tests on SQL Server 2025 show which strings pass ISNUMERIC but fail TRY_CONVERT, how an empty string and a lone minus sign convert to 0, and how to find control characters in imported data with a short query.

Read More
Previous 1 … 5 6 7 8 9 10 11 … 23 Next
  • Books
  • Testimonials
  • Privacy Policy

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