aggregate function

SQLServerCentral Article

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: )

5,241 reads

Blogs

Daily Coping 5 Oct 2022

By

Today’s coping tip is to choose to see your mistakes as steps to help...

Restore HEADERONLY and FILELISTONLY

By

Good day reader.  This post is coming to you from a busy week in...

DevOps From Redgate

By

In a few weeks at the PASS Data Community Summit, I’ll be joining several...

Read the latest Blogs

Forums

The ORDER BY clause is invalid in views

By micky007

Hi, I'm trying to run the below SQL code but I'm getting this error:...

SQL Server Windows NT - 64 bit" in Task Manager: CPU high

By EL-wakil

  Hello ,   The SQL Server Windows NT - 64 bit" in Task...

Shutdown without NOWAIT

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Shutdown without NOWAIT

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers