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)

You rated this post out of 5. Change rating

2021-05-07 (first published: )

5,385 reads

Blogs

Scooby Dooing Episode 10: The Case of the Copy-and-Paste Consultant

By

Every Scooby-Doo episode has one thing in common — there’s always a fake ghost....

Regression Testing: DAX User Defined Functions

By

User Defined Functions is a new feature in PowerBI currently in public preview. There...

The fundamental requirements of a reporting system

By

There are some fundamental boxes that your reporting system must tick. ✅ The figures...

Read the latest Blogs

Forums

Dts.Events.FireInformation - Is there a way to get this to log?

By Pete Bishop

Using FireInformation is useful when running interactively as the messages appear in the Progress...

Varchar(max) to lines

By bswhipp

I have an issue with a varchar(max) field with up to 7000 characters needing...

SQL MI Next-gen general purpose tier

By SqlAdmin001

Has anyone used Azure SQL MI on the next-gen general purpose tier, Microsoft documentation...

Visit the forum

Question of the Day

The Last Good DBCC Run

I want to check when DBCC CHECKDB was last run on my Baseball database. What code should I use?

See possible answers