Thomas Kellerer <spam_eater@xxxxxxx> writes: > Merlin Moncure wrote on 31.10.2009 14:32: >> an oracle guy wrote an sql statement that solves a sudoku >> puzzle...using an oracle specific feature. Still, it's pretty neat, >> and an absolute gem of lateral thinking. >> >> http://technology.amis.nl/blog/6404/oracle-rdbms-11gr2-solving-a-sudoku-using-recursive-subquery-factoring > There is also a DB2 version: > http://forums.devshed.com/db2-development-114/absolute-sudoku-solver-641065.html The DB2 version looks amazingly brute-force :-( I think the Oracle guy's version could easily be adapted to PG 8.4 --- those little rownum subqueries seem to be just a substitute for not having generate_series(1,9), and everything else is just string-pushing. Don't have time to try it myself right now, though. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general