Search between 2 tables

Hi Gurus,
I have two tables and need to get information from those-
select accountnumber from table1 where customerid in (123, 145, 234);+
select accountnumber, balance from table2 where accountnumber="accountnumber that comes in above query"In table2 there is two column accountnumber & balance.+
How to combine those?

With a simple join:
select b.accountnumber, b.balance
from table1 a, table2 b
where a.accountnumber=b.accountnumber
  and a.costomerid in (123,145,234);

Similar Messages

  • SQL Search Between Dates

    I have a table which contains a list of enquiries that I
    receive. I have an 'Input_Date' field as a column. I have set up a
    page on my site on which to input two dates to search between for
    enquiries. One input field is called Start and the other End.
    What is the SQL I would need in order to display the results
    on a page which I go to after hitting 'submit'? Also, how would I
    define the variables, 'Request.Form' or 'Request.QueryString'?
    Thanks for your help in advance!

    If your 'Input_Date' DataType is datetime or Int you can use
    a BETWEEN
    clause.
    eg. WHERE Input_Date BETWEEN Start AND End
    As for whether to use Request.Form or Request.Querystring,
    this depends on
    whether you are using POST or GET on submission of the Form.
    Do a Google on 'SQL BETWEEN' and you will find loads of good
    articles. It's
    very easy and straightforward to use.
    Pat.
    "Yorkshire Newbie" <[email protected]> wrote
    in message
    news:e7ojm4$4e1$[email protected]..
    >I have a table which contains a list of enquiries that I
    receive. I have an
    > 'Input_Date' field as a column. I have set up a page on
    my site on which
    > to
    > input two dates to search between for enquiries. One
    input field is called
    > Start and the other End.
    >
    > What is the SQL I would need in order to display the
    results on a page
    > which I
    > go to after hitting 'submit'? Also, how would I define
    the variables,
    > 'Request.Form' or 'Request.QueryString'?
    >
    > Thanks for your help in advance!
    >

  • Find the key for join between table "crhd" and "equi" for use field "answt"

    I make program for read data from table "crhd" for print  about machine report
    but I can not find the key for link join to table "equi" for print field "answt" (acquistion value)
    please help me  find the key field for join between table "crhd" and "equi" for use field "answt"
    thank you very much...

    This is how the Work Center is linked to a particular Equipment -
    Functional - In IE03 ( view Equipments) You see the Work Center of a particular Equipment.
    Technical - Go to view V_EQUI ( view of EQUI and EQUZ). Pass the Equipment number alongwith V_EQUI-PM_OBJTY = 'A' ( i,.e searching for the Object Type Work Center).  In this way u ll get the V_EQUI-GEWRK - this is the Work Center ID.
    You can pass this Work Center ID to CRHD. And you will get the Work Center text.
    CRHD-OBJTY = 'A'
    CRHD-OBJID = V_EQUI-GEWRK.
    and u ll get the CRHD-ARBPL - this is the Work Center.
    So u need to come backwards, alongwith ur CRHD-OBJTY and CRHD-OBJID , you pass the same to V_EQUI and u get the list of equipment numbers alongwith ur ANSWT(Acquisition value).
    I guess it solves ur problem.

  • Search between Two date Error

    Hi,
    i have create report using to table i have take search option in that report now i want to display report between two dates
    How to put Between Date Quary in search option in where Clause .
    My code is
    select      CRM_SALES_DEALs.id,
             "CRM_SALES_CUSTOMERS"."CUSTOMER_NAME" as "CUSTOMER_NAME",
          "CRM_SALES_SALESREPS"."REP_LAST_NAME"||', '||
          "CRM_SALES_SALESREPS"."REP_FIRST_NAME" as "REP_NAME",
          "CRM_SALES_DEALS"."DEAL_NAME" as "DEAL_NAME",
          "CRM_SALES_DEALS"."EMAIL" as "EMAIL",
          "CRM_SALES_DEALS"."DEAL_CLOSE_DATE" as "DEAL_CLOSE_DATE",
          "CRM_SALES_DEALS"."DEAL_AMOUNT" as "DEAL_AMOUNT",
          "CRM_SALES_DEALS"."DEAL_PROBABILITY" as "DEAL_PROBABILITY",
          "CRM_SALES_DEAL_STATUS_CODES"."STATUS_CODE" as "STATUS_CODE" ,
             "CRM_SALES_DEALS"."DATE_OF_QUARY" as "DATE_OF_QUARY",
             "CRM_SALES_DEALS"."DEAL_SOURCE" as "DEAL_SOURCE",
             "CRM_SALES_DEALS"."DEAL_AMOUNT" *
             "CRM_SALES_DEALS"."DEAL_PROBABILITY" / 100 weighted_forecast,
    (select count(*) from CRM_SALES_DEAL_products where deal_id = "CRM_SALES_DEALS".id) products,
    nvl("CRM_SALES_DEALS".updated_on,"CRM_SALES_DEALS".created_on) last_changed,
    t.territory_name,
    CRM_SALES_DEALS.qtr, "CRM_SALES_DEALS"."CONTACT_NAME" as "CONTACT_NAME",
    "CRM_SALES_DEALS"."ACTIVE_FLAG" as "ACTIVE_FLAG"
    from     
    "CRM_SALES_SALESREPS",
    "CRM_SALES_DEAL_STATUS_CODES" ,
    "CRM_SALES_CUSTOMERS",
    "CRM_SALES_DEALS",
    CRM_SALES_territories t
    where  
    CRM_SALES_customers.customer_territory_id = t.id(+) and
    "CRM_SALES_DEALS"."CUSTOMER_ID"="CRM_SALES_CUSTOMERS"."ID"(+)
    and      "CRM_SALES_DEALS"."DEAL_STATUS_CODE_ID"="CRM_SALES_DEAL_STATUS_CODES"."ID"(+)
    and      "CRM_SALES_DEALS"."SALESREP_ID_01"="CRM_SALES_SALESREPS"."ID"(+) and "CRM_SALES_DEALS"."ACTIVE_FLAG" ='Y' and (:p1_find is null or instr(upper("CRM_SALES_CUSTOMERS"."CUSTOMER_NAME"),upper(:p1_find))>0 or instr(upper("CRM_SALES_DEALS"."DEAL_NAME"),upper(:p1_find))>0 or
    instr(upper("CRM_SALES_SALESREPS"."REP_FIRST_NAME"||' '||"CRM_SALES_SALESREPS"."REP_LAST_NAME"),upper(:p1_find))>0)
    and
    (nvl(:P1_TERRITORY,0) = 0 or t.id= :P1_TERRITORY)
    and
    (nvl(:P1_ACCOUNT,0) = 0 or "CRM_SALES_CUSTOMERS".id = :P1_ACCOUNT)
    and
    (nvl(:P1_QUARTER,'0') = '0' or CRM_SALES_deals.qtr = :P1_QUARTER)
    and
    *("CRM_SALES_DEALS".created_on between :P1_CREATE_DATE and :P1_END_DATE ) >0 and*                                          *Here I have put Quary*
    instr(upper("CRM_SALES_DEALS"."CREATED_ON"),upper(nvl(:P1_CREATE_DATE,"CRM_SALES_DEALS"."CREATED_ON"))) > 0
    and
    nvl(DEAL_PROBABILITY,10) between nvl(:P1_MINIMUM_PROBABILITY,0) and nvl(:P1_MAXIMUM_PROBABILITY,100) AND
    (nvl(:P1_LEAD_SOURCE,'0') = '0' or CRM_SALES_DEALS.DEAL_SOURCE = :P1_LEAD_SOURCE)Show me Error Command not Properly Ended
    How can i search Between two date In Search option.
    Thanks

    I'm guessing that this is Jay???
    Please heed my numerous previous comments regarding formatting and those horrible full table aliases and upper case, double quoted names... Grrr...
    Anyway, try this...
    SELECT   CRM_SALES_DEALs.id,
             CRM_SALES_CUSTOMERS.CUSTOMER_NAME AS CUSTOMER_NAME,
                CRM_SALES_SALESREPS.REP_LAST_NAME
             || ', '
             || CRM_SALES_SALESREPS.REP_FIRST_NAME
                AS REP_NAME,
             CRM_SALES_DEALS.DEAL_NAME AS DEAL_NAME,
             CRM_SALES_DEALS.EMAIL AS EMAIL,
             CRM_SALES_DEALS.DEAL_CLOSE_DATE AS DEAL_CLOSE_DATE,
             CRM_SALES_DEALS.DEAL_AMOUNT AS DEAL_AMOUNT,
             CRM_SALES_DEALS.DEAL_PROBABILITY AS DEAL_PROBABILITY,
             CRM_SALES_DEAL_STATUS_CODES.STATUS_CODE AS STATUS_CODE,
             CRM_SALES_DEALS.DATE_OF_QUARY AS DATE_OF_QUARY,
             CRM_SALES_DEALS.DEAL_SOURCE AS DEAL_SOURCE,
             CRM_SALES_DEALS.DEAL_AMOUNT * CRM_SALES_DEALS.DEAL_PROBABILITY / 100
                weighted_forecast,
             (SELECT   COUNT ( * )
                FROM   CRM_SALES_DEAL_products
               WHERE   deal_id = CRM_SALES_DEALS.id)
                products,
             NVL (CRM_SALES_DEALS.updated_on, CRM_SALES_DEALS.created_on)
                last_changed,
             t.territory_name,
             CRM_SALES_DEALS.qtr,
             CRM_SALES_DEALS.CONTACT_NAME AS CONTACT_NAME,
             CRM_SALES_DEALS.ACTIVE_FLAG AS ACTIVE_FLAG
      FROM   CRM_SALES_SALESREPS,
             CRM_SALES_DEAL_STATUS_CODES,
             CRM_SALES_CUSTOMERS,
             CRM_SALES_DEALS,
             CRM_SALES_territories t
    WHERE   CRM_SALES_customers.customer_territory_id = t.id(+)
             AND CRM_SALES_DEALS.CUSTOMER_ID = CRM_SALES_CUSTOMERS.ID(+)
             AND CRM_SALES_DEALS.DEAL_STATUS_CODE_ID =
                   CRM_SALES_DEAL_STATUS_CODES.ID(+)
             AND CRM_SALES_DEALS.SALESREP_ID_01 = CRM_SALES_SALESREPS.ID(+)
             AND CRM_SALES_DEALS.ACTIVE_FLAG = 'Y'
             AND (:p1_find IS NULL
                  OR INSTR (UPPER (CRM_SALES_CUSTOMERS.CUSTOMER_NAME),
                            UPPER (:p1_find)) > 0
                  OR INSTR (UPPER (CRM_SALES_DEALS.DEAL_NAME), UPPER (:p1_find)) >
                       0
                  OR INSTR (
                       UPPER(   CRM_SALES_SALESREPS.REP_FIRST_NAME
                             || ' '
                             || CRM_SALES_SALESREPS.REP_LAST_NAME),
                       UPPER (:p1_find)
                    ) > 0)
             AND (NVL (:P1_TERRITORY, 0) = 0 OR t.id = :P1_TERRITORY)
             AND (NVL (:P1_ACCOUNT, 0) = 0
                  OR CRM_SALES_CUSTOMERS.id = :P1_ACCOUNT)
             AND (NVL (:P1_QUARTER, '0') = '0'
                  OR CRM_SALES_deals.qtr = :P1_QUARTER)
             AND CRM_SALES_DEALS.created_on BETWEEN :P1_CREATE_DATE
                                                 AND  :P1_END_DATE
             AND INSTR (
                   UPPER (CRM_SALES_DEALS.CREATED_ON),
                   UPPER (NVL (:P1_CREATE_DATE, CRM_SALES_DEALS.CREATED_ON))
                ) > 0
             AND NVL (DEAL_PROBABILITY, 10) BETWEEN NVL (:P1_MINIMUM_PROBABILITY,
                                                         0)
                                                AND  NVL (
                                                        :P1_MAXIMUM_PROBABILITY,
                                                        100
             AND (NVL (:P1_LEAD_SOURCE, '0') = '0'
                  OR CRM_SALES_DEALS.DEAL_SOURCE = :P1_LEAD_SOURCE)Cheers
    Ben

  • Query to search between two specific dates and time period

    Hi,
    Need a query to search between two particular dates and time period
    Like i want to search table having one date field .
    Suppose the date range is '01-JUL-06' and '01-AUG-06' and time frame
    is 23:00:00 to 08:00:00
    i.e i want to search between dates 01 july to 01 aug and also within the time frame i.e 23:00 to 08:00 hrs only

    The general principle is
    SELECT * FROM your_table
    WHERE some_date BEWTEEN to_date('01-JUL-06') and to_date('01-AUG-06' )+0.99999
    AND  ( some_date <= trunc(some_date)+8/24
               OR  some_date >= trunc(some_date)+23/24 )
    /Cheers, APC

  • Line appearing between tables?

    A line is appearing between tables that I can't get rid of. I
    can't seem to make the tables touch. I took a screen of it; I don't
    want that line to be there in the white:
    http://aycu19.webshots.com/image/26338/2005650946393136015_th.jpg

    You have a mistake here -
    <td width="170" height="150" valign="top"
    class="sidebar_buttons"><a
    href="index.html" onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><a
    href="index.html" onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><a
    href="index.html" onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><img
    src="global/nav/homebar_norm.png" alt="Home" name="Home"
    width="130"
    height="30" border="0" id="Home"
    /></a></a></td>
    Note the nested <a> tags ----------------^^^^^^^^
    That's wrong. Each <a> tag must be properly terminated
    <td width="170" height="150" valign="top"
    class="sidebar_buttons"><a
    href="index.html" onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><img
    src="global/nav/homebar_norm.png" alt="Home" name="Home"
    width="130"
    height="30" border="0" id="Home" /></a></td>
    In fact, two of them were redundant, and I deleted them.
    Perhaps your line is coming from the spacer row at the bottom
    of the top
    table?
    <tr><td height="1"><img src="spacer.png"
    alt="" width="170" height="1"
    /></td><td><img src="spacer.png" alt=""
    width="530" height="1"
    /></td><td></td></tr>
    </table>
    Change this by removing the entire row -
    </table>
    and see what happens.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "mbaboy" <[email protected]> wrote in
    message
    news:[email protected]...
    > Ok, here's the code. I'm a n00b, so my code is very
    inefficient. I barely
    > know
    > how to read code, so I apoligize in advance if I gave
    you too much.
    > Basically
    > there is a table on top with two cells for the banner,
    and one below it
    > for the
    > sidebar with a few cells. The problem comes between the
    two tables. Thanks
    > a
    > lot.
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>CoreFitness Personal Training</title>
    > <link href="styles.css" rel="stylesheet"
    type="text/css" />
    > <script type="text/javascript">
    > <!--
    > function MM_swapImgRestore() { //v3.0
    > var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++)
    > x.src=x.oSrc;
    > }
    > function MM_preloadImages() { //v3.0
    > var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    > var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
    for(i=0;
    > i<a.length;
    > i++)
    > if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
    > d.MM_p[j++].src=a
    > }
    >
    > function MM_findObj(n, d) { //v4.01
    > var p,i,x; if(!d) d=document;
    >
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    > d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    > if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++)
    > x=d.forms[n];
    >
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    > x=MM_findObj(n,d.layers
    .document);
    > if(!x && d.getElementById)
    x=d.getElementById(n); return x;
    > }
    >
    > function MM_swapImage() { //v3.0
    > var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array;
    > for(i=0;i<(a.length-2);i+=3)
    > if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc)
    > x.oSrc=x.src; x.src=a[i+2];}
    > }
    >
    > //-->
    > </script>
    > </head>
    >
    > <body
    >
    onload="MM_preloadImages('global/nav/homebar_rollover.png','global/nav/about_rol
    >
    lover.png','global/nav/contact_rollover.png','global/nav/trainers_rollover.png')
    > "><table width="100%" border="0" cellpadding="0"
    cellspacing="0"
    > class="banner">
    > <!--DWLayoutTable-->
    > <tr>
    > <td width="170" height="100" valign="top"
    class="sidebar_topend"><img
    > src="global/banner/logo_left.png" alt="CoreFitness"
    width="170"
    > height="100"
    > /></td>
    > <td width="530" valign="top"
    bgcolor="#6600FF"><img
    > src="global/banner/logo_right.png" alt="CoreFitness"
    width="530"
    > height="100"
    > /></td>
    > <td width="100%"
    valign="top"><!--DWLayoutEmptyCell--> </td>
    > </tr><tr><td height="1"><img
    src="spacer.png" alt="" width="170"
    > height="1"
    > /></td><td><img src="spacer.png"
    alt="" width="530" height="1"
    > /></td><td></td></tr>
    > </table>
    > <table width="170" border="0" cellpadding="0"
    cellspacing="0"
    > class="sidebar">
    > <!--DWLayoutTable-->
    > <tr>
    > <td width="170" height="150" valign="top"
    class="sidebar_buttons"><a
    > href="index.html" onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><a
    > href="index.html" onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><a
    > href="index.html" onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('Home','','global/nav/homebar_rollover.png',1)"><img
    > src="global/nav/homebar_norm.png" alt="Home" name="Home"
    width="130"
    > height="30" border="0" id="Home"
    /></a></a></td>
    > </tr>
    > <tr>
    > <td height="30" valign="top"
    class="sidebar_buttons"><a href="#"
    > onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('About','','global/nav/about_rollover.png',1)"><img
    > src="global/nav/about_norm.png" alt="About" name="About"
    width="130"
    > height="30" border="0" id="About"
    /></a></td>
    > </tr>
    > <tr>
    > <td height="30" valign="top"
    class="sidebar_buttons"><a href="#"
    > onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('Trainers','','global/nav/trainers_rollover.png',1)"><
    > img src="global/nav/trainers_norm.png" alt="Trainers"
    name="Trainers"
    > width="130" height="30" border="0" id="Trainers"
    /></a></td>
    > </tr>
    > <tr>
    > <td height="31" valign="top"
    class="sidebar_buttons"><a href="#"
    > onmouseout="MM_swapImgRestore()"
    >
    onmouseover="MM_swapImage('Contact','','global/nav/contact_rollover.png',1)"><im
    > g src="global/nav/contact_norm.png" name="Contact"
    width="130" height="30"
    > border="0" id="Contact" /></a></td>
    > </tr>
    > <tr>
    > <td height="300"
    class="sidebar_buttons"> </td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >

  • What is difference between table space and shchema

    what is difference between table space and shchema ?

    784633 wrote:
    so each user has it own space of tables - schema ?yes, but let's clarify a bit ....
    The "schema" is the collection of all objects owned by a particular user. So if user SCOTT creates two tables, EMP and DEPT, and a view EMP_RPT, and a procedure GET_MY_EMP, those objects (tables, views, procedures) collectively make up the SCOTT schema.
    Those objects will be physically stored in a tablespace.
    A tablespace is a named collection of data files. So tablespace USERS will be made up of one or more data files. A specific datafile can belong to one and only one tablespace. If a tablespace has more than one data file, oracle will manage those files as a collection invisible to the application - much like the OS or disk subsystem handles striping across multiple physical disks.
    A specific object in the SCOTT schema can exist in only one tablespace, but not all objects of the schema have to be in the same tablespace. Likewise a tablespace can contain objects from multiple schemas.
    and can one user to access tables of other users?As others have said - FRED can access tables belonging to SCOTT as long has SCOTT has granted that access to FRED.

  • How to get search help tables of a specific table

    Hello Guru,
    I've a problem.
    I'm looking for a way to find out how many "search help" tables exist in a specified Check Table.
    Well, when I look for a check table of a field like MARD-LGORT
    I got as a check table T001L, now when I read the data from it, using the function module RFC_READ_TABLE I got all the data that I need, except now that I don't know which fields are actually displayed in the search help table of the field LGORT
    This what I want, in my case, the field that I need in the table T001L are : LGOBE LGORT WERKS
    All the others, are not so important.
    Please let me now, if you have an idea to find this.
    The search help table is for LTGORT : H_T001L
    Best Regards,
    Kais

    hi ,
    try this
    in the F4 value..
    call funtion '  HELP_VALUES_GET'                                                                               
    DISPLAY        =   "Text u want to display                                                                      
    FIELDNAME       = "Field name in specific table                                                                     
    INPUT_VALUE    = "Any default value                                                                       
    TABNAME           =   "Table name           
    Exporting
    SELECT_VALUE     = "The selcted vale in pop=up
    SELECT_INDEX      = "selected Index.
                Regards,
    prabhudas

  • How do I remove a gap between table rows in InDesign?

    I need help in figuring out how to remove gaps between table rows.  I have tried Table Spacing under Table Set-up, but it doesn't work.
    Here's what I'm working on:
    As you can see there are gaps above the first row and below last row under the header Business Management Technology.  I cannot select that gap.  How do I remove it, so that the first class, 31058, is flush with the black header?  (and the last class, 32675, is flush with the Chemistry header?)
    Any advice would be greatly appreciated.
    Thanks,
    Sarah 

    SRiegel wrote:
    ...it may be that the black bar is created with a paragraph rule instead of cell color.
    I hadn't considered that, and your example is proof-of-concept. However, now that you made me look closer, I still don't think that's the OP's case, seeing as the text in the OP's header rows appears to span more than one column, belying what I suppose must be merged cells.* The column strokes in the "gap" appear to disqualify it (the gap) as part of a row with merged cells.
    *There is still another possibility that someone "made pictures" of tables with merged cells by overlaying text frames to make the header rows. I've run across all kinds of such "carpentry;" especially when the file may have originated at the desk of someone who avoids or resists use of tables. They find ways to fake them and/or their features.
    [still looking]

  • How to maintain gap between table and graph in a report

    HI,
    I have a report in which a graph is placed below a table  and data in the table gets increased with time , then how to maintain the gap as constant between table and the graph ?? Like i have 50 rows in a table and then next day 10 rows are added but then i want maintain same gap between the table and graph???

    >Right click on chart.
    >Open the property and go to the relative position.
    >Select the distance of the upper left point of the chart in relation to another report element by entering - the number of pixels; the part of the tavfrom which youble want to measure the pixels (in the first drop-down list); the report element from which you want to measure the pixels (in the second drop-down list).
    >Repeat this for the distance of the lower left point of the chart.
    Hope this will help you out.

  • The Relation between tables and views in oracle financial

    Dears
    I am work in oracle e business r12
    and i need to build report as xml
    when run my select its need big time to view data i have a huge of data so i need to clear the relation of this tables if there is miss and if there another technique in select statement
    this is my select statement
    select
    j_hdr.je_header_id je_header_id,
    hdr.VENDOR_NAME supplier,
    SEGMENT1||'-'||SEGMENT2||'-'||SEGMENT3||'-'||SEGMENT4||'-'||SEGMENT5||'-'||SEGMENT6||'-'||SEGMENT7||'-'||SEGMENT8||'-'||SEGMENT9 Account_number,
    hdr.gl_date gl_date,
    j_hdr.CURRENCY_CODE CURRENCY_CODE,
    inv_lin.DESCRIPTION DESCRIPTION,
    j_lin.ENTERED_DR ENTERED_DR,
    j_lin.ENTERED_CR ENTERED_CR,
    j_lin.ACCOUNTED_DR ACCOUNTED_DR,
    j_lin.ACCOUNTED_CR ACCOUNTED_CR,
    j_hdr.JE_SOURCE JE_SOURCE,
    j_hdr.DEFAULT_EFFECTIVE_DATE Transaction_DATE,
    hdr.INVOICE_NUM INVOICE_NUM,
    QUICK_PO_NUMBER PO_NUMBER,
    null ASSET_CATEGORY_ID,
    hdr.VENDOR_ID VENDOR_ID
    from gl_je_headers j_hdr,gl_je_lines_v j_lin,ap_invoice_distributions dist,ap_invoices_v hdr,ap_invoice_lines_v inv_lin
    where code_combination_id = DIST_CODE_COMBINATION_ID
    and hdr.invoice_id = inv_lin.INVOICE_ID
    and dist.invoice_id = inv_lin.INVOICE_ID
    and j_hdr.JE_HEADER_ID = j_lin.JE_HEADER_ID
    and j_hdr.status = 'P'
    and nvl(:P_SOURCE,'Payables') = 'Payables'
    and je_source = 'Payables'
    and j_lin.CODE_COMBINATION_ID between ( select CODE_COMBINATION_ID
    from gl_code_combinations_kfv
    where CONCATENATED_SEGMENTS = :P_FROM_COMBINATION_CODE)
    and ( select CODE_COMBINATION_ID
    from gl_code_combinations_kfv
    where CONCATENATED_SEGMENTS = :P_TO_COMBINATION_CODE)
    AND TRUNC(dEFAULT_EFFECTIVE_DATE) BETWEEN NVL(:P_FROM_DATE, DEFAULT_EFFECTIVE_DATE) AND NVL(:P_to_DATE, DEFAULT_EFFECTIVE_DATE)
    Thanks in advance

    Welcome to the world of complicated Oracle Application queries. Didn't fully understand your question, so a few guesses -
    I think that you are asking how to make your query faster? I would reference the FAQ section on how to post a question regarding performance.
    Your title indicates you want to understand the relationship between tables and views. In general, Oracle Applications uses views for 2 reasons - to join data from multiple tables for display, and to differentiate data from different organizations. (I am still on 11i and have heard organizations are handled differently in 12 so I can't speak to that for sure).
    To understand the relationship between tables in a view, you can access the view's source code, either through a development tool such as PL/SQL Developer or TOAD (I'm guessing Oracle's tool does this also, but have never used it), or by querying the source from the dba_source table.
    select * from dba_source where name = (name of view) and type = 'VIEW' order by line;without the ( ) just the view name, in all capital letters i.e. , 'GL_JE_LINES_V'
    Good luck!

  • 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.

  • Data mismatch between TABLE and Std. Extract str. (AFPO & 2LIS_04_P_MATNR)

    Hi,
    I am getting data mismatch in ECC standard table and ECC standard extract structure. Please help me.
    I am using 2LIS_04_P_P_MATNR data source (standard extract structure).
    <b>I have following data in ECC Table (AFPO - Order Item).</b>
    AUFNR (Order Number) --> 4000460
    PGMNG (Total planned quantity)  --> 0
    PSMNG (ORDER QTY) --> 2000
    <b>Extract Structure is showing following data.</b>
    AUFNR (Order Number) --> 4000460
    PGMNG (Total planned quantity)  --> 2000 (It should be zero)
    PSMNG (ORDER QTY) --> 2000
    I have checked with many other order numbers. <b>The extract structure in RSA3 is showing correct values only if PGMNG is non-zero values. If PGMNG is zero, then it is automatically assigning PSMNG value.</b>
    Is this common? I want to display correct values for PGMNG from AFPO Table. Why this mismatch between table data and extract data. I have done  all required steps refreshing data (deleting setup tables, filling set up tables etc.).
    pls suggest. Poinsts will be assigned to every useful answer.
    Thanks in advance.

    Hi Avneet,
    I have a similar problem where in AFPO shows value 1000 in PSMNG field and 1200 in RSA3 for extractor 2LIS_04_P_MATNR.
    I have found that the standard feature of the extractor extracts the data at the time of release of process order. If the process order is changed after the release then the extractor will not picup the chagne.
    Ex: AFPO value 1000 ---BI Value 1000
    Now released in ECC
    AFPO value 1000 ---BI Value 1000
    In ECC value changed to 1500 after the release. BI will not pickup the change.
    Extractor is pulling the data from MCAFPOV table. You can check the values, there it matches with RSA3 values.
    I was just going thru forums for the solution. After i found the solution. I am just updating it.
    Hope it helps you.
    Thaks
    Srikanth

  • 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

  • Clear contents between tables

    Hi everyone,
    I need some help with a macro im doing.
    I have some documents with 150 pages with tables each and some text between them. 
    Basicly i need a macro to do this:
    Delete the text between tables (Except for the paragraphs with just "ABC" or "DEF");
    Delete the text between table and the paragraphs with "ABC" or "DEF"; 
    Format (fill with Grey the first row) the tables after "ABC" and keep the format the tables after "DEF"
    I don´t know if its possible, but i think it might be :)
    I hope someone can help me :)
    Many thanks!
    PS: I did an example but i can´t show it until you are able to verify my account. 

    I was thinking that the statement FREE MEMORY might help, but no, it does not clear all of the internal tables.  The only way I suppose is this.
    report zrich_0002.
    data: it0011 type table of t001.
    data: it0012 type table of t001.
    data: it0013 type table of t001.
    select * into table it0011 from t001.
    select * into table it0012 from t001.
    select * into table it0013 from t001.
    refresh: it0011, it0012, it0013.
    Regards,
    Rich Heilman

  • Relationship between tables in a module(urgent)

    Hi ,
    Am new to this domain(SAP)...
    I want to move datas to SAP through codes...
    For example,i want to add datas to ItemGroups module of Inventory module....But it failed...On the other hand,i was able to add datas to Item table of the same module...
    i think there is someother table to which ItemGroups is related..Could anyone kindly help me in finding out these type of relationship between tables in a moduel at ease?
    Hoping for your quick reply,
    Thanks

    hi
    I think in your scnario data is fetching from material valuation table based on material number (MBEW-MATNR), through document segment material table (MSEG-MATNR).
    Based on you company material management flow, your scenario is based.
    hope this helps
    thank you.

Maybe you are looking for