Compare tables in two schemas for the table with particular column & value

Hello All,
I have a query to find out the list of table from a given schema to extract all the tables having a search column .
ex :
SELECT OWNER, TABLE_NAME, COLUMN_NAME FROM
ALL_TAB_COLUMNS WHERE OWNER='<SCHEMA_NAME>'
AND COLUMN_NAME='<COLUMN_NAME>'
I want to compare two schemas for the same above query .
Can we wirte a query on this - I am using SQL DEVELOPER , which has menu item - TOOL - database differneces to find the diffenence between two schemas but my requirement is to find the differences in two schemas for all the tables matching for a particular column ( as given in quer).
Appreciate your help.
thanks/Kumar
Edited by: kumar73 on 29 Nov, 2012 1:50 PM

Hi, Kumar,
This is the SQL and PL/SQL forum. If you have a question about SQL Developer, then the SQL Developer is a better place to post it. Mark this thread as "Answered" before starting another thread for the same question.
If SQL Developer has a tool for doing what you want, don't waste your time trying to devise a SQL solution. The SQL Developer way will probably be simpler, more efficient and more reliable.
If you do need to try a SQL solution, then post some sample data (CREATE TABLE and INSERT statements for a table that resembles all_tab_columns; you can call it my_tab_columns) and the results you want from that data.

Similar Messages

  • Urgent: two authors for the same book

    I have a database with three tables: books, authors and aux.
    The books table stores the names of the books. The authors table stores the name of the authors. Table aux takes the id of the other two. I did this for the case of the same book has two or more authors
    The query I did was the following:
    SELECT authores.author, books.title
    FROM aux, authors, books
    WHERE aux.books_id = books.id AND aux.authors_id = authors.id
    ORDER BY books.title ASC
    How do I show the two authors for the same book?
    For now, I'm using a simple table:
    <table border="1" cellpadding="1" cellspacing="1">
      <tr>
        <td>author</td>
        <td>title</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_rsBooks['author']; ?></td>
          <td><?php echo $row_rsBooks['title']; ?></td>
        </tr>
        <?php } while ($row_rsBooks = mysql_fetch_assoc($rsBooks)); ?>
    </table>
    Thus, the table presents two results for the same book, instead of uniting the two authors of the same book.

    Thanks for the reply.
    In the meantime, got what I wanted. The expression looks like this:
    SELECT livros.titulo, GROUP_CONCAT(autores.autor SEPARATOR ',') AS Autores
    FROM livros INNER JOIN aux ON aux.livros_id = livros.id INNER JOIN autores ON aux.autores_id = autores.id
    GROUP BY livros.titulo

  • Is it possible for two owners for one table in oracle?

    SQL> select owner,table_name
    2 from dba_tables
    3 where table_name = 'DEPT';
    OWNER TABLE_NAME
    MANO DEPT
    SCOTT DEPT
    SQL>
    SQL>
    SQL> show user;
    USER is "MANO"

    Hi,
    It is not two owners for 2 tables but twotables and two owners.
    Login as Mano
    do a
    insert into dept values (blahh..blahh..);
    commit;Now login as scott
    select * from dept;You will see the difference.
    What you need to understand is there are physically two tables owned by two different users with the same name.
    Hope it clears your confusion.
    Cheers!!!
    Bhushan

  • To find locks on the objects  for the table-- urgent

    hi all..
    how to find which lock object is used for the table T001b...
    i want to lock a record of the table t001b before righting the select query and then  do some mofification and the unlock it again..
    plz can any one tell me how to do this...
    thnx
    Message was edited by:
            neha gupta

    Hi Neha,
    When you create a lock object System automatically creat two function module.
    1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
    2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
    You have to use these function module in your program.
    check this link for example.
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
    tables:vbak.
    call function 'ENQUEUE_EZLOCK3'
    exporting
    mode_vbak = 'E'
    mandt = sy-mandt
    vbeln = vbak-vbeln
    X_VBELN = ' '
    _SCOPE = '2'
    _WAIT = ' '
    _COLLECT = ' '
    EXCEPTIONS
    FOREIGN_LOCK = 1
    SYSTEM_FAILURE = 2
    OTHERS = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Thanks,
    Reward If helpful.

  • Generating an XML schema for a TABLE

    Hi,
    I know I can easily export DATA into an XML file, but Sql Developer can also generate an XML schema for a table LAYOUT. Does anyone know how this is done?
    I did it some time ago and have been unable to do it again.
    Thanks

    Hi Thanks for the response. Yes, what you say is the type of thing I mean. The snippet below was actually created using SqlDeveloper, but I just can't seem to be able to do it again :-(
    <?xml version='1.0' encoding='Cp1252' ?>
    <results>
         <row>
              <Column_Name><![CDATA[AD_UNIT_ID]]></Column_Name>
              <Data_Type><![CDATA[NUMBER(5,0)]]></Data_Type>
              <Nullable><![CDATA[Yes]]></Nullable>
              <Data_Default><![CDATA[]]></Data_Default>
              <COLUMN_ID><![CDATA[1]]></COLUMN_ID>
              <Primary_Key><![CDATA[]]></Primary_Key>
              <COMMENTS><![CDATA[]]></COMMENTS>
         </row>
         <row>
              <Column_Name><![CDATA[AD_UNIT_NAME]]></Column_Name>
              <Data_Type><![CDATA[CHAR(30 CHAR)]]></Data_Type>
              <Nullable><![CDATA[Yes]]></Nullable>
              <Data_Default><![CDATA[]]></Data_Default>
              <COLUMN_ID><![CDATA[2]]></COLUMN_ID>
              <Primary_Key><![CDATA[]]></Primary_Key>
              <COMMENTS><![CDATA[]]></COMMENTS>

  • SQL Developer generating an XML Schema for a table

    I hope I've put this question in to correct area of the forum!
    My question is how do you generate an XML schema of a table layout in SQL Developer?
    You can generate an XML schema for the DATA, but I just want to generate one with all the column definitions etc.
    The annoying thing is I managed to do this the other day, but after attempting again for several hours I've forgotten how to do it :-(
    Thanks and regards, Adrian

    A more specific answer, using SqlDeveloper itself, can be found at
    Re: Generating an XML schema for a TABLE

  • How to look for the Table Name

    Hi Friends,
    Sometimes we need to download the table for the desired information if the same is not available from a particular report. How to look for the table name? Is there a report or a particular feild, where we can find the name of the particular table?
    Thanks for the assistance.
    Regards

    Hi Friend,
    If you want to see the structures then go to SE11. Sometimes it happens that you cannot find the table names but only fields. In such case, if you want to find the Table names which is not available, then go to SE90.
    Abap Dictionary > Fields > Table Fields.
    Now Enter the Field name in Right Hand Side of the screen then Execute. You will see the all tables by which that Fields are used.
    Regards,
    Jigar

  • How to find out the link for the tables for sub contract PO

    Dear All,
    How to find out the link for the tables for sub contract PO, I am looking for the fields Material, Unit, Batch no., quantity.
    Please provide the solution for the Table related to ABAP.
    Thanks,
    V.V.

    Hi,
       Make use of the table EKKO, EKPO...
    For subcontract please select the option in EKPO-PSTYP.
    Regards
    GK.

  • Creation of transaction code for the table created

    Hi Experts,
    Can any one help me out with the steps that are used for creation of transaction for the table using the transaction SE93, i have created the table maintance generator.

    Hi
    Check TSTCP table  for the existing t-codes and for creating check this link
    Re: Transaction Code Creation for a Table/View
    Regards
    Pavan

  • Activate change logs for the table V_T007K

    Hi,
    Change log check box is activated in table and change logs is activated in system. But still I am not able to view any change logs recorded for the table V_T007K using SCU3 transaction.
    I tried by changing some data and than checked the SCu3 transaction. nothing is recorded against the table.
    Please let me know what needs to be done to capture the change logs for the changes done to the data in the table V_T007k table.
    Thanks in Advance.
    Thanks & Regards,
    Madhuri.

    Hi
    The table u mentioned V_T007k  is not a transparent table
    .its a view only for views u cant track changes.
    But only for transparent tables u can only track changes thru SCU3
    Also u can find the changes in a table from SAP TABLE
    CDHDR and CDPOS.
    if helpful reward me points.
    Regards
    Manas Ranjan Panda

  • Error :Extract Structure does not exist for the table YFSP03A .

    Hi Could you please help me to solve the above mentioned problem?
    I have a requirement where i have to generate the Data Source ' 3FI_SL_FS_SI ' using the table YFSP03A .
    Using the Tcode: BW03MAST i tried to assign FI-SL to the ledger but it throwed me an error that extract structure does not exit for the table YFSP03A .The reason being that i didnot create an extract structure for the table.So i tried to create it using the Tcode: BW01,but i did not have authorisation for the Transaction and BI team also could not generate as even they were not authorized to generate extract Structures.
                          So, Please are there any other ways to generate Extract structure for the table so that i can generate the Data source? Or is there any other means of generating the Data Source? And i couldnot access the other Tcodes viz :FAGLBW03, FAGLBW01,  FAGLBW02.

    Hi Bharath,
    Goto SE11, put the name of your extract structure in Data type and click display, check the version of the structure. if it is inactive then goto RSA6 and activate your DS.
    After activation try to retransport.
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Jul 25, 2011 3:13 PM

  • Vertical scroll bar for the table

    Hi,
    I have a table which will contain more than 100 rows. First Visible rows will be 10.
    i want a vertical scroll bar for the table, so that i can see all the rows using vertical scroll bar. While scrolling down, the header row, which contain names of the column should be static (ie visible even scroll down) and the footer of the table should be visible even goes up.
    If I use Scroll container, it will take whole table and the header row, row with name of column will move up invisible when i scroll down. So it is not useful if i use scroll contatiner.
    I need a fnctionality were table has a vertical scroll bar to it.
    Thanks
    Maha

    Hi,
    Your requirement is one of the default properties of the Table UI element in NWDS CE version.
    Regards,
    Alka.

  • Scroll bar  for the table

    hi
          i  have  a scenatio  where  the table need
            scroll bar  ,  so ihave  used  scroll container 
            for the table   and  i am able to view   both 
          horizontal  and  vertical scroll var  , but  i need 
           only  verticle  scroll var  .
              how can this be achieved ?

    hi
      thanks  for the quick response ,
           but  its not helping me  .
                i have  set the width of the table less than
             scroll container  . 
                  i need just  vertical  scroll  bar  to be visible
                   no  horizontal scroll bars  
                      iam able to view both .

  • How Can I obtain the tables of one schema and the record size???

    How Can I obtain the tables of one schema and the record size???
    Example:
    TableName Record Size
    Tabla1 12500
    Tabla2 7800
    Tabla3 2046

    This is not an OWB question, but you can obtain bda-type information on tables by using the system view dba_tables.
    Regards:
    Igor

  • How to view tables in another schema in the database

    I am starting to use the SQl Developer 1.5.
    We can connect to an oracle database successfully, expanding the tables, it shows the list of tables of one schema.
    We have other schema in the database. In the query panel, when we type in the name of the other schema such as tcs. then some table names will popup in the intellisense.
    How can we show the list tables in other schema within the same database.

    In SQL Developer left panel, there's a browse tree. There's a 'Other Users' branch under each database, expand that you will see all the option to check user's objects. Your user need to have check dictionary privilege

Maybe you are looking for