SQL:2008 is Turing-complete [pdf,485k]
assets.en.oreilly.com
assets.en.oreilly.com
I didn't see a mention of SQL 2008. Or maybe that "SQL:2008" doesn't refer to SQL 2008 at all; but I couldn't find the string "2008" in the slides either, unless Spotlight is having a bad Wednesday.
I suspect the title of the post needs revision.
> "With CTE and Windowing, SQL is Turing Complete."
CTE (Common Table Expressions) were introduced in the SQL:1999 standard, window functions were introduced in the SQL:2003 standard. PostgreSQL implemented both CTEs and window functions in PostgreSQL 8.4.
The original title of the paper is much better than this title ("High Performance SQL with PostgreSQL").
SELECT '<html>' ...
They're pretty successful commercially. Apparently the approach is practical because it doesn't have many layers.SQL Server 2005 could do the Mandlebrot too: http://thedailywtf.com/Articles/Stupid-Coding-Tricks-The-TSQ...