pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: A. R. Van Hook <hook@lake-lotawana.mo.us>
Cc: postgresql sql list <pgsql-sql@postgresql.org>
Subject: Re: wrong answer
Date: Tue, 21 Aug 2007 14:23:12 +0100
Message-ID: <46CAE740.1000304@archonet.com> (raw)
In-Reply-To: <46CAE41E.8020707@lake-lotawana.mo.us>
References: <46CAE41E.8020707@lake-lotawana.mo.us>

A. R. Van Hook wrote:
> I have a simple (and incorrect queuer) that gives the wrong answer.
> Can someone show me the correct syntax?
> t
> "select sum(s.ref), r.value, s.ref from registry as s
           ^^^
Simple typo - you've used sum() not count()

>     qs "select count(*) from registry where ref =3"

-- 
   Richard Huxton
   Archonet Ltd



view thread (2+ messages)

Message-ID: <46CAE740.1000304@archonet.com>
Permalink:  ../46CAE740.1000304@archonet.com/
Also on:    postgresql.org/message-id/46CAE740.1000304@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, hook@lake-lotawana.mo.us
  Subject: Re: wrong answer
  In-Reply-To: <46CAE740.1000304@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox