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 - CONCAT function and NULL values

SQL SERVER – CONCAT function and NULL values

April 11, 2015
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL String

The CONCAT function and NULL values: CONCAT in SQL Server 2012 simply ignores NULL, while the + operator returns NULL. Here is a simple example.

Read More
Gouache painting: an empty wooden picture frame hanging on a plain wall with a faded sepia landscape painting already inside it, and one vermilion bookmark ribbon draped over the top edge

SQL SERVER – Quiz on knowing DATEPART and DATENAME Behaviors

April 1, 2015
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

DATEPART and DATENAME accept a string that holds only a time and fill in the missing date as January 1, 1900. This post keeps the quiz, runs every query on SQL Server 2025 and explains which of the five bonus queries work and why.

Read More
SQL SERVER - Interesting Function AGENT_DATETIME

SQL SERVER – Interesting Function AGENT_DATETIME

March 13, 2015
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function

AGENT_DATETIME in msdb converts integer date and time values in YYYYMMDD and HHMMSS format into a datetime. Here is how it works, with examples.

Read More
A selected red cup marks one position within a continuous seasonal storage sequence.

SQL SERVER – Converting YYYYDDD Ordinal Date Codes Safely

March 2, 2015
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

This Julian date example uses an ordinal YYYYDDD code. I distinguish that business encoding from an astronomical Julian day number.

Read More
Gouache painting: a plain cream ribbon unrolled along a short wooden shelf, the ribbon stopping at the shelf edge where one vermilion pin marks the last spot

SQL SERVER – Quiz with DATEADD Function – SQL Puzzle

February 17, 2015
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Function, SQL Scripts, SQL Server

The DATEADD function returns the last day of the month when the day does not exist, so one month after January 31 is February 28. This post keeps the quiz, runs every query on SQL Server 2025 and explains the month rule and the Msg 517 overflow with the real results.

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 in Sixty Seconds.

SQL SERVER – Identify and Filter In-Memory Optimized Tables – SQL in Sixty Seconds #079

January 7, 2015
Pinal Dave
SQL Video
In-Memory OLTP, SQL Error Messages, SQL Function, SQL in Sixty Seconds, SQL Server

How to identify and filter In-Memory Optimized Tables in SQL Server Management Studio, shown in a quick SQL in Sixty Seconds video.

Read More
Previous 1 … 23 24 25 26 27 28 29 … 92 Next
  • Books
  • Testimonials
  • Privacy Policy

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