aggregate function

Optimize Your SQL by Reformulating the Spec

  • Article

As SQL developers, we tend to think of performance tuning in terms of crafting the best table indices, avoiding scalar and table valued functions, and analyzing query plans (among other things). But sometimes going back to the spec and applying some properties of elementary math can be the best way to begin to improve performance of SQL queries which implement mathematical formulas. This article is a case study of how I used this technique to optimize my SQL implementation of the Inverse Simpson Index.

5 (3)

2021-05-07 (first published: )

4,608 reads

Blogs

Updated Pluralsight Course – Managing the Kubernetes API Server and Pods

By

My updated course “Managing the Kubernetes API Server and Pods” in now available on Pluralsight here! If...

Daily Coping 11 May 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

What do you do when technology changes? : T-SQL Tuesday #138

By

Our host for this month’s TSQL Tuesday is Andy Leonard (blog|twitter). He’d like us...

Read the latest Blogs

Forums

Copy value from one row to another if column matches

By bent

Hi there, I just don't get it. Need to update rows in same table....

Does lastBatch in sp_who2 really mean the time the user execute a SQL batch

By sqlfriend

I usually use sp_who2 see who is connected and is active in the SQL...

How to take a value hhmmss from the file

By Guvera

Hello, I have a file in this format "Vendor_ABC_Pro_20210422T205535". In this file, we have...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers