![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I'm curious as to SQL with Common Table Expressions is Turing Complete. *Is there some kind of proof either way? |
#3
| |||
| |||
|
|
On May 4, 1:13Â*pm, da... (AT) fetter (DOT) org (David Fetter) wrote: Hello, I'm curious as to SQL with Common Table Expressions is Turing Complete. Â*Is there some kind of proof either way? What allowed in CTE expression is critical. If recursion is linear |
|
and no subqueries are allowed, |
|
then showing that basic SQL (select+project +join+union+CTE) might be tough. Otherwise, one can approach the problem by simulating a known turing complete cellular automaton (such as rule 110). |
#4
| |||
| |||
|
|
Tegiri Nenashi <TegiriNena... (AT) gmail (DOT) com> wrote: On May 4, 1:13*pm, da... (AT) fetter (DOT) org (David Fetter) wrote: Hello, I'm curious as to SQL with Common Table Expressions is Turing Complete. *Is there some kind of proof either way? What allowed in CTE expression is critical. *If recursion is linear As opposed to mutual recursion? and no subqueries are allowed, Where would they be disallowed? |
![]() |
| Thread Tools | |
| Display Modes | |
| |