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
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
A half-full mailbag hanging open on a frame, a hand adding envelopes, full bags tied shut beside it.

The Columnstore Delta Store: Small Loads and Open Rowgroups

November 3, 2023
Pinal Dave
SQL Performance
ColumnStore Index, SQL Index, SQL Performance, SQL Server

Inspect the columnstore delta store, distinguish rowgroup states, and choose load sizes or targeted compression after small loads.

Read More
A wardrobe of shirts hung in color order, a hand reaching into one section, a few shirts out of place

Ordered Clustered Columnstore Index for Better Rowgroup Elimination

October 27, 2023
Pinal Dave
SQL Performance
ColumnStore Index, Data Warehousing, SQL Server, SQL Server 2022

Build an ordered clustered columnstore on SaleDate, compare segment ranges and skipped segments, and review how later loads affect order.

Read More
Five wooden trugs of carrots sorted by length at the end of a vegetable bed, heaped to different heights.

Histogram Buckets in T-SQL: Counting Values per Range

October 12, 2023
Pinal Dave
SQL Tips and Tricks
Data Visualization, SQL Joins, SQL Scripts, SQL Server

Create histogram buckets in T-SQL with fixed widths or explicit ranges, retain empty buckets, and display scaled text bars.

Read More
A large and a small copy of the same book on a library shelf, a hand sliding the small one back out.

Case-Insensitive Unique Constraints in a Case-Sensitive Database

September 25, 2023
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Collation, SQL Constraint and Keys, SQL Index, SQL Server

Enforce case-insensitive unique user names in a case-sensitive database using an indexed computed column with an explicit collation.

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

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