Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Getting unique names in a col
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
![]() |
![]() |