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: Find same-named columns

Re: Find same-named columns

From: Ryan Gaffuri <rkg100_at_erols.com>
Date: Sat, 9 Mar 2002 12:34:12 -0400
Message-ID: <a6dh6s$l3k$1@bob.news.rcn.net>


Select COLUMN_NAME, count(column_name), table_name FROM DBA_TABLES
group by column_name
having count(column_name) > 1

"Halbert09" <junk01_at_optonline.net> wrote in message news:338ccebe.0203090848.5e82ee14_at_posting.google.com...
> What SQL+ query would show me those tables that contain columns whose
> names match the column-names of columns in other tables of the same
> schema, and list the tables and matching column-names? Thanks for
> your help.
>
> Harold
Received on Sat Mar 09 2002 - 10:34:12 CST

Original text of this message

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