Re: PostgreSQL vs Mysql comparison

From: Michael Widenius <monty(at)monty(dot)pp(dot)sci(dot)fi>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: The Hermit Hacker <scrappy(at)hub(dot)org>, Martin Ramsch <m(dot)ramsch(at)computer(dot)org>, MySQL mailing list <mysql(at)lists(dot)mysql(dot)com>, postgresql-general <pgsql-general(at)postgreSQL(dot)org>, randyboy <randyboy(at)whispers(dot)blackmist(dot)org>, Paul DuBois <paul(at)snake(dot)net>, Patrick Greenwell <patrick(at)stealthgeeks(dot)net>, Scott Perkins <2scott(at)bellsouth(dot)net>, mcgarry(at)tig(dot)com(dot)au
Subject: Re: PostgreSQL vs Mysql comparison
Date: 1999-10-07 13:27:05
Message-ID: 14332.40536.859315.44763@monty.pp.sci.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>>>> "Bruce" == Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:

>> On Thu, 7 Oct 1999, Michael Widenius wrote:
>>
>> > As you may have seen on the postgreSQL list, crash-me was actually
>> > right that postgreSQL didn't support -- comments and HAVING as
>> > required by ANSI SQL. Isn't it nice that we help you fix your bugs?
>>
>> Actually, I believe Thomas did research on this point (or was it Tom?) and
>> determined that HAVING w/o aggregates is *not* required by ANSI SQL ...
>> could out point out where this requirement is listed? *raised eyebrow*

According to C.J.DATE, A Guide to the SQL standard, forth edition,
page 155, one is allowed in ANSI SQL to use HAVING with any GROUP BY
statement. One is also allowed to use any scalar functions in the
HAVING part as long as the scalar value is single-value per group.

Where did Thomas/Tom look this up?

Bruce> Seems we will downgrade it to a warning. Too many people misunderstand
Bruce> HAVING vs. WHERE, so a nice warning would help new users.

Should you really give a warning for something that is correct ANSI SQL ?

Regards,
Monty

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Widenius 1999-10-07 13:36:04 Re: [PHP3] Re: PostgreSQL vs Mysql comparison
Previous Message Allan Huffman 1999-10-07 13:10:22 PostgreSQL