IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to find the parent table name using child table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nareshreddy.j
Currently Banned

New User


Joined: 06 Mar 2007
Posts: 3
Location: bangalore

PostPosted: Wed Mar 14, 2007 4:22 pm
Reply with quote

i created child table referenced to parent table.i forgot the parent table name but i know child table name.can any one help me how to find parent table name? [/b]
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Wed Mar 14, 2007 6:21 pm
Reply with quote

Hi

You can find the parent table name in SYSIBM.SYSRELS table.


Select REFTBNAME from SYSIBM.SYSRELS WHERE TBNAME = 'Child Table Name';


Sai
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Wed Mar 14, 2007 9:14 pm
Reply with quote

if you have really created the Child table then you can see it in the DDL also. icon_razz.gif
Back to top
View user's profile Send private message
nareshreddy.j
Currently Banned

New User


Joined: 06 Mar 2007
Posts: 3
Location: bangalore

PostPosted: Thu Mar 15, 2007 3:37 pm
Reply with quote

thank you for ur suggession.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts sort to find out the char which repea... Mainframe Interview Questions 10
Search our Forums:


Back to Top