Re: Extending my question. Was: The relational model and relational algebra - why did SQL become the industry standard?

From: Bob Badour <>
Date: Fri, 14 Feb 2003 00:00:33 -0500
Message-ID: <B3%2a.1428$>

"Mikito Harakiri" <> wrote in message news:tQY2a.19$
> "Bob Badour" <> wrote in message
> news:RHY2a.1418$
> > I wonder why someone would request:
> >
> > select SUM(SAL) from (
> > select SAL from emp
> > )
> >
> > when one wants the sum of all salaries.
> <user's logic>
> I want the sum of all salaries. There are a lot of confusing columns in
> Emp view, but I think that all the columns other than Sal are not
> for the question I'm asking. Therefore, let's project them away. Now I'm
> adding up all the salaries. Why the hell am I short of $100K?
> </user's logic>

Frankly, I think you are stretching your user's logic beyond the credible. All those confusing columns are irrelevant to

select SUM(SAL) from emp

which is almost as simple from the user's perspective as is

select SAL from emp

Your example assumes your users lack sufficient knowledge and training to formulate even the simplest of queries. If that is the case, they are as likely to get incorrect or incomprehensible results with a multiset dbms as with a relational dbms. Received on Fri Feb 14 2003 - 06:00:33 CET

Original text of this message