Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > difference betw...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 3094 of 3323
Post > Topic >>

difference between 'where' and 'having'

by adam.sindelar@[EMAIL PROTECTED] ("=?UTF-8?Q?Adam_=C5=A0indel=C3=A1=C5=99 Apr 28, 2008 at 09:22 PM

------=_Part_6740_11043075.1209410531406
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi, I have a question, that's probably really stupid, but could someone
please explain to me what difference there is between a WHERE clause and a
HAVING clause besides the syntax? I read the do***entation where it states
that:

Expressions in the HAVING clause can refer both to grouped expressions and
to ungrouped expressions (which necessarily involve an aggregate
function).

I've been happily working with Postgres for a long time, and not once have
I
ever used a HAVING in my queries, even in fairly complex ones, and I just
can't bear the suspense anymore! :)

Thanks in advance for clearing this up for me.

Adam

------=_Part_6740_11043075.1209410531406
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi, I have a question, that&#39;s probably really stupid, but could
someone please explain to me what difference there is between a WHERE
clause and a HAVING clause besides the syntax? I read the do***entation
where it states that:<br>
<br>Expressions in the <tt class="LITERAL">HAVING</tt> clause can refer
both to grouped expressions and to ungrouped expressions (which
necessarily involve an aggregate function).<br><br>I&#39;ve been happily
working with Postgres for a long time, and not once have I ever used a
HAVING in my queries, even in fairly complex ones, and I just can&#39;t
bear the suspense anymore! :)<br>
<br>Thanks in advance for clearing this up for me.<br><br>Adam<br>

------=_Part_6740_11043075.1209410531406--
 




 4 Posts in Topic:
difference between 'where' and 'having'
adam.sindelar@[EMAIL PROT  2008-04-28 21:22:11 
Re: difference between 'where' and 'having'
tgl@[EMAIL PROTECTED] (T  2008-04-28 15:56:57 
Re: difference between 'where' and 'having'
nobs@[EMAIL PROTECTED] (  2008-04-28 22:41:08 
Re: difference between 'where' and 'having'
adam.sindelar@[EMAIL PROT  2008-04-28 23:10:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 6:03:10 CST 2008.