Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

need help in self join.

AlokKumarOct 10 2007 — edited Oct 11 2007
Hi,

I am querying the dba_tab_columns to crosscheck a table name which contains the specified column in the given query. the query is...

select a.table_name
from dba_tab_columns a, dba_tab_columns b
where
b.column_name = 'NAME_ID'
and
b.column_name = 'GUEST_FIRST_NAME'
and
a.column_id = b.column_id

I know both name_id and first_guest_name column present in a table called resev_name, but it return no rows selected. may be, I am msiising something.

hare krisha
Alok
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2007
Added on Oct 10 2007
11 comments
313 views