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: a row of four pear trees in an orchard

FIRST_VALUE IGNORE NULLS: Find the First Available Value

November 2, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022

FIRST_VALUE IGNORE NULLS selects the first present value through the current row. Preserve source rows and distinguish first from latest.

Read More
Beach towels laid edge to edge on the sand, seen from above, one red towel overlapping its neighbor

Preventing Overlapping Date Ranges in a Table

October 31, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL DateTime, SQL Server, SQL Transactions, SQL Trigger

Detect overlapping date ranges with joins and window queries, use half-open endpoints, and enforce the rule with a multirow trigger.

Read More
Gouache painting: a thick ring of clay hangs level from a single cord, attached to a thin wire cross that spans the ring's open center

geometry STCentroid: The Geometric Center Is Not an Interior Promise

October 30, 2009
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STCentroid returns a polygon’s geometric center, but that point is not a promise of interior placement. I keep the center calculation separate from an interior test. A holed region makes that distinction visible.

Read More
An electric kettle on a counter beside three different plug adapters, one of them fitted into the wall socket.

Environment Settings in SSIS Projects

October 25, 2009
Pinal Dave
SQL Tips and Tricks
ETL, SQL Server, SQL Server Configuration, SQL Server Security, SSIS

SSIS projects can deploy one package across environments by using project parameters, SSISDB variables, and tested references.

Read More
A hand working a sorting gate at a sheep pen, holding back one red-marked sheep

Validating JSON Parameters Before a Procedure Uses Them

October 23, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, JSON, SQL Server, SQL Stored Procedure

Learn validating JSON parameters before changing data with ISJSON, JSON_PATH_EXISTS, TRY_CAST, and a single clear list of input errors.

Read More
A drafting table with hand-drawn paper charts, a ruler and a cup of coffee, the charts too small to read.

SQL SERVER – Introduction to Business Intelligence – Important Terms & Definitions

October 21, 2009
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, SQL Server

What is Business Intelligence? A plain introduction to BI and the key terms that go with it, like decision support, data mining, OLAP, reporting and forecasting.

Read More
A shop door at dusk with the shutter half down and a blank red board hanging beside it

Adding Business Hours to a Timestamp in T-SQL

October 17, 2009
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

Add business hours through a stored work calendar, skip closed dates and nights, and calculate ticket deadlines without a minute loop.

Read More
Previous 1 … 352 353 354 355 356 357 358 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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