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

Home -> Community -> Usenet -> c.d.o.server -> Re: Getting unique names in a col

Re: Getting unique names in a col

From: Paul Druker <pdruker_at_metaway.com>
Date: 2000/08/09
Message-ID: <gD3k5.16093$c8.4511924@typhoon-news1.southeast.rr.com>#1/1

Bhavin,

You need to use

select distinct country from <table_name>;

HTH,
Paul

"Bhavin Shah" <bhavinsh_at_aludra.usc.edu> wrote in message news:Pine.GSO.4.21.0008081911500.17738-100000_at_aludra.usc.edu...
> Hi,
>
> How do you get a list of unique names within a
> column in sql?
>
> Ex:
>
> Country
> -------
>
> USA
> USA
> Argentina
> Bolivia
> USA
>
> I would like to only return USA,Argentina,Bolivia.
>
>
> Thanks in advance.
>
Received on Wed Aug 09 2000 - 00:00:00 CDT

Original text of this message

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