Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] SQL discussion



On 1/14/2015 1:53 PM, markw at mohawksoft.com wrote:
> Yes, the language structure was designed to facilitate relational data.

No, and go read Jerry's post from this morning for details.


>> Because SQL is built on two dimensional algebra. Two dimensional math
>> cannot easily encompass three or more dimensions.
>
> That's like saying you can't represent 3 dimensions on a piece of paper.

No, it's not. You can represent 3 or 4 or 8 dimensions on a piece of 
paper. That's not the same as being easy to represent 3 or 4 or 8 
dimensions on a piece of paper.


> Why must you perform "multiple queries?" Its all how you choose to
> structure your data and how you choose to query it.

Precisely. What is the structure of a relational database? A table. A 
2-dimensional table. If you have 3 dimensions of data in a relational 
database system then you have a stack of tables. Standard SQL has 2 axes 
for queries: column and row. There is no way to query along the Z axis 
so you have to iterate your queries through the stack (or subset of the 
stack) of tables then combine and filter the results to get what you want.

Or you can use stored procedures or JOINs, both of which have their own 
sets of portability and scalability issues which I consider myself 
wholly unqualified to discuss since I'm not a DBA and I don't want to be 
one when I grow up. :)

-- 
Rich P.



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org