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: Finding rows with column1+column2 values are unique

Re: Finding rows with column1+column2 values are unique

From: <qazmlp1209_at_rediffmail.com>
Date: 16 Jan 2007 22:52:21 -0800
Message-ID: <1169016741.601728.297740@s34g2000cwa.googlegroups.com>

Arto Viitanen wrote:
> qazmlp1209_at_rediffmail.com wrote:
> >
> > I have put my requirement wrongly. Here is the correct one?
> >
> > COLUMN1 is a key column.
> > COLUMN2, COLUMN3 are the non-key columns.
> >
> >
> > We have to find out the number of COLUMN1s, where there is a 1:1
> > relation between all the COLUMN2 and COLUMN3 values for a given COLUMN1
> > value.
>
> Since column1 is a key, for each column1 value there should be only one
> column2, column3 combination. If not, column1 is not actually a key.
There are some additional non-key columns also exist in the Table. Sorry, I did not include them as I thought they are necessary for the SQL formation. Received on Wed Jan 17 2007 - 00:52:21 CST

Original text of this message

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