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: Details of different master records are equal - how to determine

Re: Details of different master records are equal - how to determine

From: Mark C. Stock <mcstockX_at_Xenquery>
Date: Sun, 13 Feb 2005 09:57:56 -0500
Message-ID: <kIKdnRy9qq5k95LfRVn-vA@comcast.com>

"Shiva" <shiva087_at_hotmail.com> wrote in message news:cunp6j$gqj$1_at_reader11.wxs.nl...
> Hi,
>
> Suppose I've got the following tables:
>
> Tables 1
>
> DeptCombNo
> (PK)
>
> 1
> 2
>
> Table 2
>
> DeptCombNo Deptcode
> (FK)
>
> 1 7NAH
> 1 4ZIC
> 2 3ZBE
> 3 4ZIC
> 3 7NAH
>
> The field DeptCombNo of table 2 is foreign key to the primary key
> DeptCombNo of table 1, iow table 2 contains the details of table 1.
>
> Now the question is: how do I set up a SQL-query that can tell me that
> details of DeptCombNo 1 and 3 are equal? I do not want to resort to PL-SQL
> or any other 3rd generation programming language.
>
> I'm using Oracle 8.1.7.
>
> Thanks in advance!
>
Received on Sun Feb 13 2005 - 08:57:56 CST

Original text of this message

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