Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: interesting "group by" usage

Re: interesting "group by" usage

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Tue, 06 Mar 2001 06:57:58 +0100
Message-ID: <22v8ato6ipp14ve3j3uuap0fc1eggputpi@4ax.com>

On Mon, 05 Mar 2001 17:55:27 -0600, Zhiliang Hu <zhu_at_genomicfx.com> wrote:

>
>I have a table that contains jobs done by different people
>at different times and I have a need to see a list of names
>with unique name entries. So I tried a
>
>> select fname, lname from job_done group by fname, lname;
>
>that works! ("not a group by expression" isn't it? ;-)
>-- indeed, when I tried the same thing through a web interface
>(via CGI <-> SQLPLUS) it complains "not a group by expression"
>Any thought why?
>
>Or is there an option that allows return of unique entries?
>(I didn't seem to find one).
>
>Zhiliang
>

select distinct fname, lname from job_done

Hth,

Sybrand Bakker, Oracle DBA Received on Mon Mar 05 2001 - 23:57:58 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US