This site is a way for me to share photos and blog posts.
The blog will not be a diary, but instead a way of storing technical solutions and information.
As a professional computer programmer (and part time DBA/SysAdmin) it is a daily occurrence that I need to figure out technical solutions. And being human, I regularly forget what those solutions were.
So the blog is a way for me to quickly find the answer I've already worked out once, and hopefully other people on the web will discover them and find the information useful.
It will not be regularly updated!
Latest Blog...
TSQL Efficient "Not Exists"
A more efficient way of writing a not-exists statement
I used to write queries such as...
DELETE FROM [MyTable]
WHERE [Id] NOT IN (SELECT [Id] FROM [OtherTable])
However, I've recently discovered that the NOT IN is very inefficient. Instead I now use the following format...
DELETE FROM MT
FROM [MyTable] MT
WHERE NOT EXISTS (
SELECT 1
FROM [OtherTable] OT
WHERE OT.[Id] = MT.[Id]
)
At first glance it looks more inefficient, but apparently not
Added 01/12/2026 11:49