Join the table orders from clause

Hi all

Who is the effective way to join the tables in from clause. I have two tables first with 20 lakh records and second containing 10 lakh recods.
 
QUERY 1:  SELECT T4.ID,T4.ISO_NAME  FROM T,T4 
WHERE T4.ISO_NAME LIKE '%US%' AND T.ID=T4.ID;

QUERY 2:  SELECT T4.ID,T4.ISO_NAME  FROM T4,T 
WHERE T4.ID=T.ID AND  T4.ISO_NAME LIKE '%US%';

T(ID IS PRIMARY KEY) 
(20 lakh records)

T4 (ID IS PRIMARY KEY ) 
(10 lakh records)
---------------------
ID     ISO_NAME
100  US,UK,IN,BR
101  UK,US,BR,IN
102  BR,UK,US,IN


Note: No index on ISO_NAME .
Who is the effective query 1 or 2. Please suggest me if you have an idea to rewrite the query.



Kind regards
Rajasekhar

Published by: SuNRiZz68 on January 29, 2009 04:22

In practical terms, Alex is right. Sometimes it matter what table is selected first, but does the CBO generally a very good job of deciding what you need to select the first (assuming that your statistics are up to date) but this is the situation you are trying to avoid as much as possible.

If you specify a table main command tables in the clause is not reliable and should be used - but think before using advice and don't do that when necessary.

Which table to select depends firstly on the join method in the execution plan. Nested loops joins perform better by selecting in the smaller table first, make a loop on the largest table. Joins the smaller set hash table in memory first, and then go through the larger table, perform searches in memory. He can't make any difference, what table is read using first the merger joins and sort.

Back to your original question. Using the cost-based optimizer, both queries will probably roll the same because newer versions of Oracle (9i, 10g) often transform queries for efficiency before the execution anyway. According to what do you or do not request should probably run a nested loop or hash join. With a small set of data creaing index and using a search of nested loops will probably be faster to avoid full table scans. the '%' in the LIKE clause leader would ignore an index on the ISO_NAME column in any case if a main column may be used in a composite index. All this is based on the approximation using the information provided; Tuning questions should always be tested to unexpected developments.

Tags: Database

Similar Questions

  • Join the tables in the responses

    I would like to know if it is possible to join the tables together as below in the answers?

    Select a.Field1, b.Field1
    FROM tableA an outer join left tableA b on
    a.Field1 = b.Field

    If you want to make an INNER JOIN, and then type INNER JOIN instead of LEFT INNER JOIN.

    If you want to left outer join and LEFT OUTER JOIN instead of INTERNAL LEFT JOIN type.

    Nothing asked as a left inner join. That is why it gives error + [nQSError: 27002] near +.

    Thank you

  • How to join the table in screens LCD

    Hello

    How can I join the tables in the screens LCD and show them in a datagrid?

    I run LCDS3 and tomcat.

    Any help is appricitated

    User (name, surname, address)

    Address (address, State, country, postal code)

    If you want to display data below in your data grid

    ---------------------------------------------------------------------------

    firstName.       lastName.  State

    ---------------------------------------------------------------------------

    user.firstName | user.lastName | User.Address.State

  • Update statement with joins of tables and where Clause

    Hi, I have MS SQL background and I try to execute an update statement in Oracle with joins of tables. However, the syntax below does not work but I think it works for MS SQL.

    Basically, the base table must be attached to a master table trend with monthly snapshots, an account will be only an entry for a given date monthly. Where clause must be limited to accounts within a certain range of interest rates.

    The first approach returns command SQL ORA-00933 not correctly completed, and the second approach returns ORA-01427 row below query returns multiple rows. Can anyone help? Thanks in advance!



    1:

    Update PenaltyAll
    Set a.indicator = month (b.)
    of PenaltyAll an inner join Master b on a.acctno = b.accountnumber
    where a.monthend='01/31/2009' and b.date='12/31/2008' and b.apr < 20

    2:

    Update PenaltyAll
    adjustment indicator =
    (select to_char (b., 'MM')
    of PenaltyAll an inner join Master b on a.acctno = b.accountnumber
    "where to_char (a.monthend,'mm/dd/yyyy ') = 31 January 2009"
    (et to_char(b.date,'mm/dd/yyyy') = December 31, 2008 "
    and b.apr < 20)

    Published by: sqlrookie on August 21, 2009 07:04

    I edited my post, that was my mistake, ANC you try now?

  • SubSkuCommerceItem is not get recorded in the table orders.

    We created a configurablecommerce element and adds subskucommerceitem and placed an order.

    It is, subskucommerceitem is not available in the order object in the fulfillmentpipeline formations.
    In one of the formations of fulfillmentpipeline, we did order.getCommerceItems (), which returns configurablecommerceitem. Then the getCommerceItems() on configurablecommerceitem returns null.

    On analysis further below, we noticed in the database, which could be the root cause:
    1 DCSPP_ITEM table has two lines for this order, one showing configurablecommerce point, the 2nd subsku.

    2 DCSPP_ORDER_ITEM table has an entry in this order, which is the configurablecommerce item id.

    I guess that subskucommerce is not getting stored in the descriptor control point.

    Also, there is no line in the DCSPP_CONFIG_ITEM table.

    Help, please.

    Error messages: no error message.

    Gopi

    There is code to save and load in normal subSkuCommerceItems save and load pipeline processors. The fact that you see a subsidiary question in dcspp_item means that it has been saved. Expect to see paragraphs in the table of dcspp_order_item because that's only the top-level items. Subtopics should appear in dcspp_item_ci instead.

    It is possible that your question has been registered but not recharged properly. Turn on loggingDebug in LoadCommerceItemObjects should be useful if that's the problem.

    Save this sub-item and loading code depends on the parent wrapper object CommerceItem that implements the CommerceItemContainer interface. If you have a custom CommerceItem implementation that does not implement CommerceItemContainer, which confuse the ootb save and load code. Another possibility is that code loading instantiates the class incorrect wrapper, what might happen if OrderTools is misconfigured.

  • Join the tables of towing on the overlap of the keywords.

    I must join two large tables and have the situation like this:

    TABLE_1TABLE_2
    Ibis<>-Ibis Sydney Airport
    the Ibis budget<>-Ibis budget Enfield
    Ibis Styles<>-Hotel Port Hedland

    And avoid the situation like this:

    TABLE_1TABLE_2
    IbisNO.Ibis budget Enfield
    IbisNO.Hotel Port Hedland

    Is it possible using SQL/PLSQL?

    The solution is strongly dependent on the structur of your data.

    A simpe approach can be:

    with t1 as)
    Select'ibis all of the double union
    the select 'ibis' Union budget double all the
    Select'ibis Styles of double
    )
    t2 as)
    Select 'ibis Sydney Airport' t of all the double union
    ' select'ibis budget Enfield "of all the double union
    ' select'ibis Styles Port Hedland "double
    )

    Select t, s of)
    Select
    s
    t
    , row_number() over (partition by order of t by length (regexp_replace (t, ' ^': s l)))
    from t1
    t2
    where
    length (regexp_replace (t, ' ^': s))< length="">
    )
    where
    l = 1
    order of s

    T, S

    "ibis Sydney Airport", "ibis".

    "ibis Styles Port Hedland", "ibis Styles.

    "ibis budget Enfield", "ibis budget."

    If regexp will not run, you can relax the requirement that the match should start at the beginning and replace rege_replace by just replace.

  • Query OBIEE adding additional tables in from clause

    Hello

    I have a logic with multiple LTS in tables when trying to query form only one column this logic table adds a few additional tables in which the clause of the query. Could if it you please let me know what could be the reason behind this issue.

    Here, I would add the query should be and what query generates OBIEE.

    I have a logical table - T_SO_ACCRUAL_PRODUCTS with source table logic multi.

    tables is LTS - INV_PRODUCT_GROUP1, Inv_Accrual_Groups, Inv_Grade_Code, Inv_Item_Classes, Inv_Item_Codes, PS_DAILY_STANDING_DETAILS, T_So_Customer_Request, PS_DAILY_STANDING_DETAILS_FREZ, T_So_Request_Details, T_SO_ADJUSTED_QTY, T_SO_ACCRUAL_MASTER, T_SO_ACCRUAL_PRODUCTS

    Now I have an ITEM_NUMBER column in the Inv_Item_Codes table (which I added in forT_SO_ACCRUAL_PRODUCTS LTS).

    I select only that ITEM_NUMBER in analysis of BI to find only the ITEM_NUMBER in INV_ITEM_CODE, so that the query selection must be--

    Select 0 distinct as c1.

    D1. C1 C2

    Of

    (select distinct T2010613. ITEM_NUMBER C1

    Of

    SALES_E0. D1 INV_ITEM_CODES T2010613)

    But the query I get in the nqquery.log file.

    Select 0 distinct as c1.

    D1. C1 C2

    Of

    (select distinct T2010613. ITEM_NUMBER C1

    Of

    SALES_E0. INV_ITEM_CODES T2010613,

    SALES_E0.PS_DAILY_STANDING_DETAILS T2010846,

    SALES_E0.PS_DAILY_STANDING_DETAILS_FREZ T2010861,

    T_SO_CUSTOMER_REQUEST T2011274,

    T_SO_REQUEST_DETAILS T2011561,

    SALES_E0. T_SO_REQUEST_TRANSACTIONS T2011657

    where (T2010613. ITEM_NUMBER = T2010846. ITEM_NUMBER and T2010613. ITEM_NUMBER = T2010861. ITEM_NUMBER and T2010613. ITEM_NUMBER = T2011561. ITEM_NUMBER and T2010613. ITEM_NUMBER = T2011657. ITEM_NUMBER and T2010846. CUSTOMER_NUMBER = T2011274. CUSTOMER_NUMBER and T2010861. CUSTOMER_NUMBER = T2011274. CUSTOMER_NUMBER and T2011274. REQUEST_NUMBER = T2011561. REQUEST_NUMBER and T2011561. ITEM_NUMBER = T2011657. ITEM_NUMBER and T2011561. LINE_NUMBER = T2011657. LINE_NUMBER and T2011561. REQUEST_NUMBER = T2011657. REQUEST_NUMBER)

    ) D1

    I don't understand, why is the addition of these additional tables that I select only one column of the INV_ITEM_CODES table.

    Does anyone have an idea about it, why he adds these additional tables in the query?

    Thank you in advance for your help!

    Gerard

    [nQSError: 43119] Query Failed: [nQSError: 14025] indeed no table exists at the level of detail required

    Possible reasons:

    (1) level of content is not defined in the layer MDB of the SPR to one of the measures or dimension

    Logical Table-> content-> logical level tab-> Fact1/Fact2/Dim1: Source

    (2) Admintool WARNING: logical dimension table [39008]... a... a source that do not adhere to any source of fact.

    -> to check business model (and by the way of physical model) diagram for: Fact1, Fact2, Dim1

    (3) lack of aggregation method the measurement made ('Aggregation' of the measurement column tab)

    -> set aggregation (perhaps ' amount') for measures

    Looks like you have a lot of tables, but put them as sources of logical table, when they could not logically be related ' ' it... If you want you can send me your SPR and I can watch what you are doing.

  • Help at the table orders pleeease!

    Hello to you all...

    I am very new to actionscript, and I have a code that I use for an effect of 'snow' for a banner. It works very well!

    But, I can't turn it off!

    I would like to turn to scene 2, disable it in stage 3 and reset the whole clip loops.

    Can someone please help me to do this?

    Here, I've included the coding with comment tags to help out...

    Any help would be much appreciated...

    Take care...

    Coz...

    ------------------------------   coding..   --------------------------------------

    SNOWSTORM IN 15 MINUTES!

    Author: Seb Lee-Delisle

    Blog: www.sebleedelisle.com

    Company: www.pluginmedia.net

    //

    This work is under a Creative Commons 2.0 license.

    Details to the

    // http://creativecommons.org/licenses/by/2.0/UK/

    You can re - use this code as you wish, but a credit would be

    appreciated. And I'd love to see what you do with it!

    / / send me a mail: [email protected]

    import flash.events.Event;

    import flash.geom.Rectangle;

    first make a table to put all our snowflakes in

    snowflakes var: Array = new Array();

    and decide how many snowflakes maxium we want

    var numFlakes: uint = 500;

    and define a rectangle where you will store the dimensions of the screen in.

    var screenArea:Rectangle = new Rectangle (0,0,486,60);

    start listening to an event ENTER_FRAME (equivalent

    the AS2 onEnterFrame function)

    addEventListener (Event.ENTER_FRAME, frameLoop);

    and define the function that is called on an ENTER_FRAME event

    function frameLoop(e:Event)

    {

    var snowflake: snowflake;

    / / if we do not have the maximum number of snowflakes...

    if(snowFlakes.length<numFlakes)

    {

    / / can make a new one!

    snowflake = new SnowFlake (screenArea);

    / / add to the range of the snowflakes

    snowFlakes.push (snowflake);

    / / and add it to the stage

    addChild (snowflake);

    }

    / / now calculate the wind factor by looking at the position x

    / / the mouse to the center of the screen

    wind var: number = ((screenArea.width/2) - mouseX);

    / / and divide by 60 to reduce its size

    wind / = 60;

    / / now loop through each snowflake

    for (var i: uint = 0; i < snowFlakes.length; i ++)

    {

    = flakes snowflake snow [i];

    / / and update

    snowflake.update (wind);

    }

    }

    Copy and paste this function frame 1 of scene 1.

    then in the frame 1 scene 2 (and any other image where you want to disable the snow), copy and paste:

    removeSnowF();

  • Join the order of the tables

    Hi all
    can someone tell me how I have oracle decide to join of the orders.

    lets say, I associate myself with 3 tables tab1, tab2, tab3.
    tab1 has 500000 records.
    tab2 has 200000 records.
    tab 3 have 100000 records.

    so, what should be my order of joining tables.

    I will use as below... (assuming that col1 is same join key in all tables)

    Select * from tab1 tab2, tab 3 t3 t2, t1
    where t1.col1 = t2.col1
    and t2.col1 = t3.col1;

    but I do not know what table I should take the first in from clause where clause.

    such kkindly me deep...

    Rgds,
    PC

    Oracle can and will decide the order. It doesn't matter what you write.

    He made a better choice of statistics have collected more than you on the relevant tables/columns.

    It is possible to control the order with tips but I do not recommend unless you really know what you're doing (and not even then :-))

  • * Dynamic * Table name in the From Clause, with the help of the cursor

    Hello
    I said a slider...
    Select the table table_name from dba_tables where < blah >
    The result is
    Row1: emp
    rwo2: emp_1-> tables have the same structure and quite different data... Please don't ask why it's like that, and we can not change...

    Now, we need to run an Insert...

    Insert into tableX (col1, col2,...) select a, b,... from < o/p of the cursor > where < blah >...
    Note: The table changes name and it the cursor can o/p emp, emp_a and emp_b.

    Trying to do at the same time instead of do series and with the best performance... .no sql injection issues.
    In parallel, I mean
    Insert into tableX (col1, col2,...) select a, b,... from emp where < blah >
    and insert tableX (col1, col2,...) select a, b,... from emp_1 where of < blah > statements at the fire parallel / at the same time to the database. If you can share the procedure if you guys already have with you... is really appreciated

    Thank you very much for your time...

    Published by: user007009 on April 27, 2013 20:33

    >
    because suppose each request took 10 minutes and we have 5 tables, then 50 minutes so executed in series and 5 minutes, if each of them both right... I'm saving this time
    >
    And that's what I'm talking about when I said that
    >
    what you're doing wrong is trying to implement solutions more possible complex for a problem that does not exist yet.
    >
    You do not HAVE a problem. You are just "assuming"; "Suppose that each query took 10 minutes... ».

    Well suppose that the time it takes to "chunk" the query, run it in parallel is longer than the time it takes to simply run the query. Oh, wait, that OF what you have discovered.

    Well, let's assume that each query took 2 seconds. Assume that all this takes that half a second. Suppose you waited until you actually have a problem.

    The solutions are to solve real problems, not imaginary and non-existent problems.

    If all you are doing is "assume that" you will never find a 'solution' because you could always 'suppose' another problem that prevents this 'solution' of work.

  • JOIN the question... Join two tables without omitting lines

    I came across a problem that should be an easy fix (I hope), but I'm having a hard time to come up with a solution.

    Basically I have two tables, one with the actual amounts with the budget. I have to write a sql statement select that joins these tables together and includes all of their lines. I was able to join the tables by using JOIN, LEFT JOIN and RIGHT JOIN, but it always fails the lines I need.

    Below, I have examples of my tables (AMOUNT_TABLE and BUDGET_TABLE). For simplicity, I built the examples to show the same values in the first four columns, with the 5th and 6th columns (SUB_ACCOUNT, AMOUNT, BUDGET) as the only values that are different. My actual tables are not quite that simple, but I don't think it was relavent to this issue.

    AMOUNT_TABLE

    FISCAL_YEAR PERIOD ACCT_UNIT ACCOUNT SUB_ACCOUNT AMOUNT

    2013

    111111555555000010020131111115555551000100201311111155555520001002013111111555555300010020131111115555554000100

    BUDGET_TABLE

    FISCAL_YEAR PERIOD ACCT_UNIT ACCOUNT SUB_ACCOUNT BUDGET

    2013

    1111115555553000200201311111155555540002002013111111555555500020020131111115555556000200

    Here's what I hope. Note that SUB_ACCOUNTs 0000, 1000, and 2000 show without budget amounts since there is not a corresponding line in the BUDGET_TABLE. And same for SUB_ACCOUNTs 5000 and 6000, they show budgets with no amount because there is not a corresponding line in the AMOUNT_TABLE.

    (exit)

    FISCAL_YEAR PERIOD ACCT_UNIT ACCOUNT SUB_ACCOUNT AMOUNT BUDGET
    201311111155555500001000
    201311111155555510001000
    201311111155555520001000
    20131111115555553000100200
    20131111115555554000100200
    201311111155555550000200
    201311111155555560000200

    If all goes well, my question is clear. Any help on this would be greatly appreciated. Thanks in advance.

    Use the join ANSI - FULL OUTER JOIN syntax:

    with amount_table like)

    Select fiscal_year 2013, 1 period, 11111 acct_unit, 555555, 0000 sub_account, amount 100 of all the double union

    Select 2013,1,11111,555555,1000,100 from all the double union

    Select 2013,1,11111,555555,2000,100 from all the double union

    Select 2013,1,11111,555555,3000,100 from all the double union

    Select double 2013,1,11111,555555,4000,100

    ),

    budget_table like)

    Select 1 time, 11111 acct_unit, account 555555, sub_account 3000, 2013 fiscal_year, budget of 200 Union double all the

    Select 2013,1,11111,555555,4000,200 from all the double union

    Select 2013,1,11111,555555,5000,200 from all the double union

    Select double 2013,1,11111,555555,6000,200

    )

    Select nvl (a.fiscal_year, b.fiscal_year) fiscal_year,

    period of NVL (a.period, b.period),

    NVL (a.acct_unit, b.acct_unit) acct_unit.

    account of NVL (a.Account, b.Account),

    NVL (a.sub_account, b.sub_account) sub_account.

    Amount NVL(a.amount,0),

    NVL(b.budget,0) budget

    of amount_table one

    full join

    budget_table b

    on)

    a.Fiscal_Year = b.fiscal_year

    and

    a.period = b.period

    and

    a.acct_unit = b.acct_unit

    and

    a.Account = b.account

    and

    a.sub_account = b.sub_account

    )

    /

    FISCAL_YEAR PERIOD ACCT_UNIT ACCOUNT SUB_ACCOUNT AMOUNT BUDGET
    ----------- ---------- ---------- ---------- ----------- ---------- ----------
    2013 1 11111 555555 0 100 0
    2013 1 11111 555555 1000 100 0
    2013 1 11111 555555 2000 100 0
    2013 1 11111 555555 3000 100 200
    2013 1 11111 555555 4000 100 200
    2013 1 11111 555555 6000 0 200
    2013 1 11111 555555 5000 0 200

    7 selected lines.

    SQL >

    SY.

  • The ANSI syntax for the join 4 tables-is this correct?

    Hi, I'm new to these forums and I have looked everywhere and cannot find the syntax and examples on how to join the tables 2 and 3 using the ANSI standard, but I need to reach 4. For a traditional join, it would be:

    SELECT a.two b.one, b.three, b, a.one, d.seven
    Tablea, tableb b, c in tablec, deposited d
    WHERE a.one = b.one
    AND a.two = c.two
    AND c.six = d.six;

    Here are the tables:

    TableB
    one
    three
    four

    TableA
    one
    two

    TableC
    two
    six

    deposited
    six
    seven
    eight

    Anyone know how to do this by using an ANSI join or have all of the resources that can guide me in the right direction. I don't know if I wanted to join three tables, it would be:

    SELECT a.two b.one, b.three, b, a.one, c.six
    FROM tableb b JOIN tablea one WE b.one = a.one JOIN tablec c ON a.two = c.two;

    so join a fourth would:

    SELECT a.two b.one, b.three, b, a.one, d.seven
    FROM tableb b JOIN tablea one WE b.one = a.one JOIN tablec c ON a.two = d JOIN filed c.two ON c.six = d.six;?

    Is the above correct or is there another way to do this, use an ANSI join?

    Published by: user1076466 on October 17, 2009 17:40

    Hello

    your JOIN looks good,

    "FROM tableb b JOIN tablea one WE b.one = a.one JOIN tablec c ON a.two = d JOIN filed c.two ON c.six = d.six" you get a different result set?

    Thank you

  • Join view Table

    Hello

    My doubt is that I can join the table with view in the sub clause where condition in the query. If so, the query below will take 4 hrs to run it. I can do the below query to write under the simpler name?
    SELECT *
      FROM uabpymt p, uavlsum l
    WHERE uabpymt_appl_ind = 'N'
       AND uabpymt_amount > 5
       AND l.uavlsum_balance < 0
       AND l.uavlsum_cust_code = p.uabpymt_cust_code
       AND l.uavlsum_prem_code = p.uabpymt_prem_code
    uavlsum - view
    uabpymt - table

    The script view below:
    CREATE OR REPLACE VIEW UAVLSUM
    (UAVLSUM_CUST_CODE, UAVLSUM_PREM_CODE, UAVLSUM_AMOUNT, UAVLSUM_BALANCE)
    AS
    SELECT cust_code,
           prem_code,
           SUM(amount),
           SUM(balance)
    FROM (
    SELECT uabopen_cust_code cust_code,
           uabopen_prem_code prem_code,
           uabopen_billed_chg amount,
           uabopen_balance balance
    FROM   uimsmgr.uabopen
    UNION ALL
    SELECT uabpymt_cust_code,
           uabpymt_prem_code,
           uabpymt_amount * -1,
           uabpymt_balance * -1
    FROM   uimsmgr.uabpymt
    UNION ALL
    SELECT uabadje_cust_code,
           uabadje_prem_code,
           uabadje_balance,
           to_number(0)
    FROM   uimsmgr.uabadje
    WHERE  uabadje_balance <> 0)
    GROUP BY cust_code,
             prem_code

    samuraibala wrote:
    Find the below out of the plan to explain that we get from the execution of the query

    You use the RULE-based optimizer. What version of Oracle (4-digit, e.g. 9.2.0.8) are you using?

    The execution plan essentially uses the UNION ALL like table to get the corresponding lines of UABPYMT via an index seek according to join at the wheel. According to the number of rows returned by the UNION ALL and grouping factor / selectivity of the index, this could be quite ineffective.

    In addition the GROUP BY operation obviously was merged in the main query, so a NO_MERGE hint could help reduce the number of rows from the source line of conduct UNION ALL:

    SELECT /*+ NO_MERGE (l) */ *
    FROM uabpymt p, uavlsum l
    ...
    

    With the help of the COST based optimizer might give better results.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • Change of shape joining multi tables SQL...

    I need to be able to join the tables in the detail section of my master-detail form. Since I have more than three paintings to join, I think that APEX needs to use "ROWID" to track the value of the key of the primary table. When I try substitute basic sql generated for the report to my own joined table I get an error return "IMPOSSIBLE of ANALYSER. If I remove "ROWID" in the statement, then fine. Here's the statement from the apex generated:

    Select
    "ROWID",.
    "PO_ID."
    "PO_DET_ID,"
    "CHANGE_ORDER,"
    'START_DATE ',.
    'END_DATE ',.
    "PO_DET_AMT,"
    "SCOPE."
    "PO_STATUS,"
    "MRS."
    of ' #OWNER # '. " PO_DETAILS ".
    where "PO_ID" =: P240_PO_ID

    However, I need for the statement as follows:

    Select "ROWID",.
    po_details.po_id,
    po_details.po_det_id,
    po_details.change_order,
    po_details.start_date,
    po_details.end_date,
    po_details.po_det_amt,
    po_details. Scope,
    po_details.po_status,
    po_details. WBS
    of PO_DETAILS, IN., WBS, PROJECT
    where po_details.po_id = po.po_id
    and po.po_number = wbs.po_number_id
    and po_details.wbs = wbs.wbs_number_id
    and substr (wbs.wbs_number_id, 1, 6) = project.wbs_sequence
    and project.project_number = nvl(:F101_FPC_NUMBER,project.project_number)
    and po_details.po_id =: P240_PO_ID

    Then, I get the following ORACLE error:

    •Query cannot be parsed in the generator. If you believe that your query is syntactically correct, check the generic "columns" box below the source of the region without analysis. ORA-00918: column ambiguously defined

    I'm guessing that the column "defined ambiguous ' is ROWID.

    SELECT the query aspect works fine if I remove ROWID, but I then cannot update the table when the user needs to change the data. I get an exception defined by the user.

    I am new to APEX, so I do not know there are certain aspects that I'm missing.
    Any tips?

    There is no way to use a join of multiple tables in the APEX?

    Of course you can. Have you tried again (with the help of PO_DETAILS ROWID in the select statement)?

    I tried with a form on EMP and then modified the query to:

    select
    e."ROWID",
    e."EMPNO",
    e."ENAME",
    e."JOB"
    from "#OWNER#"."EMP" e, dept d
    where e.deptno = d.deptno
    and d.deptno = :P14_DEPTNO
    

    IMHO, it's simply more transparent if you use a view as the source. You select a view, and you update the same point of view.

    Published by: InoL on May 14, 2013 13:49

  • px12-350r unable to join the domain - what now?

    Hi all!

    I hope you can give me some advice because at the moment I'm in a really silly situation, being probably locked out of my Iomega px12-350r.

    Here is what happened:

    * The device was successfully linked to my domain name Microsoft AD and worked with this config at least a year.

    * I expanded the storage matrix, 2 days adding 2 drives. Everything went well and the end of the expansion, the new total disk space is displayed correctly in the web administration interface.

    * After this, I restarted the device. After the reboot, I couldn't connect to the device more using my domain account. This account had administrative rights on the NAS and I connected on the NAS using this account before.

    * I don't alter the domain infrastructure.

    * I know that the device cannot join the domain more because I enabled e-mail notifications and he continues to send me "unable to join the domain".

    I have already tried:

    * Connection using the usual accounts: doesn't seem to work once the device is connected to a domain.

    * Connection via SSH. Does not work, probably for the same reason as above.

    I wasn't yet:

    * The user manual mentions reset the admin password by pressing the reset on the back button. But this will only reset config (I'd be okay with it), or it will erase the data on the drives as well?

    I'm from the Germany. Despite having purchased a service plan 24 x 7 hotline support German will only redirect me to the hotline American which claim to do only office, no SIN px12. I'm kinda in the middle of nowhere now. ;-)

    Thanks for your help!

    Best regards

    Florian

    Hi André,.

    I fixed it without reboot - by chance.

    In a desperate attempt, I tried to connect using the domain administrator account - and it worked! I don't remember giving any px12 admin permissions to this user and I certainly don't connect to the device using this user before. But the account has permissions to create computer accounts in the ad, and in the moment when I logged in the computer account of the AD px12 updated password.

    I tell myself that the px12 has used the account admin for re - joining the domain. From the web interface, I could now do a sync AD and after that, all users of domain reworked.

    So, if anyone has the same problem, try connecting the device with any account that has administrative rights on the whole of the field, even if you have not used the account on the device before. It can work for you, too.

    Local accounts still do not work. I think that if the device is connected to a domain and the domain link is broken permanently, so it's only the reset button.

    Andrew Merci for your support!

    Best regards

    Florian

Maybe you are looking for