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
Four pale ceramic bowls in two pairs, three empty and the front-right bowl filled with blue pebbles.

IS DISTINCT FROM: Compare Nullable Values Without Sentinel Values

March 17, 2011
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Scripts, SQL Server, SQL Server 2022

IS DISTINCT FROM compares nullable values without inventing a sentinel. Test two NULLs, one NULL and changed values, then use the predicate to find transitions that ordinary equality can miss.

Read More
Twelve unmarked wooden blocks in a row with a separate red end block.

GTIN-13 Check Digits: Validate the Final Digit in a CHECK Constraint

March 16, 2011
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server

A GTIN-13 check digit validates a weighted checksum, not product identity. Test complete ASCII input, leading zeros and the final digit in a CHECK constraint, then see why some digit swaps still pass.

Read More
A detailed woodworking atelier shows one timber beam worked at two stations with coherent tools and careful joinery.

SQL Server Execution Plan Quiz: One Table, Two Operators

March 15, 2011
Pinal Dave
SQL Puzzle
Execution Plan, SQL Index, SQL Server

One table reference can produce Nested Loops, a Key Lookup and parallel operators in an execution plan. A controlled SQL example makes the work visible and shows why MAXDOP is a ceiling rather than a promise of parallel execution.

Read More
A set dining table with one chair pulled out and a red napkin on its plate, no one seated

Late-Arriving Dimension Rows: Inferred Members in a Data Warehouse

March 14, 2011
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, ETL, SQL Server

Handle a late-arriving dimension with inferred members, preserve fact keys, fill attributes later, and report unresolved placeholders.

Read More
A small camping stove with one simmering pot on a picnic table in a quiet clearing at dusk

LocalDB: SQL Server on a Developer’s Laptop

March 12, 2011
Pinal Dave
SQL Tips and Tricks
Developer, SQL Server, SQL Server Express, sqlcmd

LocalDB runs SQL Server Express engine features in a developer-friendly local process; learn how to start, connect, and recognize its limits.

Read More
Gouache painting: a triangular sheet of flatbread dough lies on a floured board with one hazelnut at each of its three corners

geometry STNumPoints: Closing Coordinates Count Again

March 10, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry STNumPoints counts coordinates in the spatial description. A square ring contains its closing coordinate as well as its four distinct corners.

Read More
Gouache painting: on a music room shelf, one tambourine hangs beside a stacked trio of tambourines

geometry STGeometryType: Type Names Say More Than Dimension

March 7, 2011
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STGeometryType identifies the represented shape type, which carries more information than its dimension. I compare single and multiple shapes in one small query. Equal dimensions do not mean that their structures are interchangeable.

Read More
Previous 1 … 323 324 325 326 327 328 329 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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