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
Gouache painting: on a tea shop counter three tea tins stand open on the left

XML nodes: Turn Repeated Elements Into Rows

May 13, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

XML nodes maps elements to rows. Extract values relative to each node, preserve duplicates, and review documents without matching children.

Read More
A long cord of wooden beads tied to a brass ring, every seventh bead red, a fingertip on the first

Finding the First Monday of Every Month in T-SQL

May 8, 2010
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

Calculate the first Monday without DATEFIRST, list a full year, find nth and last weekdays, and reuse the rules in an inline table function.

Read More
Gouache painting: in a railway yard, a long straight track runs left to right

geometry STCrosses: Crossing Depends on the Intersection Dimension

April 14, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STCrosses uses the dimension and interior position of the intersection to define crossing. I compare it with endpoint contact and collinear overlap. A shared point or segment does not automatically satisfy that definition.

Read More
Gouache painting: on a joiner's bench, a stout beam end has one dovetail-shaped socket

ISJSON Type Constraints: Validate the Top-Level Value

April 2, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

ISJSON type constraints distinguish JSON shapes. Compare VALUE and SCALAR, Boolean literals, JSON null and SQL NULL on SQL Server 2022.

Read More
Gouache painting: four hop poles stand in a row with uneven gaps, close, wider, close

datetime: Read Its Fractional-Second Rounding

March 23, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

datetime does not preserve every millisecond despite displaying three fractional digits. These typed conversions show its legacy rounding alongside the original datetime2 text.

Read More
Gouache painting: two long wooden boards lie parallel

JSON_ARRAY: Choose Whether NULL Elements Are Included

March 19, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022

JSON_ARRAY constructs typed array text. Choose whether missing inputs disappear or remain JSON null placeholders before relying on positions.

Read More
Gouache painting: on a sports room wall, three identical brass whistles hang in a row from wooden pegs

XML value: Select One Typed Scalar

March 16, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

XML value extracts one typed scalar. Use a singleton path, review conversion, and distinguish first-item selection from uniqueness.

Read More
Previous 1 … 50 51 52 53 54 55 56 … 92 Next
  • Books
  • Testimonials
  • Privacy Policy

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