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
A mandoline slices a cucumber beside separate dishes of cucumber and radish slices.

Turning a Comma-Separated Column Into a Proper Child Table

December 20, 2010
Pinal Dave
SQL Tips and Tricks
CSV, Normalization, SQL Constraint and Keys, SQL String, SQL Table Operation

A list stuffed in one column makes every search a guess. Split it, clean it and move it into a child table, then check the result before you drop anything.

Read More
SQL SERVER - Concat Function in SQL Server - SQL Concatenation

SQL SERVER – Concat Function in SQL Server – SQL Concatenation

November 25, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL String

Is there a CONCAT function in SQL Server? An attendee said MySQL and Oracle have one. I show how the plus operator joins strings, numbers and column values.

Read More
A garden kneeler with new side handles beside an old muddy folded sack, a red trowel on its pad

CURRENT_DATE, || and Other Small T-SQL Changes in SQL Server 2025

November 11, 2010
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server, SQL String

Use CURRENT_DATE, string concatenation, optional SUBSTRING length and bigint DATEADD in SQL Server 2025 with clear examples and checks.

Read More
SQL SERVER – Get Numeric Value From Alpha Numeric String – Get Numbers Only

SQL SERVER – Get Numeric Value From Alpha Numeric String – Get Numbers Only

September 25, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Stored Procedure, SQL String

Reader Christofer improved my logic to get a numeric value from alpha numeric string data. His stored procedure uses REVERSE and PATINDEX.

Read More
SQL SERVER – Function to Retrieve First Word of Sentence – String Operation

SQL SERVER – Function to Retrieve First Word of Sentence – String Operation

August 20, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A friend asked for a UDF that returns only the first word of a sentence. Here is my script with CHARINDEX and SUBSTRING, and how to turn it into a function.

Read More
SQL SERVER - Finding the Occurrence of Character in String

SQL SERVER – Finding the Occurrence of Character in String

August 16, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A quick T-SQL method using LEN and REPLACE to count the occurrence of character or word in a string, written as a hint for TSQL Beginners Challenge 14.

Read More
QUOTENAME object names illustrated by a wooden tray divided into two compartments, with slate-blue and sage blocks.

QUOTENAME Object Names: Quote Each SQL Server Name Part

February 26, 2010
Pinal Dave
SQL Tips and Tricks
Developer, SQL Function, SQL Server, SQL String

QUOTENAME object names separately to keep each part of a qualified SQL Server name intact. The function surrounds its entire input with identifier delimiters. A dot inside that input stays inside one quoted name. I keep the schema and object in separate variables.

Read More
Previous 1 … 13 14 15 16 17 18 19 … 23 Next
  • Books
  • Testimonials
  • Privacy Policy

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