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 hand tying one ribbon to each blackberry bush along a lane that has at least one ripe berry.

EXISTS vs IN vs JOIN: Writing Semi-Joins

June 1, 2024
Pinal Dave
SQL Performance
SQL Joins, SQL NULL, SQL Server, SQL Sub Query

Compare EXISTS, IN, and JOIN for semi-joins, prevent duplicate customer rows, and handle NULL safely in exclusion queries.

Read More
A sloping egg rack at a market stall, one hand taking the oldest egg from the front, another adding a fresh one.

DELETE TOP With ORDER BY: Removing the Oldest Rows First

May 1, 2024
Pinal Dave
SQL Tips and Tricks
CTE, SQL Delete, SQL Order By, SQL Server, SQL Top

Use DELETE TOP safely through an ordered CTE, preview oldest rows, apply a supporting index, and remove eligible rows in bounded batches.

Read More
A hand placing the last berries on a fruit tart as guests arrive, the pattern not perfect but ready to serve.

Optimizer Timeouts: Reason for Early Termination in a Plan

April 1, 2024
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL Performance, SQL Server, SQL XML

Diagnose optimizer early termination in SQL Server plans, find cached timeouts with XML, and simplify queries using measured evidence.

Read More
A groundskeeper pushing a line-marking cart across an empty field, painting the first boundary line.

Turning a Business Question Into a Query: Define the Metric First

March 1, 2024
Pinal Dave
SQL Tips and Tricks
Best Practices, Business Intelligence, SQL DateTime, SQL Reports, SQL Server

Turn a business question into a tested T-SQL metric with explicit time zones, cancellations, returns, and a hand-checked sample.

Read More
Waves rolling onto a sandy beach, faint arcs left by earlier waves still showing on the wet sand.

Preparing Time Series Features in T-SQL: Lags and Rolling Windows

February 1, 2024
Pinal Dave
SQL Tips and Tricks
AI, SQL DateTime, SQL Scripts, SQL Server

Prepare time series features with LAG, prior-day rolling windows, calendar flags, and gap boundaries that prevent accidental continuity.

Read More
A heavy book chained to a wooden library lectern, a reader's hands resting on its closed cover.

Letting an LLM Query SQL Server Safely: A Read-Only Login and Guardrails

January 1, 2024
Pinal Dave
AI
AI, SQL Login, SQL Server, SQL Server Security, SQL View

Let an LLM query SQL Server through a restricted login, approved views, enforced row filtering, execution limits, and query auditing.

Read More
A straight hazel rod lying through the middle of scattered crocuses on a lawn, running on past them over bare grass.

A Simple Linear Regression Trend Line in T-SQL

December 1, 2023
Pinal Dave
SQL Tips and Tricks
Mathematical Function, Mathematics, SQL Scripts, SQL Server

Calculate linear regression slope, intercept, monthly predictions, and R-squared in T-SQL while keeping extrapolation limits clear.

Read More
Previous 1 2 3 4 5 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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