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: DISTINCT

Re: DISTINCT

From: Lothar Armbüster <lothar.armbruester_at_rheingau.netsurf.de>
Date: 20 Apr 98 20:37:16 +0100
Message-ID: <505.414T830T12373641@rheingau.netsurf.de>


On 20-Apr-98 15:51:31 Min Wang wrote:

>How to use distinct in query?

>Let's say there is table A

>X Y Z
>--------
>1 2 3
>1 2 4
>1 3 3

>How to get distinct X, Z when query Z=3? Say, we just want show (1, 3)
>instead of (1,3), (1,3).
>Thanks.

Hello,
try this:

select distinct x,z from a
where z=3;

Hope that helps,
Lothar

--

Lothar Armbrüster       | lothar.armbruester_at_rheingau.netsurf.de
Schulstr. 12            | lothar.armbruester_at_t-online.de
D-65375 Oestrich-Winkel |

Received on Mon Apr 20 1998 - 14:37:16 CDT

Original text of this message

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