SQL query to see table names for specific columns

hi
i have a database containing more than 100 tables. I want to see all the tables containg a column 'Employee_id'. plz tell me SQL query some other way.
Thanks

Time to learn data dictionary basics
SELECT DISTINCT table_name
FROM all_tab_cols
WHERE column_name ='EMPLOYEE_ID';

Similar Messages

  • Using sql query as a table name

    hello,
    I have a table(say table1) which is storing the names of some other tables. I want to access the name of a table from table1 using sql query and then use the result of this query as the table name to access the data from
    retrieved table name. How can I do this ?
    ex:
    select * from (select tablename from table1 where tableid='1');
    I want to do something likw this. How can I do this?

    I want to access the name of a table from table1 using sql query and then use the result of this query as the table name to access the data from retrieved table name. How can I do this ?e.g. like this:
    SQL> with table1 as (
    select 'emp' tablename from dual
    select extractvalue(x.column_value, 'ROW/ENAME') ename
    from table1, xmltable('ROWSET/ROW' passing dbms_xmlgen.getxmltype('select * from ' || tablename)) x
    ENAME                                                                                                                       
    SMITH                                                                                                                       
    ALLEN                                                                                                                       
    WARD                                                                                                                        
    JONES                                                                                                                       
    MARTIN                                                                                                                      
    BLAKE                                                                                                                       
    CLARK                                                                                                                       
    SCOTT                                                                                                                       
    KING                                                                                                                        
    TURNER                                                                                                                      
    ADAMS                                                                                                                       
    JAMES                                                                                                                       
    FORD                                                                                                                        
    MILLER                                                                                                                      
    14 rows selected.

  • Table name for Query

    Hi Experts,
    I want to find out total queries for some data targets for this i am using "RSBCTCB_QUERY" table but i am getting  Query technical name only, i want Description also.. so can you please give me table name for this?
    Many thanks
    David

    Hi Naida,
    solved my problem with your solution, thanks
    I have only info provider name and i need to find out total queries along with description, so which table gives full information.
    RSBCTCB_QUERY----- this table gives only total info provider query technical names only ( not description)
    RSBCTCB_QRY_T_V----
    > this table gives description only what ever we provide query technical name
    but,
      if i give info provider name i want to know the total queries with description.
    Thanks
    David
    Edited by: david Rathod on Jan 19, 2011 12:37 PM
    Edited by: david Rathod on Jan 19, 2011 12:38 PM
    Edited by: david Rathod on Jan 19, 2011 12:38 PM

  • Where to see  dim and fact table names for a cube.

    Hello Experts,
    Where to see  dim and fact table names for a cube.

    Do a wild character search with the cube name (with '*' on both sides of the cube name) in transaction code SE11 or LISTSCHEMA...
    For Eg : Cube Name is ZFIN_C111
    Goto transaction code SE11
    Tables - ZFIN_C111 & then F4 would give you all the associated tables for the InfoCube.

  • Creating sql query using 3 tables

    There is database (supposed to be relational but it is not) and
    I cannot change the tables and it is very difficult to create SQL query.
    Please, help!
    First table T1
    a1 char 20
    time timestamp
    a2 char 7 (the same as t2.a2 when is trimmed)
    a3 number 5,0
    a4 number 8,4
    a5 number 7,3
    Second table T2
    a2 char 15
    b1 number 1,0
    b2 char 1,0
    b3 char 4
    a3 number 5,0
    Third table T3
    b3 char 4
    c1 char 4
    c2 number 7,3
    c3 number 8,4
    So, I need to create query (is it possible at all!?) from those 3 tables (a1, a2, b1,b2,b3, a4, a5, c2,c3
    where time is within interval (from, to), a3 in interval (1,2,3,4), t2.b3=t3.b3, t1.a2=t2.a2
    group by or sorted by a1, then, a2.
    Any suggestion is welcome!
    Thanks!
    By the way, I will use this query in Crystal Reports.

    As I already mentioned, I received another conditions for the query, and when I create a new one, I
    First table T1
    a1 number 5,0
    a2 char 7 (the same as t2.a2 when is trimmed)
    a3 number 8,4
    a4 number 7,3
    a_time timestamp
    Second table T2
    a2 char 15
    b1 number 1,0
    b2 char 1,0
    b3 char 4
    b4 char 4
    Third table T3
    c1 char 4
    c2 number 7,3
    c3 number 8,4
    b3 char 4
    where if c1='MIN' c2, c3 return min values,
    and if c1='MAX' c2,c3 return max values
    SQL query:
    select t1.a1, t1.a2, t2.b1, t2.b2, t2.b3, t1.a3, t1.a4, t3.c1,
    t3.c2, t3.c3, t2.b4
    from t1, t2, t3
    where (TRIM(t1.a2)=TRIM(t2.a2)
    and t1.a1=19
    and ((to_char(t1.a_time, 'YYYY-MM-DD') >= '2006-03-15')
    and (to_char(t1.a_time, 'YYYY-MM-DD') <= '2006-03-16')))
    and t3.b3=t2.b3)
    order by t1.a_time
    Result set:
    a1, a2, b1, b2, b3, a3, a4, c1('MAX'), c2', c3', b4
    a1, a2, b1, b2, b3, a3, a4, c1('MIN'), c2", c3", b4
    So when I executed SQL query it returns 2 rows for the same a2.
    I want to get 1 row for each a2 together with c3 (c4) min and c3 (c4) max values.
    How to name columns for c2 min and c2 max (the same for c3) in order to retreive 1 row per a2 value, something like this:
    a1, a2, b1, b2, b3, a3, a4, c2min, c2max, c3min, c3max, b4
    Thanks

  • Need table name for Output Types and Account Assignment Types

    Hi
    pl let me know the table name for
    1. Account Assignment Type
    2. Output Types (All)
    I need to download some company code specific data for both
    Pl confirm
    Warm Regards
    Vikcy

    Hi Thanks for reply
    You mean to say that Account Assignment Types = Account Assignment Category   ????
    Secondly In Table NAST, i can not see field "Output Type"
    Pl confirm once which field give me company code specific "Output Type" data
    Regards
    Vicky

  • Table name for the iexpense page

    Hi,
    I am trying to find the database table name for per-diem policy schedules data, in iexpense application.
    Is there a way to find the table name for these OA pages? Pl. let know.
    any suggestions will be helpful.
    Thanks
    Ram B.

    Hi,
    user560519 wrote:
    Is there a way to find the table name for these OA pages? Pl. let know. ---Open OAF page,left side bottom of the page u will see AboutThisPgae_ link.
    ---If it is not appear set profile FND:Diagnostics% to Yes
    ---Click on AboutThisPage u will se all components of the page.
    ---Search for vo and click on that u will get query or table of the page.
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 17, 2010 11:20 AM

  • Table names for Material Characteristic againgst production order

    Hi Guys,
    Actually I have a problem in finding the table name for material characteristic against production order such as Individual length, factor, color, etc. I really spend more than a day to find this. But I cudn't make it. Finally I found the flow some how, but is working only for few cases. Here is the flow.
    AFKO(RSNUM) --> RESB(OBJNR) --> INOB(CUOBJ) --> AUSP(OBJEK).
    T-code: CO02 / Fast Entry tab / Change Configuration(Item Level) / Change Characteristic values.
    Anybody knows about this. Please help me out on this. And please note that, it is not the material characteristic from MM01, it is against production order from CO02.
    Thanks
    Yasin.

    Hi Yasin,
    The best way to know Table Names in SAP is to use a Transaction Code Called : SQL Trace. Tcode : ST05. This will tell you about all the database tables that have been accessed while the Transaction was executed. And then you do a complete analysis of it, what are all the Tables that have been accessed, the fields and the data transfered. So, it's a complete trace of the SQL Query but you can use the information as needed.
    Have a look at the following Links:
    http://help.sap.com/saphelp_nw04/Helpdata/EN/17/358df9c9fee2469105731e10756921/content.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm
    The best things is that you can use it across any SAP Transaction as it is available in SAP NetWeaver .
    Hope this helps.
    Thanks,
    Samantak.

  • Regarding finding the table name for a field in R12 forms

    Hi all,
    I need to know how to find the table name for a field in R12. I am working on extracting the employee information but i need to know how to get the table names for the fields.
    Thank you,
    raj

    Please see these threads.
    How to find table name in ebs
    How to find table name in ebs
    E-Business tables
    E-Business tables
    Thanks,
    Hussein

  • Finding source database table/column name for a column in a view

    Hi i need to be able to identify the original database table/column name for a column in a view.
    e.g. say i have a view like this
    create v1 as select a.name fname, b.name bname, c.name cname,......
    from u1.names a, u2.names b. u3.names c
    where .....
    Now I want to find out that the database table/column name for the fname, bname and cname columns in the view v1, which in this instance is u1.name.name, u2.names.name, u3.names.name.
    But i need to be able to do it for any view. Short of parsing the SQL is there an easy way of doing this?
    Now obviusly I can't do this for virtual columns but I will know my column is not virtual as it has an index on it.

    But i need to be able to do it for any view. Short of
    parsing the SQL is there an easy way of doing this?No, parsing the SQL is the only way. Good luck it is not something I would want to attempt.

  • Table name for the status Cstd

    Hi
    Need the table name for the sales order line item status Cstd
    Steps
    Go to the sales order line item
    go to the Tab status
    under that in processing status--> system status
    here Cstd is there but we are not able to find the table name for that
    Strecture is RV45A and field name is STTXT
    we are planing to restrict the PP order being released if the status is not Cstd
    PP order should release if the status in Sales order line item is Cstd
    Can you help to findout the table name foth above field
    Thanks
    Kameshwar Rao

    Hi
    Table name is VBUP and the method to check the  creation of Production order is BADI workorder_update
    I would rather prefer to have a COSTED status as a part of the incompletion Log in SD module so that you cant save a SO if SO is not costed... See if that is possible for you
    OR you can also change your Req Class settings to auto calculate SO cost estimate upon Saving SO
    br, Ajay M

  • Table name for material master change

    What is the table name for material master change, so that I can get the old values and new values at plant level.
    More specific:
    I want to check the old values for Re order point and Safety stock in MRP1 and MRP2 fields in material master for many materials. Please help.

    Use CDPOS and CDHDR table to get the values which were changed.
    CDPOS>use fields Change doc. object give in as MATERIAL and in the Table name>MARC

  • Table Name for System Messages

    Dear all,
    i want to know the Table name for system messages
    Reg
    Kris

    hello Hari,
    I am getting error's in Posting like:
    Error in posting
    Message no. ICC_TR119
    Diagnosis
    The system could not post any checks or bills of exchange.
    Procedure
    See the table with the system messages.

  • Table name for Asset master

    hi folks,
    can u share the TABLE NAME FOR ASSET MASTER
    Thanks in Adv
    Regards,
    Varma

    hi Prasad,
    ANLA                           Asset Master Record Segment              
    ANLB                           Depreciation terms                       
    ANLBZW                         Asset-specific base values               
    ANLC                           Asset Value Fields                       
    ANLE                           Asset Origin by Line Item                
    ANLH                           Main asset number                        
    ANLI                           Link table for investment measure -> AuC 
    ANLK                           Asset Origin by Cost Element             
    ANLP                           Asset Periodic Values                    
    ANLQ                           Period values from dep. posting run per po
    ANLT                           Asset Texts                              
    ANLU                           Asset Master Record: User Fields         
    ANLV                           Insurance data                           
    ANLW                           Insurable values (year dependent)        
    ANLX                           Asset Master Record Segment              
    ANLZ                           Time-Dependent Asset Allocations         
    hope this helps
    ec

  • Can't  write right sql query by two tables

    Hello
    Everyone,
    I am trying to get a sql query by two tables,
    table:container
    <pre class="jive-pre">
    from_dest_id     number
    ship_from_desc     varchar
    to_dest_id     number
    </pre>
    table: label_fromat (changeless)
    <pre class="jive-pre">
    SORT_ORDER     number
    PREFIX     varchar2
    VARIABLE_NAME varchar2
    SUFFIX varchar2
    LF_COMMENT varchar2
    </pre>
    the sql which i need is
    a. table CONTAINER 's each column should have LABLE_FORMAT 's PREFIX before and SUFFIX back ,and these columns is connected
    example : the query output should be like this :
    <pre class="jive-pre">
    PREFIX||from_dest_id||SUFFIX ||PREFIX||ship_from_desc||SUFFIX ||PREFIX|| to_dest_id||SUFFIX
    </pre>
    every PREFIX and SUFFIX are come from LABEL_FORMAT's column VARIABLE_NAME (they are different)
    column SORT_ORDER decide the sequence, for the example above: Column from_dest_id order is 1, ship_from_desc is 2,to_dest_id is 3
    b. table LABEL_FORMAT's column VARIABLE_NAME have values ('from_dest_id','ship_from_desc','to_dest_id')
    If table CONTAINER only have one record i can do it myself,
    But actually it is more than one record,I do not know how to do
    May be this should be used PL/SQL,or a Function ,Cursor ,Procedure
    I am not good at these
    Any tips will be very helpful for me
    Thanks
    Saven

    Hi, Saven,
    Presenting data from multiple rows as a single string is called String Aggregation . This page:
    http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
    shows many ways to do it, suited to different requirements, and different versions of Oracle.
    In Oracle 10 (and up) you can do this:
    SELECT     REPLACE ( SYS_CONNECT_BY_PATH ( f.prefix || ' '
                                   || CASE  f.variable_name
                                        WHEN 'FROM_DEST_ID'
                                       THEN  from_dest_id
                                       WHEN 'SHIP_FROM_DESC'
                                       THEN  ship_from_desc
                                       WHEN 'TO_DEST_ID'
                                       THEN  to_dest_id
                                      END
                                   || ' '
                                   || f.suffix
                               , '~?'
              , '~?'
              )     AS output_txt
    FROM          container     c
    CROSS JOIN     label_format     f
    WHERE          CONNECT_BY_ISLEAF     = 1
    START WITH     f.sort_order     = 1
    CONNECT BY     f.sort_order     = PRIOR f.sort_order + 1
         AND     c.from_dest_id     = PRIOR c.from_dest_id
    saven wrote:If table CONTAINER only have one record i can do it myself,
    But actually it is more than one record,I do not know how to do In that case, why did you post an example that only has one row in container?
    The query above assumes
    something in container (I used from_dest_id in the example above) is unique,
    you don't mind having a space after prefix and before from_dest_id,
    you want one row of output for every row in container, and
    you can identify some string ('~?' in the example above) that never occurs in the concatenated data.

Maybe you are looking for

  • Unable to read a resources file from my page

    Hi, I am trying to read a file from the project resources and I can't have access to the physical file. I have the following code in my page: javax.faces.context.ExternalContext ec = this.getExternalContext(); URL url = ec.getResource("/resources/dis

  • Hyperion Planner - Cell Document Links

    Hi I am trying to add a document link to a cell within a web form in Hyperion Planner. The document I wish to link to is simply on a shared server / local drive. Therefore the file path looks like: T:\FINANCE\My Document.doc However, an error message

  • How to Activate IOS 6 on iphone 3g

    hallo there !! i just had a used  ( iphone 3g 16gp ) and i did put my sim card (GSM - Mobinil - Egypt ) in it and it worked , but after i connected it to my PC itune program it asked me if want to update the IOS i clicked ok after sometime when tried

  • Housekeeping of workflow selection table SOSP_T_BKT_PERFM

    Table SOSP_T_BKT_PERFM is used in the life cycle of SAP tasks that are included in Duet Enterprise workflow publishing; to record for running workitems the status change, relevant for which agent; so that for next status change it can be determined w

  • Photo folders sync randomly

    My photo folders will sync not alphabetically but random inside my ipad. Any suggestion on how to sync alphabetically without having to delete the ipod photo cache, I have 13500 photos and it takes for ever for for I tunes to rebuilt the ipod photo c