top | item 45628356

(no title)

petalmind | 4 months ago

> Overusing DISTINCT to “Fix” Duplicates

I wrote a small tutorial (~9000 words in two parts) on how to design complicated queries so that they don't need DISTINCT and are basically correct by construction.

https://kb.databasedesignbook.com/posts/systematic-design-of...

discuss

order

joshmn|4 months ago

Nice articles in there. Bookmarked.

Edit: it’s also actually a book!