Quantcast
Channel: top – SQLPerformance.com
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Working Around Missed Optimizations

In my last post, we saw how a query featuring a scalar aggregate could be transformed by the optimizer to a more efficient form. As a reminder, here’s the schema again: CREATE TABLE dbo.T1 (pk integer...

View Article



Image may be NSFW.
Clik here to view.

Performance Surprises and Assumptions : Arbitrary TOP 1

In a recent thread on StackExchange, a user had the following issue: I want a query that returns the first person in the table with a GroupID = 2. If nobody with a GroupID = 2 exists, I want the first...

View Article
Browsing all 2 articles
Browse latest View live


Latest Images