How to know how many child tables are present for a parent table

hi all,
i created a table USERS in db user pavan (pavan.users (id primary key) ).
and child tables are may be in the same user pavan or in other users of database also.
for the other users i given relative grant permissions to access this USERS table and maintain relation to it.
now, my requirement is how to check the number of references to pavan.users.id
how many tables are dependent on it.
thanks in advance.
regards
pavan

Try this
select a.owner,
       a.constraint_name,
       a.column_name,
       a.table_name,
       c.table_name Referenced_table,
       d.column_name referenced_column
from
        all_cons_columns a,
        all_constraints b,
        all_constraints c,
        all_cons_columns d
where a.table_name=b.table_name
and a.constraint_name=b.constraint_name       
and b.constraint_type='R'
and b.r_constraint_name=c.constraint_name
and c.constraint_name=d.constraint_name
and a.owner='PAVAN'
and c.table_name='USERS'
and d.column_name='ID'

Similar Messages

  • How many SECONDARY INDEXES are created for CLUSTER TABLES?

    how many SECONDARY INDEXES are created for CLUSTER TABLES?
    please explain.

    There seems to be some kind of misunderstanding here. You cannot create a secondary index on a cluster table. A cluster table does not exist as a separate physical table in the database; it is part of a "physical cluster". In the case of BSEG for instance, the physical cluster is RFBLG. The only fields of the cluster table that also exist as fields of the physical cluster are the leading fields of the primary key. Taking again BSEG as the example, the primary key includes the fields MANDT, BUKRS, BELNR, GJAHR, BUZEI. If you look at the structure of the RFBLG table, you will see that it has primary key fields MANDT, BUKRS, BELNR, GJAHR, PAGENO. The first four fields are those that all cluster tables inside BSEG have in common. The fifth field, PAGENO, is a "technical" field giving the sequence number of the current record in the series of cluster records sharing the same primary key.
    All the "functional" fields of the cluster table (for BSEG this is field BUZEI and everything beyond that) exist only inside a raw binary object. The database does not know about these fields, it only sees the raw object (the field VARDATA of the physical cluster). Since the field does not exist in the database, it is impossible to create a secondary index on it. If you try to create a secondary index on a cluster table in transaction SE11, you will therefore rightly get the error "Index maintenance only possible for transparent tables".
    Theoretically you could get around this by converting the cluster table to a transparent table. You can do this in the SAP dictionary. However, in practice this is almost never a good solution. The table becomes much larger (clusters are compressed) and you lose the advantage that related records are stored close to each other (the main reason for having cluster tables in the first place). Apart from the performance and disk space hit, converting a big cluster table like BSEG to transparent would take extremely long.
    In cases where "indexing" of fields of a cluster table is worthwhile, SAP has constructed "indexing tables" around the cluster. For example, around BSEG there are transparent tables like BSIS, BSAS, etc. Other clusters normally do not have this, but that simply means there is no reason for having it. I have worked with the SAP dictionary for over 12 years and I have never met a single case where it was necessary to convert a cluster to transparent.
    If you try to select on specific values of a non-transparent field in a cluster without also specifying selections for the primary key, then the database will have to do a serial read of the whole physical cluster (and the ABAP DB interface will have to decompress every single record to extract the fields). The performance of that is monstrous -- maybe that was the reason of your question. However, the solution then is (in the case of BSEG) to query via one of the index tables (where you are free to create secondary indexes since those tables are transparent).

  • I have a presentation to make to a customer and need to know how many educational apps are there for the iPad/iPod?

    I have a presentation to make to a customer and need to know how many educational apps are there for the iPad/iPod? More specifically special education apps.
    Thanks

    Keep in mind as well that not all apps are "created equal".  Some are really good, and others are not very good.  You might also want to look at some education sites for recommendations.  An example of a general iPads in education forum is
    http://ipadeducators.ning.com/
    but I imagine some exist for special education needs as well.  Our healthcare organization is using some apps for working with autistic children and find them very helpful. 

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to know how many equipments can be produced?

    Hello friends,
    One equipment is having bill of material.  How to know how many equipments can be made with the stores stock? How to know for making min. no. of materials reqd for making optimum no. of equipments?
    bye,
    srinivas.

    Hi,
    Please have a look at the Rules of Engagement before posting to these forums. The link is here:
    [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
    Once you have read the above, please provide the necessary information.
    Regards,
    Amit

  • How many concurrent users are allowed for an Azure Virtual Machine?

    How many concurrent users are allowed for an Azure Virtual Machine?
    Please share the details with the Azure VM size. Currently I have Standard VM of size D13(4 cores, 28GB RAM)

    Hi SanPSK,
    Thanks for posting here.
    I suggest you to check this article for Azure VM size
    https://msdn.microsoft.com/en-us/library/azure/dn197896.aspx
    For the concurrent users on VM - A maximum of 2 concurrent connections are supported, unless the server is configured as a Remote Desktop Services session host.
    Girish Prajwal

  • How to find unsued Transfer Rules and Data Sources for a Master Table...??

    How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use

    Hi
    Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
    Cheer
    Ans as expected, Please reward

  • ....how to create table maintanence generator for a z table and how to use

    Hi...
    3....how to create table maintanence generator for a z table and how to use that for transfering a selected records to one server to another server.
    thanks and regards,
    k.swaminath reddy

    Hi,
    Table maintanance Generator is used to manually
    input values using transaction sm30.The Table Maintenance Generator is used to create table maintenance program to add, modify or delete records in the database table. This can be accessed using transaction SE54 or in SE11 using the menu Utilities->Table Maintenance Generator
    <b>
    Follow below steps</b>
    go to se11 check table maintanance check box under
    attributes tab
    utilities-table maintanance Generator->
    create function group and assign it under
    function group input box.
    also assign authorization group default &NC& .
    select standard recording routine radio in table
    table mainitainence generator to move table
    contents to quality and production by assigning
    it to request.
    select maintaience type as single step.
    maintainence screen as system generated numbers
    this dialog box appears when you click on create
    button
    save and activate table
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    please check the link for getting information about table maintenance generator !
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=use%20of%20table%20maintenance%20generator&cat=sdn_all
    http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm
    http://www.sap-img.com/abap/create-a-table-maintance-program-for-a-z-table.htm
    Regards,
    Priyanka.

  • How to know how much quantity is available for the batch ?

    hi all,
    I am doing a batch split on delivery item....but when i enter the batch and quantity ( say 500qty) it says Zero quantity available for the batch....
    <b>How to know how much quantity is available for the batch for that material</b> so that can we use the batch during batch split.....because batches are attached to a handling unit as well.....
    regards,
    Subba

    HI Subba,
    You can know this Thr MMBE Transaction Code
    Reward if it helps
    regards
    Srini

  • How to know whether a vacation rule is set for a user

    Hi,
    How to know whether a vacation rule is set for a user or not in the BPM process. Can anyone help me in this.
    Thanks,

    In Linux a user has to have read permission on a file to even see that it exists. As a result, if a user (or a group to which they belong) doesn't have read access to the file File.exists() will return false. Windows which doesn't have as tightly controlled access to files will admit that a file exists whether it can be read or not.
    PS.
    This is proof that I should never answer a question off the top of my head when I haven't had my red bull yet. This is wrong. You will be able to see it if you have read and execute on the directory.
    thumps self in head
    Message was edited by:
    puckstopper31

  • HOW TO KNOW HOW OLD IS THE PHONE

    How to know how old is the iphone

    Plug the SN in here:
    http://www.chipmunk.nl/klantenservice/applemodel.html
    This will tell you when your phone was made.

  • How to know how much size we need in a tablespace to create index

    Hi,
    can anybody plz let me know,
    how to know how much space i need in a tablespace to create an index.
    thanks in advance

    Estimate Index Size and Set Storage Parameters
    http://www.camden.rutgers.edu/HELP/Documentation/Oracle/server.815/a67772/indexa.htm#388
    Estimating Bitmap Index Size
    http://download.oracle.com/docs/cd/A87860_01/doc/server.817/a76992/ch6_acce.htm#3625
    HTH
    Girish Sharma

  • Which tables are suitable for advanced compression in R12.1.1 vision db

    I want to use advanced compression in our R12.1.1 test env and I want to know which R12 tables are suitable for that?(I want make a script for compressing our VISION DB automatically)
    for example, table like GL% and ... ?
    some table contain long/long raw data_type ,so if I compress all tables in a tablespace(like APPS_TS_TX_DATA) ,filter long/long raw table will became a time-cosuming job..
    thanks

    Hi,
    for example, table like GL% and ... ?I believe this is no direct answer to your question as this depends on the number/type of records you have in your tables, and this varies from one organization/environment to another. You could calculate the size of the tables and decide which tables need compression by yourself.
    some table contain long/long raw data_type ,so if I compress all tables in a tablespace(like APPS_TS_TX_DATA) ,filter long/long raw table will became a time-cosuming job..Please see if these links help.
    Early Benchmarks: Using Advanced Compression with Apps 12
    http://blogs.oracle.com/stevenChan/2008/11/early_benchmarks_using_advanced_compression_with_ebs.html
    Using Advanced Compression with E-Business Suite Databases
    http://blogs.oracle.com/stevenChan/2008/10/using_advanced_compression_with_e-business_suite.html
    New Whitepaper: Options for Reducing E-Business Suite Database Sizes
    http://blogs.oracle.com/stevenChan/2008/12/whitepaper_options_for_reducing_ebs_database_size.html
    Regards,
    Hussein

  • What kind if tables are suitable for partitioning?

    What kind of tables are suitable for partitioning?
    I have several tables in same schema. Each of them is bigger than 200MB. DML commands are executed continuously against these tables. After diagnosis, I know than the sequential read wait is the root cause. Should I partition each of them?
    Edited by: jetq on Jul 16, 2009 8:04 PM

    jetq wrote:
    What kind of tables are suitable for partitioning?The question to answer your question is: What will be gained by partitioning and why? When you understand this, then you can decide if it is suitable for partitioning.
    BTW sequential read wait has to do with index scans, not table scans. Table scan waits are reported as scattered reads, not sequential.
    Regards,
    Greg Rahn
    http://structureddata.org

  • Which tables are used for Quality Efficiency calculation of OEE report ?

    Hello,
    We're confirming OEE report behavior.
    I'd like to know OEE report and ME table specification.
    Which tables are used for Quality Efficiency calculation of OEE report ?
    According to I know, the definition of Quality Efficiency is (complete qty) / (start qty).
    For this calculation, does OEE report just use qty_started and qty_completed of PRODUCTION_LOG table?
    If any other tables/columns/logic are implemented, your information is appreciated.
    Best Regards,
    Takahiro Uesugi

    hi
    Go to BSIS & BSAS
    BKPF
    SKA1
    SKAT
    SKB1
    Regards
    Roobal

Maybe you are looking for

  • How can I get a real person to look at my IP Profi...

    My current saga started 4 days ago when a BT van was spotted in the village. This is usually a bad sign as it means a BT engineer is about to break a random number of people's broadband connections. Quite why they feel the need to do this is beyond m

  • I want to video chat with people on Facebook or MSN who are not using an apple device.

    I Have been trying to video chat with friends and family using my ipad 3 but they do not have apple devices. WHat does anyone suggest for an app to link to my Facebook and/ or msn account in order to be able to video chat with them?

  • Empty File valid source file

    Could somebody help me to answer my question . The question is an empty file a valid source code file? Thanks for the help... Elvira48

  • Problem burning DVD DL using Super Drive - Help

    I am using MacBook 13-inch Aluminum (Late 2008). I tried my new set of DVD+R DLs from Imation. But SuperDrive couldn't detect the DVDs. I checked my firmware version also, it is up-to-date. I tried with 3 new DVDs, but was of no use. But there is no

  • How to Order a Source Table ???

    How can I do if I have to order the select of my source table ??? I have try to put an order by on the same filter than my filter but it is build with parenthesis if I put an filter with : COL1='3' ORDER BY COL2 it's build like Select ... where ((COL