Relation among tables...!!!urgent

Hi all,
I just want to know how to relate a too many tables like 200+ in an organisation for an application database , its difficult for me too trace every constraint,column or how it related eachother to know
pls help me
convey any ideas to me .....

Do you like that?
SELECT F.TABLE_NAME,
  F.CONSTRAINT_NAME,
  F.R_CONSTRAINT_NAME,
  P.TABLE_NAME P_TABLE_NAME
FROM
  (SELECT * FROM USER_CONSTRAINTS
   WHERE CONSTRAINT_TYPE = 'R') F,
  (SELECT * FROM USER_CONSTRAINTS
   WHERE CONSTRAINT_TYPE = 'P') P
WHERE F.R_CONSTRAINT_NAME = P.CONSTRAINT_NAMEor
SELECT F.TABLE_NAME,
  F.CONSTRAINT_NAME,
  F.R_CONSTRAINT_NAME,
  P.TABLE_NAME P_TABLE_NAME
  , P.COLUMN_NAME
FROM
  (SELECT uc.table_name, UC.CONSTRAINT_NAME,UC.R_CONSTRAINT_NAME
     FROM USER_CONSTRAINTS UC
   WHERE UC.CONSTRAINT_TYPE = 'R') F,
  (SELECT uc.table_name, UC.CONSTRAINT_NAME,UC.R_CONSTRAINT_NAME, UCC.COLUMN_NAME
     FROM USER_CONSTRAINTS UC, USER_CONS_COLUMNS UCC
   WHERE UC.CONSTRAINT_TYPE = 'P'
     AND UCC.CONSTRAINT_NAME=UC.CONSTRAINT_NAME) P    
WHERE F.R_CONSTRAINT_NAME = P.CONSTRAINT_NAME;Edited by: Mahir M. Quluzade on Feb 25, 2011 4:23 PM

Similar Messages

  • Urgent: Customized Routine Problem: Not updating related databse tables.

    Hi Gurus,
    We made some changes in customized routine of pricing condition type.
    Requirement :
    "A" condition type which is appearing in pricing of sales order which we want to be split into Billing document i.e.in  Invoice. The amount should split as per the invoiced quantity,. Earlier it was redeterminig from condition master"
    Logic in routine:
    "we are checking respective sales order for Invoice. From Sales order value we are finding out document condition number  in VBAK table. then in KONV table for respective value we are checking "A" condition type is available or not.
    If it is available we are just copying the value and depending upon the Invoiced qty, We are passing to the same condition type.
    Problem:
    Value is appearing in Invoice document but it is not updating the related database tables e.g. KONV for(Invoice document condition No.)

    Hi Gurus,
    We made some changes in customized routine of pricing condition type.
    Requirement :
    "A" condition type which is appearing in pricing of sales order which we want to be split into Billing document i.e.in  Invoice. The amount should split as per the invoiced quantity,. Earlier it was redeterminig from condition master"
    Logic in routine:
    "we are checking respective sales order for Invoice. From Sales order value we are finding out document condition number  in VBAK table. then in KONV table for respective value we are checking "A" condition type is available or not.
    If it is available we are just copying the value and depending upon the Invoiced qty, We are passing to the same condition type.
    Problem:
    Value is appearing in Invoice document but it is not updating the related database tables e.g. KONV for(Invoice document condition No.)

  • Displaying Relations Between Tables In Oracle 10.2.0.3

    Hi Everyone;
    I am in urgent need to display all the relations between tables of a Dbase in Oracle 10.2.0.3 version dbase. I use a server 2003 R2 machine and a developer tool TOAD for oracle v9.7 as ODT. If anyone have a clue please i need it.Sincerely
    Best Regards
    Ömer KAYA

    Hi Ömer
    You can with those tools read the configuration and get the actual ERD model from the database, so you will be able to see the relation in the tables.
    Please try that tool
    http://www.download32.com/modelright-3-for-oracle-i38008.html
    Product stands "Do you need to design, visualize or document your Oracle database?"
    In TOAD tool you are also able to do it: Reverse engineer already existing database structures and see the existing database structure in form of a diagram.
    Regards,
    Hubert
    P.S. looking forward to get your "precious" points ;-)
    Edited by: Hub on Oct 27, 2008 2:28 PM
    Edited by: Hub on Oct 27, 2008 2:35 PM
    Edited by: Hub on Oct 27, 2008 2:54 PM

  • How to find the tcode for relation between tables

    Hi all
    Just wanted to know the tcode that will show/give graphycal/ nongraphycal relation between tables if there is any..
    Very urgent, please.

    Transaction code to find relation between tables(Very urgent.)
    Please do NOT open duplicate posts.
    Regards,
    Ravi
    Note - Please mark the helpful answers

  • All line items related internal table or structure in f-44 Transaction

    Hi All,
      In F-44 Transaction once i will give Vendor number then i press enter then all related documents will come. I need that related internal table before display of documents. I have to change some values in those documents. I found one internal table i.e. POSTAB. And I made changes. But is not effected and  not helpful for my requirement.Please tell me exact internal table before those values come .
    If there is any Enhancement Spot or User Exit of that related Line items Values.
    Regards
    Nageswar

    Dear Kavana,
    In almost all situations the reason to your this issue can be found in
    notes 136754 or 152813.
    Mostly, the documents are included in a payment proposal and will
    therefore not show up in F-44.
    You can check which items are blocked by payment proposal in two
    ways:
    In table REGUP (Processed items from payment program), you can check
    which items are blocked by payment proposals (display via SE16 or SE17,
    selection on vendor (LIFNR), company code (ZBUKR) and document number
    (BELNR).
    I hope this can help You.
    mauri

  • Tool for viewing the relation between tables.

    Hi,
    I imported the schema dump in Oracle 10g R2 DB, there are about 800 plus tables in that schema. I would like to know the relataion between tables.So,What tools are available for viewing the relation between tables?. I have TOAD, and Oracles SQL Developer tolls, if there are any free tools for the same, please let me know the URLs.
    Regards,
    Sabdar Syed.

    Hmmm, for free, except what gave Eric earlier, not easy...
    Here already discuss about that :
    Re: Table Dependencies
    Nicolas.

  • RELATIONAL DATABASE TABLES IN SAP BW

    hi
    friends please give me the information regarding the RELATIONAL DATABASE TABLES IN SAP BW?

    Hi,
    See the tables.
    InfoObjects Table:
    RSDIOBJ Directory of all InfoObjects
    RSDIOBJT Texts of InfoObjects
    InfoCube Tables:
    RSDCUBE Directory of InfoCubes
    RSDCUBET Texts on InfoCubes
    DSO Tables:
    RSDODSO Directory of all ODS Objects
    RSDODSOT Texts of all ODS Objects
    PSA Table:
    RSTSODS Directory of all PSA Tables
    For reports:
    RSRREPDIR
    Thanks & Regards,
    Sathish

  • Find relation between tables

    Hi experts,
    How can I find the relation between tables? I mean, I can go to se 11 and compare each field of 2 tables manually, but it's very time consuming. Is there any possibilty to compare tables and find all the fields that can be found in both table?

    Go to SQVI transaction... Create a qucik view.. ztest.. give desc..etc
    Select data source as table join.... enter
    now one screen will come with blank data (blue scrren)
    in that application toolbar second button .. click that.. enter VBAK..
    click that again.. enter VBAP.. now an image will come with links b/w vbak and vbap.. you can use any no. of tables there....

  • Customizing the Related Products Table

    In working with a responsive layout, I am having trouble working with the Related Products table using the {tag_relatedproducts}. I got the small product layout to respond well, but not when inside the productTable, productItem table elements. Any tricks to having each productItem stack, with each clearing the other?
    Thanks in advance!

    Never mind. I simply applied the following CSS
    tr .productItem {
      width: 100%;
      height: auto;
      clear: both;
      display: block;

  • Please someone could help in explain how calenders are related among icloud and my imac ?

    please someone could help in explaining how calenders are related among icloud and my imac in terms of backuping and recovery ?
    Thanks
    JBS

    Open GarageBand's preferences, and under Audio/MIDI set the Input popUp menu to the iMic. You can also set the Output popUp to the iMic if you have headphones plugged into it, otherwise set it to Built-In.
    Create a New Basic Track, and you're ready to record.
    --HangTime [Will Compute for Food] B-|>

  • How we relate two tables using foreign key(fk)?

    hi to all,
        what are the conditions has to follow to relate two tables.I.e.,
    the two tables have same primary keys(pk). if we relate these two tables in one table the pk and fk will be the same then how that table in active.

    Hi
    To relate two tables..we have foreign key relationship.
    In one table v have primary key and in the second table, the same key is foreign key for that table..
    To relate two tables, we can use JOINS
    If there is already a suitable foreign key between two tables used in the view, these tables can be linked with a join condition from this foreign key.
    Create a view on tables TAB1 and TAB2. TAB1 is the primary table of the view. TAB2 is the secondary table of the view. TAB1 is the check table for TAB2. The foreign key fields are assigned to the check table fields as follows:
    TAB1-FIELD_A assigned to TAB2-FIELD_1
    TAB1-FIELD_A assigned to TAB2-FIELD_1
    The join condition of the view generated from the foreign key is then:
    CREATE VIEW ... AS SELECT ... WHERE TAB2-FIELD_1 = TAB1-FIELD_A AND TAB2-FIELD_2 = TAB1-FIELD_B.
    Join conditions can also be copied from generic and constant foreign keys. If a constant is assigned to a field in the foreign key, it is also assigned to the field in the join condition. There is no join condition for a generic relationship in the foreign key.
    The foreign key between tables TAB1 (check table) and TAB2 (foreign key table) is defined as follows:
    TAB1-FIELD_A assigned to TAB2-FIELD_1
    TAB1-FIELD_B generic
    TAB1-FIELD_C assigned to constant ‘C’
    The join condition for the view generated from the foreign key is in this case:
    CREATE VIEW ... AS SELECT ... WHERE TAB2-FIELD_1 = TAB1-FIELD_A AND TAB2-FIELD_2 = ‘C’.
    Hope it helps
    Reward if useful.

  • The relation between table mbew and mbewh

    MORNING!
      I wanna know the relation between table mbew and mbewh.
      I finded some materials in table mbewh have total valuated stock , but these materials don't have value .
      Thanks a lot !

    Hi Roy, please check this link.
    http://www.sapfans.com/forums/viewtopic.php?p=4330&sid=a1b0e2c950bb90aa410b796d9ce0a13c
    REgards,
    Rich Heilman

  • Cannot Relate Look Table to Document Type

    I am setting up a new R&D library. They would like to have attributes or
    properties based off of the document type. Everytime I try to setup a
    look table to use Document Type as the parents it clears it. If I
    manually type Document Type in as the Related Table, it give the error:
    "You may only relate a table to another table that exists, has no
    parent, and is either Document Type or is user-defined table. Select a
    table from the list."
    Now it show Document type in the lookup selection but will not select
    it. Is this a feature that was available at one time and removed or is
    it a feature that has been disabled for some reason? Maybe a problem
    with the snap-in.
    Any Suggestions?

    John,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • How to get the relation between tables.

    Hi all,
             Sorry in my previous message I forgot to include the table CABN.
    I would like to retrieve data from the tables BDCP,and characteristics tables KSS,INOB,AUSP and CABN.
    I am given the values BDCP-TABNAME,BDCP-FLDNAME,BDCP-KEY,BDCP-CRETIME,BDCP-CDOBJCL.
    BDCP-CDOBJID is nothing but Material number.I want to retrieve category(AUSP-ATWRT) and subcategory(AUSP-ATWRT) for that material BDCP-CDOBJID.
    So first of all how to proceed.Can anyone give idea?I heard that there is transaction,where we can find relations between tables.
    Thanks,
    Balaji
    Pages: 1

    U could try with SQVI Tcode. just give table names try to link.
    For your requirement there are several functional modules availalbe.
    Try where used list on AUSP table and find Function modules. Test them first then use in the program.

  • Relate Text Table and Value Table

    hi all,
    How to relate Text Table and Value Table ?
    I need step by step process.
    Thanks in advance.
    Regards
    Raj

    Hi,
    Text table - If you want to create TEXT table for any table then just need to create table with the key fields of the other table along with that we need to create 2 more fields - those are language field & description.
    Value table - Any table can be attached as value table for the table, only thing is field relations should be there in that table.
    for step by step process to create tables - check the below -
    Go to SE11,
    given ZTABLE name and Create.
    In Delivery Maintainance Tab..
    Choose Delivery class A
    and Display/Maintaintance Allowed
    Go to Fields tab.
    Provide ur table fields with MANDT is first field for client dependent.
    If there is QUAN, CURR type fields then u must provide reference to them.
    Save and Activate.
    Click on Technical Settings
    Data Class APPLO
    Size .. 0 (as per ur requirement.)
    SAVE and Back.
    Click on Utilities --> Table Maintainance Generator.
    Authorization Group &NC&.
    and provide function group for table maintainance ( u can create a function group in se37 )
    click on Find Scr Number button.
    select Propose Screen Number and Continue.
    then Create...
    Save and Back
    Activate the table.
    go to tcode SM30
    give the table name and click on Maintain.
    there u can enter values manually too.
    Regards,
    *DJ
    Reward, if its useful

Maybe you are looking for

  • ITunes won't recognize media on external hard drive

    Hello Everyone.... So I have a 17" Macbook Pro, that was recently repaired under Future Shop's PSP that I purchased. They wiped it completely clean, so I essentially have a brand new computer again. Luckily, I put almost all of my data and media onto

  • Share destinations no longer working

    I'm not exactly sure what changed, but my share destination presets are no longer working. I can access the share drop down menu and highlight my destination preset choice by mousing over, but when I try to click on the preset, nothing happens -- the

  • SendEventToEventTarget fails in Acrobat 8 on Mac

    I have a plug-in which I'm porting from Acrobat 7 to 8 on Mac. I'm using PowerPlant to create a modal dialog which has a text control that captures standard editing keyboard shortcuts such as Command-C, Command-V, and Command-X when it's active. In A

  • Managing files in CQ components folder...

    Hi, I am a newbee in CQ development. I start to develope many components in "components" folder. Now, the folder has too many files inside and I realized that I need to sort related components and put them in a folder. If I create a folder under the 

  • Sun jsr-168 portlets in weblogic 8.1

    I am trying to get the sun portlet examples to run in the bea weblogic 8.1 portal. The issue is that I can not build the project for deployment. from the notecard example I get the following The top of my jsp looks like this. <%@ page import="com.sun