pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: M. Imran <imran@sdpi.org>
To: pgsql-admin@postgresql.org
Subject: Query Question
Date: Mon, 10 Oct 2005 15:20:47 +0500
Message-ID: <01c201c5cd84$4a2568f0$b901a8c0@sdp.org> (raw)

Dear all,
    I want to select distinct CODE and thier respective sex, sex can be  male/female, can I get my result strictly distinct in code. Currently it duplicate code value for each male and female. I am using this query 

select distinct(code), id  from table

Regards,
imran

view thread (2+ messages)  latest in thread

Message-ID: <01c201c5cd84$4a2568f0$b901a8c0@sdp.org>
Permalink:  ../01c201c5cd84$4a2568f0$b901a8c0@sdp.org/
Also on:    postgresql.org/message-id/01c201c5cd84$4a2568f0$b901a8c0@sdp.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: imran@sdpi.org
  Subject: Re: Query Question
  In-Reply-To: <01c201c5cd84$4a2568f0$b901a8c0@sdp.org>
  References: <01c201c5cd84$4a2568f0$b901a8c0@sdp.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox