Pete Tonkin (@sql_pete) header
Pete Tonkin (@sql_pete) profile picture

Be good to your data, and it'll be good to you.

Bournemouth, England
Joined August 2015
[Blog] : Advanced report examples using PIVOT and GROUPING SETS I show how I combine GROUPING SETS and PIVOT to get crosstab-style reports without Excel. mssqltips.com/sqlservertip/7…
2
1
11
There’s a special place in hell for people who name their sub-directories in the MMM-YY date format. #baffled
1
If I had 50p for every time I forgot that UNION (as opposed to UNION ALL) does an implicit DISTINCT behind the scenes, I’d have well over £5 by now.
1
If you ever find yourself having to use DATETIMEOFFSET in SQL Server, can I recommend (a) holy water, (b) finding a less stressful job; base-jumping with live tigers strapped to you, maybe.
Pete Tonkin retweeted
New essay by me in the New Yorker. When it comes to data - in order to count - one must first decide what should be counted. newyorker.com/magazine/2021/…
17
189
82
738
Too early in the morning for this nonsense:
1
Good morning! I constantly feel like a fraud. I know a few of you do too. I'm told it's normal. The principal key to dealing with this is simple: Fake it till you make it. Just do the work. Pretend you are what you are not and do the work.
3
2
1
24
Pete Tonkin retweeted
Importing data into #AzureSQL is a common task: I have created a repo to provide working code samples to that task easy and quick. Powershell, AZ CLI, BCP, BULK INSERT, Data Factory and Apache Spark are all covered. Enjoy! lnkd.in/dbnRwxs
1
22
1
37
This was a really informative watch, recommended!
[From the best of the blog archives:] 7 Ways Your Data Is Telling You It’s a Graph by Karen López (@datachick) Read now: r.neo4j.com/2J1h4kS #GraphDatabases #DataModel #GraphDataModel
Ok, this is too much. “the introduction of LAMBDA makes the Excel formula language Turing Complete” techcommunity.microsoft.com/… tl;dr LAMBDA() lets you name any Excel formula you have written so you can then simply call it by name.
This post is from an account that no longer exists. Learn more
15
24
1
236
The GREATEST holiday gift that you LEAST expected... reddit.com/r/SQLServer/comme… Happy holiday everyone!
3
10
3
43
Turns out my definition of “self-join” is NOT the same as SQL Server’s ; you can’t join to the same table twice in an indexed view, which has ruined my morning’s work!
(And don’t get me started on how slow it is...)
Honestly, it’s hideous. Put off any Azure migration for as long as you can - preferably until retirement.
1
Every day, it kills me that you can’t do cross-db joins in Azure. It’s like trying to run a race with your legs tied together.