Sql Antipatterns Strike Back
Common blunders of SQL database design, queries, and software development. Presented as a tutorial at the MySQL Conference & Expo 2009.
Common blunders of SQL database design, queries, and software development. Presented as a tutorial at the MySQL Conference & Expo 2009.
Embed Views
| http://jdobbie.blogspot.com |
1074 |
| http://www.it4business.ru |
469 |
| http://pwfisher.com |
271 |
| http://www.graph-database.org |
249 |
| http://www.coderholic.com |
233 |
| http://www.slideshare.net |
144 |
| http://blog.meta.ua |
90 |
| http://moskalyuk.name |
81 |
| http://www.kupreev.com |
48 |
| http://jayant7k.blogspot.com |
44 |
| http://www.stetsenko.net |
43 |
| http://kupreev.com |
41 |
| http://www.blinkoftheday.com |
40 |
| http://it4business.ru |
40 |
| http://rubyrailsandwindows.blogspot.com |
28 |
| http://lj-toys.com |
22 |
| http://blog.klaushofeditz.de |
17 |
| http://www.pwfisher.com |
11 |
| http://twitter.com |
10 |
| http://web |
8 |
| http://oo-programming.blogspot.com |
8 |
| http://software-testing.ru |
6 |
| http://jayantkumar.in |
4 |
| http://xss.yandex.net |
4 |
| http://paper.li |
4 |
| http://localhost |
3 |
| http://translate.googleusercontent.com |
3 |
| http://www.e-presentations.us |
2 |
| http://hdknr.posterous.com |
2 |
| https://twitter.com |
2 |
| http://russomi.blogspot.com |
2 |
| http://graph-databases.org |
1 |
| http://feeds.feedburner.com |
1 |
| http://209.85.229.132 |
1 |
| http://eddieawad.com |
1 |
More...
Statistics
- Favorites
- 112
- Downloads
- 1,468
- Embed Views
- 3,007
- Views on SlideShare
- 41,257
- Total Views
- 44,264
I would have thought that, if there were 10 nodes, the maximum number of rows in the closure table would be 10 x 9 x 8 x 7 x ...etc... No? 2 months ago Reply
You're right about CONNECT BY syntax in Oracle. There's also a SQL-2003 syntax for 'common table expressions' that allows you to run recursive queries for Adjacency List tree designs (among other uses). As far as I know, Microsoft SQL Server, IBM DB2, and the recently released PostgreSQL 8.4 support this syntax (see http://wiki.postgresql.org/wiki/CTEReadme). 2 years ago Reply
I think I found some typos: Slide 58, Nested Sets - I think you have the definition of comment left/right flipped around. Right number is GREATER than, and left number is LESS than descendants, no?
Slide 61and 63 have a SQL error: I think 'descendent.left' should be 'descendent.nsleft'.
Not sure if it's worth adding, but of course some of the commercial RDBMS out there have addressed some of the challenges you mentioned. For example, Oracle has the CONNECT BY clause, which might be employed to address some of the Naive Tree examples. But then... you have to pay a lot of $$$ for Oracle! :)
thanks again 2 years ago Reply