Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL-question (two fields in one)

Re: SQL-question (two fields in one)

From: Maikel Alderhout <0alderhout01_at_almere.flnet.nl>
Date: 1997/06/16
Message-ID: <33A59A51.53A7@almere.flnet.nl>#1/1

If you want to check the primary key fields you can use the following SQL statment. (Of course there are more solutions)

select field1,field2,count(*)
from tablename
group by field1,field2
having count(*) > 1

Maikel Received on Mon Jun 16 1997 - 00:00:00 CDT

Original text of this message

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