
Query Exercise: Why Are These 3 Estimates So Wrong?
Our prior Query Exercise introduced SQL Server’s 201 buckets problem: its inability to accurately estimate rows for more […]
Our prior Query Exercise introduced SQL Server’s 201 buckets problem: its inability to accurately estimate rows for more […]
In this week’s Query Exercise challenge, I explained SQL Server’s 201 buckets problem. SQL Server’s statistics only handle […]
When you run a query, SQL Server needs to estimate the number of matching rows it’ll find – […]
These two queries both get the same answer from the Stack Overflow database: SELECT TOP 1 LastAccessDate FROM […]
Take any size of the Stack Overflow database and check out the WebsiteUrl column of the Users table: […]
What are the best days of the week and times of the day to post a question at […]
For this week’s Query Exercise, your challenge is to find out who keeps messing up the rows in […]
For this week’s query exercise, let’s start with a brief query to get a quick preview of what […]
For this week’s Query Exercise, we’re working with the Stack Overflow database, and our business users have asked […]
Our developers have come to us with a problem query that isn’t as fast as they’d like. Using […]
Your challenge for this week is to tune a query. Say Stack Overflow has a dashboard that shows […]
For this week’s Query Exercise, we’re going to start with an existing query that has performance problems from […]
If we’ve gotta take the database down for maintenance – perhaps a version upgrade, perhaps upgrading our own […]
For 2024, I’m trying something new: weekly homework challenges! For this week’s query challenge, we’re going to do […]
Your Query Exercise was to find foreign key problems: data that might stop us from successfully implementing foreign […]
For 2024, I’m trying something new: weekly homework challenges! For this week, let’s say we’ve decided to implement […]