Sql-Server

BETWEEN vs >= and <=

I love it when I get queries that are actually easy to answer.

Today, one of my developer friends asked me if it was better to use BETWEEN or to use >= and <= when filtering for a range of dates.

From a logic perspective, I like the idea that a single predicate expresses your intent rather than needing two predicates to do the same. For example, consider the following two queries:

2016-03-02

Database on a diet (Part 1)

Hi Folks,

My next article for SQL Server Magazine is out now. I’ve decided that New Year is the time that most people discuss diets and databases don’t have to be an exception.

I’m discussing one large client who had a database that really needed to be trimmed down. That involved a whole range of mechanisms and the outcome was great: major size reduction and significant performance improvement.

I’ve decided to discuss this across a series of articles, each covering part of the story about how the reductions were produced and the rationale for each.

2016-01-28

My Sessions from Ignite Australia on the Gold Coast now online

Hi Folks,

Couldn’t make it to Ignite? The team from Microsoft Australia recorded all the sessions and they are online now.

Here are the three sessions that I delivered:

Azure Datacamp Power Hour:  NOTE: This event is now closed

Things I Wish Developers Knew About SQL Server: NOTE: This event is now closed

Working With SQL Server Spatial: NOTE: This event is now closed

Enjoy!

2015-12-11

AzureCon is this month–register now!

AzureCon is the main #Azure related conference each year, and of course, it’s an online conference.

It’s coming up at the end of this month (September).

It’s time to register to see what ScottGu and the people from the Azure team have to tell us.

NOTE: This event is now closed

2015-09-10