pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mario Filipe <mjnf@neptuno.sc.uevora.pt>
To: pgsql-sql@postgresql.org
Subject: About duplicates
Date: Thu, 17 Dec 1998 09:53:10 -0000 (WET)
Message-ID: <XFMail.981217095310.mjnf@neptuno.uevora.pt> (raw)

-----BEGIN PGP SIGNED MESSAGE-----

Hi

Some time ago I made a question to this list about eliminating duplicates.

Well I got some answers but they weren't very satisfying (sorry to the folks
who awnsered). After that i did some digging i got this code from access:


SELECT DISTINCTROW Alunos.curso, Inscricao.nAluno, Alunos.nome,
Inscricao.codDisc, Inscricao.Descricao
FROM Alunos INNER JOIN Inscricao ON Alunos.nAluno = Inscricao.nAluno
WHERE (((Inscricao.nAluno) In (SELECT [nAluno] FROM [Inscricao] As Tmp GROUP BY
[nAluno],[codDisc] HAVING Count(*)>1  And [codD
isc] = [Inscricao].[codDisc])))
ORDER BY Alunos.curso, Inscricao.nAluno, Inscricao.codDisc;

My question is if this code can be used in postgres, with some changes
obviously?

Merry Xmas

        Mario Filipe 
        mjnf@uevora.pt
        http://neptuno.sc.uevora.pt/~mjnf

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQEVAwUBNnjUg5iyznf+xIrhAQEUfggAiV3CMyiAgfLALMZE4qLDvpiut38s3b77
ToUfutd0LIexv9tGcW+7UgnZnxO5xxdWMS/qz01EZtP7ubIDzRpJObRR8ycZfIuQ
5cyG5MjdivrVfNmvo7mp67jKSR0gRJcysZkO6qQTxDa8jvevfpgaODgn1c3qTgc2
Sl8Xk+/8OSlVP7FShlDnQA2J/MmuGz9wjGHEVFVx9rw07MQsWJMNbEOzOld2uCpg
mb/tEgcUOisH05B39kdVRP49mKheGmCQcNtGsdji0hzJFSf8hG26w2S7x9Nj00HJ
d3GxlxpEgyD7BsECN+Gglk84NJuc/HJJIV3rQrBIjjClgH+xvr2btA==
=Dsv0
-----END PGP SIGNATURE-----



Message-ID: <XFMail.981217095310.mjnf@neptuno.uevora.pt>
Permalink:  ../XFMail.981217095310.mjnf@neptuno.uevora.pt/
Also on:    postgresql.org/message-id/XFMail.981217095310.mjnf@neptuno.uevora.pt

 · 

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-sql@postgresql.org
  Cc: mjnf@neptuno.sc.uevora.pt
  Subject: Re: About duplicates
  In-Reply-To: <XFMail.981217095310.mjnf@neptuno.uevora.pt>
  References: <XFMail.981217095310.mjnf@neptuno.uevora.pt>

* 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