| От | Michael Fuhr |
|---|---|
| Тема | Re: Query Question |
| Дата | |
| Msg-id | 20051010133730.GA98353@winnie.fuhr.org обсуждение |
| Ответ на | Query Question ("M. Imran" <imran@sdpi.org>) |
| Список | pgsql-admin |
On Mon, Oct 10, 2005 at 03:20:47PM +0500, M. Imran wrote: > 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 It's not clear what you're trying to do. Could you post a sample table and data set (CREATE TABLE and INSERT statements) and an example of the results you'd like to see? BTW, this seems off-topic for pgsql-admin, which is supposed to be for discussions of PostgreSQL administration. A more appropriate list might be pgsql-general, pgsql-novice, or pgsql-sql. -- Michael Fuhr
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера