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 -> A Simple SQL Query for ALL_SYNONYMS

A Simple SQL Query for ALL_SYNONYMS

From: <paspu_at_my-deja.com>
Date: Tue, 19 Sep 2000 02:58:58 GMT
Message-ID: <8q6kp9$60q$1@nnrp1.deja.com>

 Hi All,

 I have the following scenario

 create table t1 ( col1 varchar(10) );

 create synonym S1 for T1;
 create synonym S2 for S1;
 create synonym S3 for S2;
 create synonym S4 for S3;

 Select synonym_name , table_name from all_synonyms where owner ='SCOTT' returns the following
 S1 T1
 S2 S1
 S3 S2
 S4 S3

 wherein i want the following output to be generated.  S1 T1
 S2 T1
 S3 T1
 S4 T1

 So without creating a temporary table, how can i achieve this. Any help regarding this will be highly appreciated

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Mon Sep 18 2000 - 21:58:58 CDT

Original text of this message

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