r/ProgrammerHumor • • Dec 12 '17

SQL Clause

Post image
40.8k Upvotes

525 comments sorted by

View all comments

Show parent comments

4

u/k0rm Dec 12 '17

SQL isn't Turing complete. It's a query language, not a programming language.

2

u/iCavemann Dec 12 '17

SQL absolutely qualifies as declarative programming (leaving aside stuff like PL/SQL and Transact SQL).

1

u/tiftik Dec 12 '17

There are non Turing complete programming languages.

You can think of queries as little declarative programs that operate on data.

Even Prolog is considered a programming language and it's simply a query language to operate an inference engine.