Re: Is relational theory irrelevant? (was Re: Dreaming About Redesigning SQL)

From: Mikito Harakiri <mikharakiri_at_iahu.com>
Date: Mon, 10 Nov 2003 10:21:27 -0800
Message-ID: <bQQrb.17$24.25_at_news.oracle.com>


"Bob Badour" <bbadour_at_golden.net> wrote in message news:sZqdnURpMcikvzKi4p2dnA_at_golden.net...
> "Mikito Harakiri" <mikharakiri_at_yahoo.com> wrote in message
> news:bdf69bdf.0311092059.7fa5b13f_at_posting.google.com...
> > "Bob Badour" <bbadour_at_golden.net> wrote in message
> > > Express a quota query.
> >
> > select top 5 * from (
> > select * from emp order by sal
> > )
> >
> > What is the problem, besides "5*from" looking ugly?
>
> The ordered operand.

OK. Then

select EX.EMP#
from EMP EX
where (select count(1)

        from EMP EY
        where EY.HEIGHT < EX.HEIGHT) < 5
Received on Mon Nov 10 2003 - 19:21:27 CET

Original text of this message