Re: Problem with SQL!!

From: Lun Wing San <wslun_at_hkpc.org>
Date: 1996/11/06
Message-ID: <3281426A.53C9_at_hkpc.org>#1/1


Simon Mercer wrote:

> column1 | column2
> 0 100
> 1 100
> 2 100
> 3 200
> 4 200
>
> - where column1 is the primary key.
>
> All I want to get is, for each value in column2, the lowest value
> in column1;
>
> 0 | 100
> 3 | 200

   select min(column1), column2 from table_t group by column2

-- 
Name        : Lun Wing San
Title       : Oracle developer of the Hong Kong Productivity Council
              System Administrator and Oracle DBA of the Quick Response
Center
Email Addr. : sunny_at_hkpc.org
Telephone   : 852-2788-5841
Received on Wed Nov 06 1996 - 00:00:00 CET

Original text of this message