The Database Doctor
Musing about Databases

Tag: sql

Cover image for Databases are just Loops - Part 2: GROUP BY
Databases are just Loops - Part 2: GROUP BY

In my previous post - I introduced the idea that you can think of database queries as a series of loops. Let me take this ideas even further - introducing more complex database concepts in...

Cover image for Databases are just Loops - Part 1: Joins
Databases are just Loops - Part 1: Joins

I decided to write this post in response to my recent discussions with Matt Martin. Matt and I have been sparring lately over software performance. During one of these discussions, the...

Cover image for Finding things in Data Models with Property Bags
Finding things in Data Models with Property Bags

When designing database schemas, you may find yourself needing to create a property bag table that is in a 1-n relationship with an entity table. It isn't always viable to just add more a...