When you look at a query plan, SQL Server shows a tooltip with an Estimated Subtree Cost:


A long time ago in a galaxy far, far away, it meant the number of seconds it would take to run on one guy’s Dell desktop. These days, it’s just a set of hard-coded cost estimates around CPU & IO work requirements – it isn’t really tied to time at all.
One day when @Kendra_Little needed to explain the unit of measurement, she coined the term Query Bucks. That’s a great example of how she really brings SQL Server concepts to life in fun ways. (You should check out her training. Her classes are completely free right now, and I absolutely guarantee you’ll learn something from them. She’s one of the smartest people I’ve ever met.)
So this year for our PASS Summit pre-con on performance tuning, we thought it’d be fun to make Query Bucks a real, physical thing. Eric Larsen brought them to life – he’s the amazing illustrator who does all of our portraits, the operators at PasteThePlan, our Christmas cards, you name it. He’s super talented and really delivered:

We immortalized Kendra on her own query buck, plus one for each member of our team, then picked a couple of folks that have influenced our own query tuning careers: Paul White (@SQL_Kiwi) and Joe Sack (MrJoeSack). I am totally going to make the phrase “a stack of Paul Whites” a thing.






For the back, the person on the front picked their favorite query plan operator:

I’m tickled pink with how these turned out. This might be my favorite tangible thing that we’ve ever given away – and of course, attendees of our PASS Summit pre-con today all get a handful of Query Bucks. When they get back to the office, I fully expect them to be tipping their fellow DBAs and developers for jobs well done.
20 Comments. Leave new
My first thought was “who’s on the $2 bill” when I saw the picture of you holding them…
Somehow, I’m not surprised.
Maybe I’ll print out a stack of these, and use them to pay off bets to developers here, who could then redeem them for dedicated, uninterrupted troubleshooting time…
Jason – heh heh heh, yeah, I was either going to be the $2 or the $3.
My favorite part: “In Codd we trust”!
Jeff – hahaha, as soon as I knew we were doing currency, I had to do that.
Me too!
My first thought was “Why is there a shower head Behind Tara’s Head?”. IU could tell what it was in the second pic…
First thought: Itchy and Scratchy dollars. Last thought: Itchy and Scratchy dollars. “It works like real money, but it’s…fun.”
Isn’t the $20 the most counterfeit currency in the U.S.?
HAHAHA, yeah. We had to jump through hoops to make sure these were okay with the Secret Service, too. I had no idea there were so many rules around printing fake currency. Go figure.
This is AMAZING.
I’m going to figure out a good way to print these so they are decent quality and use them at work!
Hahaha, awesome, glad you liked ’em!
How could you leave Buck Woody out ?
Stephen – I love him dearly, but he doesn’t really work with query plans these days, so he didn’t make the cut.
Ha ha ha, it’s brilliant!
We are thinking about giving out salaries to our developers in such currency: D
Outstanding. Maybe you can add a $3 bill for Azure SQL, not sure what human to put on the front but maybe old Clippy has a nephew Cloudy. Put some spooler on the back.
Love These!
[…] Query Bucks – an excellent way to consider cost […]
[…] once I adding covering indexes until the whole plan was seek. And while I don’t recall the query buck costs or count of logical reads it seemed faster, but it’s eye opening to know that’s […]
“In Codd We Trust.” Perfect.
Link update for the courses:
https://www.littlekendra.com/coursesbytitle
https://sqlworkbooks.com doesn’t seem to be working any longer
Thanks, fixed!