join with condition

Hi all

Is there a possible way to cross the join with condition?

I want something like this:

Table A: custid, accu_id, sum

CustID, accu_id unique =

CustomerID amount accu_id

10 25 400

10 35 447

10 29 420

20 30 510

30 35 472

.

.

.

Table b: accu_id, description

accu_id description

shoes 25

Book 29

30 computer

pen 35

Note: in table A, it is a mismatch of the accu_id values that do not use. Please, take into account this.

I want to see all the columns in the TABLE B for each custid in A. TABLE (something like cross join but with ONE article.) The following query does not work.

Select * from a right join B on A.accu_id = B.accu_id;

10-25

10-29

10-30

10-35

20-25

20-29

20-30

20-35

30 25

30 29

30 30

30-35

What should I do for this?

Thanks in advance

Use partition outer join:

with a (too)

Select double union all 10 custid, accu_id 25, amount 400

Select 10,35,447 from all the double union

Select 10,29,420 from all the double union

Select 20,30,510 from all the double union

Select double 30,35,472

),

b like)

Select accu_id 25, "shoe" description of all the double union

Select 29, 'book' from dual union all

Select 30, 'computer' from dual union all

Select 35, 'pen' from dual

)

Select a.custid,

a.accu_id,

a.amount,

b.

a

by (a.custid) partition

right join

b

On a.accu_id = b.accu_id

order of a.custid,

a.accu_id

/

AMOUNT ACCU_ID CUSTID DESCRIPT
---------- ---------- ---------- --------
10 25 400 shoe
10 29 420 book
10 35 447 pen
10 computer
20 30 510 computer
shoe 20
book 20
20                       pen
30 35 472 pen
30 shoe
30 book

AMOUNT ACCU_ID CUSTID DESCRIPT
---------- ---------- ---------- --------
30 computer

12 selected lines.

SQL >

SY.

Tags: Database

Similar Questions

  • Join with conditions of outer join statement

    Hello
    The following was extracted from the 11 GR 2 document guide performance, which I am not quite understand.
    Can anyone provide some examples to clearly explain this. Thank you

    For join instructions examples with outer join conditions, the table with the outer join operator must come after the other table in the condition in the join order. The optimizer does not consider join orders that violate this rule. Similarly, when a subquery was transformed into an antijoin or a semi-join, arrays of the subquery must come after these tables in the outer query to which they were connected or block in correlation. However, semijoins and antijoins of hash are override this order condition in certain circumstances
  • Problem with the join relationship condition master / detail

    Hello
    I need to join with master detail such as if there is no trace of the foreign key in detail to the primary master key, the foreign key must be attached to another column based on certain conditions in the master. For example:

    Control columns: pk1, rk1, rk2
    Detail of the columns: fk1, a, b, c

    I created a relationship with detail with the join condition, pk1 = fk1 in master.
    But according to value rk1, I actually join fk1 to rk2 in master and if the condition fails then join the pk1. I can't put this condition in the relationship that the form does not accept complex join conditions.

    I hope that my example has not confused everyone.

    Can someone help me to achieve this goal.

    TIA

    TIA,
    I agree with DM, rather than using the RELATIONSHIP between the blocks that I would create logic to manually set the DEFAULT_WHERE clause on the block of RETAIL with the criteria you need to MASTER block. This can be a little difficult if you want to form work the same way if you had defined a relationship because you will have to create all the triggers event coordination. The most difficult part is to choose the right triggers to coordinate the synchronization when a user accesses a folder of master to another. For just the basics (the block of retail is questioned when the user navigates to the retail block), you could do the following:
    1. create a When-new-folder-Instance trigger on the Master block to capture the relevant details to query the block detail and define the DEFAULT_WHERE.
    2 create a trigger in a times - news - block - Instance on the block of retail to run the query on the block of retail and display the details records.

    For example:

    /* Sample When-New-Record-Instance trigger */
    DECLARE
         v_temp_where          VARCHAR2(500); /* make larger if needed. */
    BEGIN
         IF ( :MASTER_BLOCK.First_Item IS NOT NULL ) THEN
              /* this is needed for when the user navigates to a NEW record in the MASTER Block. */
    
              /* Add your conditional logic here to determine how to build your WHERE clause */
              IF ( RK1 = 'Dependent Values' ) THEN
                   v_temp_where := 'PK1 = FK1';
              ELSE
                   v_temp_where := 'RK2 = FK1';
              END IF;
    
              Set_Block_Property('DETAIL_BLOCK',ONETIME_WHERE,v_temp_where);
              /* If you are using Forms 6i, the ONETIME_WHERE property is not available so you will have to */
              /* use the DEFAULT_WHERE property instead. */
         END IF;
    END;
    
    /* Sample When-New-Block-Instance trigger
    BEGIN
         /* This sample code assumes the user has not navigated to a New Record */
         /* so there will always be a NOT NULL default where assigned to the DETAIL BLOCK.*/
         Clear_Block(ASK_COMMIT); /* just in case the user made changes... */\
         Execute_Query;
    END;
    

    Please understand it is the EXAMPLE of Code and is intended to be a starting point for you - not the complete solution.

    I hope this helps.
    Craig...

    If a response is appropriate or useful, please mark accordingly

  • SQL with conditions

    Hello

    I need to generate a summary table with conditions. Here are the details:

    create the table tb_class (classId number (5), studentNum number (5));

    create table tb_grade (classId number (5), gradeNum number (5)):

    insert into table values tb_class (101, 100);

    insert into table values (201, 102) tb_class;

    insert into table values (102, 103) tb_class;

    insert into table values tb_grade (101, 1);

    insert into table values (102, 1) tb_grade;

    insert into table values (201, 2) tb_gradfe;

    I would like to get the total number of students registed in a specific shade with a SQL, the result is expected as follows:

    GradeNum studentNumRegistered studentNumNonRegisted

    1                         203                                      102

    2                         102                                      203

    Is that what you are looking for?

    WITH subsum AS
     (SELECT tb_grade.gradenum,
             SUM(tb_class.studentnum) AS students
      FROM   tb_class
      JOIN   tb_grade ON tb_grade.classid = tb_class.classid
      GROUP  BY tb_grade.gradenum)
    SELECT subsum.gradenum,
           SUM(subsum.students) AS studentnumregistered,
           SUM(subsum1.students) AS studentnumnonregistered
    FROM subsum
    JOIN subsum subsum1 ON subsum1.gradenum != subsum.gradenum
    GROUP  BY subsum.gradenum;
    
  • XMLTable to extract columns with conditional path does not

    Hello

    I am on 11.2.0.3 and I need to extract columns on a section of XML with conditions on, but I get "ORA-00907: lack the right parenthesis", so I think that the way I go about it is not supported or that I have somehow the wrong syntax or something.

    This is a very simplified what I'm trying to do (there could be several different entries in the < sets1 > and < sets2 > sections and they might be in different orders, is not as if I can always choose the first or the last):

    with sample_data as (select 1 id,
                                xmltype('<root>
                                           <sets1>
                                             <set1><set_name>name1</set_name><set_val>val1</set_val></set1>
                                             <set1><set_name>name2</set_name><set_val>val2</set_val></set1>
                                           </sets1>
                                           <sets2>
                                             <set2><set_name>name3</set_name><set_val>val3</set_val></set2>
                                             <set2><set_name>name4</set_name><set_val>val4</set_val></set2>
                                           </sets2>
                                         </root>') xml_doc from dual)
    select *
    from   sample_data sd,
           xmltable('<root>' passing sd.xml_doc
                    columns col1 varchar2(10) path 'sets1/set1[set_name=''name1'']/set_val',
                            col2 varchar2(10) path 'sets1/set1[set_name=''name2'']/set_val',
                            col3 varchar2(10) path 'sets2/set2[set_name=''name4'']/set_val') x;
    

    What I'm trying to get:

    COL1  COL2  COL3
    ----  ----  ----
    val1  val2  val4
    

    I know that I could separate the < set1 > and < set2 > nodes in their own xmltypes xmltable on it and then join them and make the necessary pivoting, etc., but when I try to start that against only 1000 lines, db do not love and ended my session! Therefore, I'm looking for a more elegant way to do it.

    Is there a way to do this in a XMLTABLE? Pointers are very welcome!

    It solves your problem of sample request and you get the output that show you.

     with sample_data as (select 1 id,
                                 xmltype('
                                            
                                              name1val1
                                              name2val2
                                            
                                            
                                              name3val3
                                              name4val4
                                            
                                          ') xml_doc from dual)
     select x.*  -- change
     from   sample_data sd,
            xmltable('/root' passing sd.xml_doc  -- change
                     columns col1 varchar2(10) path 'sets1/set1[set_name="name1"]/set_val',  -- change
                             col2 varchar2(10) path 'sets1/set1[set_name="name2"]/set_val',  -- change
                             col3 varchar2(10) path 'sets2/set2[set_name="name4"]/set_val') x;  -- change
    

    As you can see, I've marked the lines that I've changed.  The error you saw came to use two single quotes in the COLUMN XPath instead to use double quotes.  Then I changed the XPath expression in the XMLTable brackets as well.

    I'm confused on what the columns you really want overall, in terms of how you know which values you want, or did you mean that you want something random sets1 and sets2.

    You store the XML file in a column of XMLType SECUREFILE BINARY, right?  It seems that you made previous visits, but just double check.

  • Left Join with a subquery

    Hey everybody!

    I have some difficulty in trying to create a SQL query.

    I have the following tables:

    -Table Products: Product list
    CREATE TABLE (PRODUCTS)
    PRODUCT_ID INTEGER NOT NULL,
    KEY ("PRODUCT_ID") PRIMARY CONSTRAINT 'PK_PRODUCTS '.
    );

    -Orders table: Decreed this product
    CREATE TABLE ORDERS)
    ORDER_ID INTEGER NOT NULL,
    PRODUCT_ID INTEGER NOT NULL, / * FK PRODUCTS (PRODUCT_ID) * /.
    KEY ("ID_PEDIDO") PRIMARY CONSTRAINT 'PK_ORDERS '.
    );

    -Orders_Approval table: register when an order is approved
    CREATE TABLE ORDERS_APPROVAL)
    ORDER_ID INTEGER NOT NULL, / * FK ORDERS (ORDER_ID) * /.
    APPROVAL_DATE DATE NOT NULL,
    USER_ID INTEGER,
    KEY("ORDER_ID","APPROVAL_DATE") PRIMARY CONSTRAINT 'PK_ORDERS_APPROVAL '.
    );

    -Table Orders_ApprovalData: Register more details on the amenities of the order
    CREATE TABLE ORDERS_APPROVAL_DETAILS)
    APPROVALDET_ID INTEGER NOT NULL,
    ORDER_ID INTEGER NOT NULL, / * FK ORDERS_APPROVAL (ORDER_ID) * /.
    APPROVAL_DATE DATE NOT NULL, / * FK ORDERS_APPROVAL (APPROVAL_DATE) * /.
    KEY ("APPROVALDET_ID") PRIMARY CONSTRAINT 'PK_ORDERS_APPROVAL_DETAILS '.
    );

    The thing is that an order may OU cannot be approved. Thus, there could be no record of an order in ORDERS_APPROVAL.

    In addition, an order can have more than one approval.

    Here is the data that I use:

    /===========\
    | PRODUCTS |
    |===========|
    | PRODUCT_ID |
    |===========|
    | 1.
    |===========|
    | 2.
    |===========|
    | 3.
    \===========/

    /========================\
    | ORDERS |
    |========================|
    | ORDER_ID | PRODUCT_ID |
    |===========|============|
    | 27. 1.
    |===========|============|
    | 28. 2.
    |===========|============|
    | 29. 3.
    \===========|============/

    /=========================================\
    | ORDERS_APPROVAL |
    |=========================================|
    | ORDER_ID | APPROVAL_DATE | USER_ID.
    |===========|================|============|
    | 27. 01/10/2009 | 56.
    |===========|================|============|
    | 27. 04/10/2009 | 96.
    |===========|================|============|
    | 29. 03/10/2009 | 77.
    \===========|================|============/

    /=============================================\
    | ORDERS_APPROVAL_DETAILS |
    |=============================================|
    | APPROVALDET_ID | ORDER_ID | APPROVAL_DATE |
    |================|===========|================|
    | 1. 27. 01/10/2009 |
    |================|===========|================|
    | 2. 27. 04/10/2009 |
    |================|===========|================|
    | 3. 29. 03/10/2009 |
    \================|===========|================/
    I need to create a query that returns the data in all tables, but for orders with more than one certification,
    the query must return only the last record. It is also necessary return orders that have not yet been approved.

    My first query looked like this:

    SELECT
    *
    Of
    ORD IN ORDERS,
    PRODUCT PROD,
    ORDERS_APPROVAL ORDAPPROV,
    ORDERS_APPROVAL_DETAILS ORDAPPDET
    WHERE
    PROD. PRODUCT_ID = DSB. PRODUCT_ID
    AND ORDAPPROV. ORDER_ID (+) IS DSB. ORDER_ID
    AND ORDAPPDET. ORDER_ID (+) IS ORDAPPROV. ORDER_ID
    AND ORDAPPDET. DATA_APPROVAL_DATE (+) IS ORDAPPROV. APPROVAL_DATE

    PS: I use the Oracle 8 syntax because it's the server I'll use. In addition, I can't change the design of database.

    This query returns the data in table all. Because I used LEFT JOIN "(+)" to join the table orders_approval with the orders table, I am able to see even the orders with no approval.

    But this way, I see also two approvals for order 27 (with the data above, this order was approved twice). I need to reach my paintings in the last approval for each order is but should be a left join so I can see the orders with no approval.

    I tried this way:

    SELECT
    *
    Of
    ORD IN ORDERS,
    PRODUCT PROD,
    ORDERS_APPROVAL ORDAPPROV,
    ORDERS_APPROVAL_DETAILS ORDAPPDET
    WHERE
    PROD. PRODUCT_ID = DSB. PRODUCT_ID
    AND ORDAPPROV. ORDER_ID (+) IS DSB. ORDER_ID
    --Also added the line below
    AND ORDAPPROV. APPROVAL_DATE = (SELECT MAX (APPROVAL_DATE) OF ORDERS_APPROVAL WHERE THE ORDER_ID = ORDAPPROV. ORDER_ID)
    AND ORDAPPDET. ORDER_ID (+) IS ORDAPPROV. ORDER_ID
    AND ORDAPPDET. DATA_APPROVAL_DATE (+) IS ORDAPPROV. APPROVAL_DATE

    But in this way, as I am specifying I want only records with approval equal to date at the latest for each order, I do not see the order without approval.

    I tried again, with a left join like this:

    SELECT
    *
    Of
    ORD IN ORDERS,
    PRODUCT PROD,
    ORDERS_APPROVAL ORDAPPROV,
    ORDERS_APPROVAL_DETAILS ORDAPPDET
    WHERE
    PROD. PRODUCT_ID = DSB. PRODUCT_ID
    AND ORDAPPROV. ORDER_ID (+) IS DSB. ORDER_ID
    --Also added the line below
    AND ORDAPPROV. APPROVAL_DATE (+) = (SELECT MAX (APPROVAL_DATE) OF ORDERS_APPROVAL WHERE THE ORDER_ID = ORDAPPROV. ORDER_ID)
    AND ORDAPPDET. ORDER_ID (+) IS ORDAPPROV. ORDER_ID
    AND ORDAPPDET. DATA_APPROVAL_DATE (+) IS ORDAPPROV. APPROVAL_DATE

    But I get a syntax error. Oracle said that it is not possible to do a join with a subquery.

    If anyone knows how I can bring all this data?

    Thanks in advance.

    Published by: user9936895 on 05/10/2009 09:42: tried to fix the predetermined data schema.

    Hello

    Welcome to the forum!

    A scalar, such as subquery

    (SELECT MAX(APPROVAL_DATE) FROM ORDERS_APPROVAL WHERE ORDER_ID=ORDAPPROV.ORDER_ID)
    

    is allowed in a WHERE clause, but not as a condition of outer join, as you discovered.

    A workaround is the query expression so that it is not part of the outer join condition, which invlove in May (as in this case), adding another subquery. In the following query, the table of orders_approval in your original OF Division is replaced with online view, which uses the exact same scalar subquery in the WHERE clause. The online display will only contain one line per order_id (assuming that there is no link with for last approval_date).

    SELECT
         *
    FROM
         orders               ord,
         products          prod,
         (     -- Begin in-line view ORDAPPROV of last approval_date only
         SELECT     *       -- or list the columns needed in main query
         FROM     orders_approval         oa
         WHERE     approval_date = (
                        SELECT  MAX (approval_date)
                        FROM     orders_approval
                        WHERE     order_id     = oa.order_id
                        )
         )                ordapprov,
         orders_approval_details ordappdet
    WHERE
         prod.product_id               = ord.product_id
    AND     ordapprov.order_id (+)          = ord.order_id
    AND     ordappdet.order_id (+)          = ordapprov.order_id
    AND     ordappdet.approval_date (+)     = ordapprov.approval_date
    ;
    

    Thank you for including CREATE TBAL statements; It is very useful.
    You want to be even more useful in the future? Post INSERT statements for the sample data. That will make it easier for people to respond and easier for them to test their ideas.

  • OrSplit-Join and conditional transition

    For example, in a process, there are 4 activities. The user can enter some data in activity 1. If the condition is met (amount > 100), traffic will pass to activity 2. If the condition is not met (amount < = 100), the current will go to the activity 3. Activity 4 shows the modified data.

    In this scenario, it seems that OrSplit-Join and conditional transition can achieve the same goal.

    When the OrSplit-Join should be used?

    Yes - if you only have a single conditional transition, then using a transition of condtional coming out of activity 1 goes on activity 2 and an unconditional transition will activity 3 is the way to go.

    You would use the Split or when:

    1. you have several conditional transitions and
    2. you wish that all conditional transitions coming out of the separation or fire (elements of work to flow through them) that evaluate as true

    Know it's confusing, but it is not uncommon to have an Interactive or automatic activity with transitions conditional muliple coming out of it. If you do not use a Split or that the activity of origin for multiple conditional transitions, then work item instance will only pass the first conditional transition coming out of the activity that is evaluated as true (instead of all conditional transitions that evaluate as true with the Split or). If an activity like this has multiple transitions Board, to determine the order that the conditional transitions are evaluated, you click the origin of the activity of the mouse to the right and click on "order of conditional Transitions. Each activity should still at least an unconditional conversion to flow where none of the conditional transitions evaluate as true.

    Hope this helps,
    Dan

  • Outer join with a constant

    Outer join when made between the columns of the two tables is easy to understand and I'm familiar with it. But when it comes to the same join with a constant, my head starts spinning... you guys can help me with this? I would appreciate that show you with examples.
    Thanks a ton.

    Hello

    >
    Ok... I want to understand the output of the last sql statement given here.
    ...
    Select * from a, b
    where col_a (+) = col_b
    and col_a (+) = 1

    It shows put it is as follows
    col_a, col_b
    1 1
    2 NULL
    NULL NULL

    Joining means: 'display all rows in table b and the corresponding rows in the table one '.
    Since it is an outer join, it also means "view b lines even if there is no corresponding row in a.

    Thus, the output contains 3 lines, which correspond to the 3 lines in b.
    Only one of them (the one with col_b = 1) had a game in a.col_a, if the column is NULL in the other lines.

    With the sample data you posted, you will get the same results without condition

    and     col_a (+) = 1
    

    If you want to understand what makes this condition, use some examples of data where this condition would fail.
    For example, add this line to the table a:

    insert into a values (2);
    

    and run your original query (including the)

    and     col_a (+) = 1
    

    ). what output you get? You get the same exact results you did without the new line in a.

    In other words, the b line where col_b = 2 has still no matches in the table has.
    True, there is now a line of table where col_a = 2, but which does not constitute a game. A match is defined by two conditions:

    where   col_a (+) = col_b
    and     col_a (+) = 1
    

    in order to have a pair of lines which meets only the first condition

    where   col_a (+) = col_b
    

    is not enough.

  • Join external condition bug/feature when you use a RC?

    First I picked up on this bug/feature in an article in the blog of Armstrong ([http://learndiscoverer.blogspot.com/2008/05/using-case-to-solver-outer-join-issues.html])

    It seems that when you use an OR condition in Disco as well as 10 g, it ignores the join on the table conditions...

    I've included the two reports the SQL code to illustrate my point:

    Here is the SQL code generated when I agree with the point of view, you will notice the outer join (i.e. "(+)" ")
    SELECT O100288. UNIQUE_ID, O100291. UNIQUE_ID
    OF ODSTHING. TABLE1: O100288, ODSTHING. O100291 FROM TABLE2
    WHERE ((O100291. UNIQUE_ID = O100288. UNIQUE_ID (+)))
    ;

    Here's what happens if I simply add that a condition is not null. Notice the outer join on the 'IS NOT NULL' which allows to do nothing
    SELECT O100288. UNIQUE_ID, O100291. UNIQUE_ID
    OF ODSTHING. TABLE1: O100288, ODSTHING. O100291 FROM TABLE2
    WHERE ((O100291. UNIQUE_ID = O100288. UNIQUE_ID (+))) AND (O100288. UNIQUE_ID (+) IS NOT NULL)
    ;

    This is what happens when I have AND the same condition with himself, he remains outside joined
    SELECT O100288. UNIQUE_ID, O100291. UNIQUE_ID
    OF ODSTHING. TABLE1: O100288, ODSTHING. O100291 FROM TABLE2
    WHERE ((O100291. UNIQUE_ID = O100288. UNIQUE_ID (+))) AND (((O100288. UNIQUE_ID (+) IS NOT NULL AND O100288. UNIQUE_ID (+) IS NOT NULL)))
    ;+

    Here's what happens if I have the same CONDITION with himself. MAGIC! The outer join disappears!
    SELECT O100288. UNIQUE_ID, O100291. UNIQUE_ID
    OF ODSTHING. TABLE1: O100288, ODSTHING. O100291 FROM TABLE2
    WHERE ((O100291. UNIQUE_ID = O100288. UNIQUE_ID (+))) AND (((O100288. UNIQUE_ID IS NOT NULL OR O100288. UNIQUE_ID IS NOT NULL)))
    ;

    Is it the way it is supposed to work? If it is then I don't see any trace of it in the documentation ([http://download.oracle.com/docs/html/B13915_04/conditions.htm])

    Is it just a useful bug?

    What people think about its use?

    Published by: user4404031 on Sep 12, 2008 08:23

    Hello

    It is documented (http://download.oracle.com/docs/html/B13916_04/conditions.htm#sthref854) that the discoverer does not use outer joins with IN and OR conditions. But the implications of this are not stated. The documentation never tries to explain the underlying SQL.

    Rod West

  • Where to write the condition in the design of workflows with conditional step?


    Hello

    Again, I wish BP and workflow with contitional design stage.

    I had designed BP and workflow.

    As directed by the user for Udesigner guide, I had added trigger before the condition step.

    But I do not understand where to set the Condition to test?

    If I need to write the condition in triggering elemt itsel... How to proceed?

    for example, I want to write the condition as cost of Tota > = 100000, it must follow a path and if fails to another path.

    The conditions of triggers are specified in the workflow settings.  After you have created a new configuration, open it and click on the settings tab.  You will see a tree structure of the workflow with conditional branches.  Click a conditional branch to set the parameters for the trigger for this route condition.

  • Reactive layouts: publish multiple Sites with conditional Builds and which connect

    I hope that someone can provide a simple solution to publish problems I've had with adapted presentations when you try to publish several sites with conditional builds. Essentially, I want to be able to have an index page that links to one of the two variants of the published sites that I called 'General' and 'specific '. When I click on the 'general' link I want to not open the site which was published with a conditional for all these subjects compilation labeled as 'general' and when I click on the 'link' want it to open the site which was published using a conditional version for 'specific '.

    Here are the steps I took to create sites and can't seem to get to bind correctly:

    Table of contents, topic Creation and tagging content

    1. Creates a Table of contents.
    2. Added 2 topics in the Table of contents. The first topic, I called "general" and the second issue I called, 'specific '.
    3. I then click with the right button on the "general" and selected subject Tag to build conditional apply. From there, I've created a new tag called "General".
    4. I repeated this process to create the specific tag, but do a right-click on the 'specific' theme and the creation of a new tag called "specific".

    Layouts reactive and edited the sites based on the conditional tags

    1. Created sensitive presentation using the standard layout and content generated without any conditional builds.
    2. Duplicated sensitive put in page and gave him the content of 'general' then it is generated using the conditional, "General" version If the finished publication published content has shown that the 'general' subject, as expected.
    3. I then repeated the same process for the specific content and content using the version parole, generated 'specific '. When over content published showed that the subject marked as 'specific' as expected.

    Added an Index page to the table of contents

    1. Created a new topic to serve as the launch page.
    2. Added a 'general' hyperlink called for the launch of the general "theme found in the general publishes from the resource manager.
    3. Added a hyperlink called 'specific' to the launch of the general "theme found in the specific issues from the resource manager.
    4. I then republish the sensitive standard layout site.

    From this point, it gets stuck and won't open properly published Web sites. I don't know why it won't launch hyperlinks correctly. Is there something I'm missing? Let me know if you do not want to see my files. I will be gladly their.

    OK, thanks a lot for the capture screen. They help more than you realize.

    So here's one of the biggest mistakes I think that you have done so far. You use the resource manager to link to published results. If it is technically possible to do, I'm pretty sure Adobe never planned for it to be used this way.

    It may help to think in terms of creation of food products. I have long considered as RoboHelp to be very much like working in my kitchen. All consumables (heading text in the headings, images, HTML pages, etc.) are just as raw ingredients. (Eggs, milk, flour, etc.). The places of storage (hard drive) it's like the pantry and the fridge. And RoboHelp provides facilities to easily combine ingredients to create the different recipes.

    This next bit will be somewhat exaggerated, but bear with me. Maybe you have one or more neighbors and all you want to share some common "ingredients". If you set the things where each of you have access to a wine cellar and a shared refrigerator. Maybe you do a Dutch sauce killer. You create it and place in the refrigerator, then your other participants have access through the common "fridge". This is exactly what the resource manager is intended to help.

    Now assume that you create something like cookies chocolate chip and you keep in the refrigerator. Well, that's fine, but you don't want to use cookies to chocolate chip already baked in a recipe that might call for cookie dough. But that's what happens when you take an exit and place in a place intended for raw ingredients. And you will see the strange behavior. Prepare for these cookies chemically changes them so that cookies already are significantly different from the dough used to create them. Similarly, you don't want to take one or more output files and reuse in a project source.

    So in your case, you run an index file and that fires events to produce the output. All should be well. But when you click on the links to open topics, topics are intended to show up more in the right panel. Think of the picture of how works of image on a TV. The moment that link you to something intended to fill the screen, he is forced into this smaller area on the right. If you end up with what you see in the last picture.

    I suggest the following steps.

    First, REMOVE your resource manager exits.

    REMOVE all links that can point here.

    Output records where people will consume copy your projects. (The web server)

    Then figure either the parent (.. /.. / somefolder/somefile.htm) path to other systems or the absolute path (http://www.whatever.com) and to link the projects in this way.

    Sorry, but without seeing the installation of first hand, it is difficult to say what should be these paths.

    I hope this was helpful... Rick

  • How to avoid duplicates on a column with condition

    Hi all

    I need some advice here. At work, we have an Oracle APEX application that allow the user to add new records with the decision of the increment automatic number based on the year and the group name.

    Said that if they add the first record, group name AA, for 2012, they get the decision number AA 1 2013 as their record casein displayed page of the report.

    The second record of AA in 2013 will be AA 2 2013.

    If we add about 20 records, it will be AA 20 2013.

    The first record for 2014 will be AA 1 2014.

    However, recently, we get a claim of the user on two files of the same name of group have the same number of the decision.

    When I looked in the history table and find that the time gap between 2 record is about 0.1 seconds.

    In addition, we have the correspondence table which allows the user admin update the sequence number start with the restraint that it must be greater than the maximum number of the current name of the current year.

    This boot sequence number and the name of the group is stored together in a table.

    And in some other case, the user can add a decision duplicate for related record number. (this is a new feature)

    The current logic of the procedure to add the new record on the application are

    _Get max record table with selected group name (decision_number) and the current year.

    _INSERT in the folder table the new record came with the decision to number + 1

    _ update sequence number of the number of the decision just added.

    So instead of utitlising the process of editing the built-in automatic table of the APEX, I write a procedure that combine all three processes.

    I have run some loop for continually perform this procedure, and it seems that it can generate autotically new decision unique number with time about 0.1 second difference.

    However, when I increase the number of entry to 200 and let two users run 100 each.

    If the time gap is about 0.01 second, double decision numbers are displayed.

    What can I do to prevent duplicate?

    I can't just apply a unique constraint here for three columns with condition because it can be duplicated in some special conditions. I don't know much about the use of lock and its impact.

    This is the content of my procedure

    create or replace

    PROCEDURE add_new_case)

    -ID just use the trigger

    p_case_title IN varchar2,

    p_year IN varchar2,

    p_group_name IN VARCHAR2,

    -decisionnumber here

    p_case_file_number IN VARCHAR2,

    -active

    p_user in VARCHAR2

    )

    AS

    NUMBER default_value;

    caseCount NUMBER;

    seqNumber NUMBER;

    previousDecisionNumber NUMBER;

    BEGIN

    -execution immediate q '[alter session set nls_date_format = "dd/mm/yyyy"]';

    SELECT count (*)

    IN caseCount

    OF CASE_RECORD

    WHERE GROUP_ABBR = p_group_name

    AND to_number (to_char (create_date, "yyyy")) = to_number (to_char (date_utils.get_current_date, "yyyy"));

    SELECT max (decision_number)

    IN previousDecisionNumber

    OF CASE_RECORD

    WHERE GROUP_ABBR = p_group_name

    AND to_number (to_char (create_date, "yyyy")) = to_number (to_char (date_utils.get_current_date, "yyyy"));

    IF p_group_name IS NULL

    THEN seqNumber: = 0;

    ON THE OTHER

    SELECT Seq_number INTO seqNumber FROM GROUP_LOOKUP WHERE ABBREVIATION = p_group_name;

    END IF;

    IF caseCount > 0 THEN

    default_value: largest = (seqNumber, previousdecisionnumber) + 1;

    ON THE OTHER

    default_value: = 1;

    END IF;

    INSERT INTO CASE_RECORD (case_title, decision_year, GROUP_ABBR, decision_number, case_file_number, active_yn, created_by, create_date)

    VALUES (p_case_title, p_year, p_group_name, default_value, p_case_file_number, 'Y', p_user, sysdate);

    -Need to update the sequence here also

    UPDATE GROUP_LOOKUP

    SET SEQ_NUMBER = default_value

    WHERE the ABBREVIATION = p_group_name;

    COMMIT;

    EXCEPTION

    WHILE OTHERS THEN

    Logger.Error (p_message_text = > SQLERRM)

    , p_message_code = > SQLCODE

    , p_stack_trace = > dbms_utility.format_error_backtrace

    );

    LIFT;

    END;

    Many thanks in advance,

    Ann

    It's easier to solve for the case, while p_group_name is not null. In this case, you update a GROUP_LOOKUP line, so that you can select to update this line at the beginning, to prevent cases of two for the same group added at the same time. To do this, change the selection of GROUP_LOOKUP to:

    SELECT Seq_number INTO seqNumber FROM GROUP_LOOKUP WHERE ABBREVIATION = p_group_name for an updated VERSION OF the SEQ_NUMBER;

    and move this to be the first thing that did the procedure - before it has CASE_RECORD lines.

    In the case when p_group_name is set to null, you have some object to be locked. I think the best you can do is to lock the entire table GROUP_LOOKUP:

    the table lock in exclusive mode GROUP_LOOKUP wait 100;

    The '100 expectation' means that he will wait until 100 seconds before giving up and trigger an error. in practice, that is expected to only wait a moment.

    Exclusive mode allows others to read, but not to update the table.

    UPDATES and the LOCK of the TABLE will be updates of other sessions wait for this transaction to validate. Queries from other sessions are not affected.

    The locks are released when you commit or roll back.

  • Calculation of the sum with condition

    Hello
    I start with BI publisher, and I want to take a NAP with condition.

    My report output XLS, I haves columns, named ACCOUNT_TYPE and TREE_NODE and MOENTARY_AMOUNT_03 that are my PS query fields

    I want to sum only when a condition is true.

    <? xdofx:If ACCOUNT_TYPE = 'R' AND TREE_NOD = 'TEST' then
    Sum (MONETARY_AMOUNT_03)
    end if? >

    This does not,
    could you help me?

    thaks!

    You should do this:

  • Conversion with conditional text in table

    I take the first steps in converting unstructured structure image. A single document is fairly clean except for one question: my structure breaks around conditional text in tables. (The tables have a their own, but the conditional text questions f3ew seems to make the problem worse) I don't know how it should be treated. Structure tags are displayed in the view below.

    condTable.png

    And here's the view of the Structure:

    TblStruct.png

    Is this something that can be implemented with a qualifier, and if so, how? In addition, in the mapping of conversion table, is there any dependency order, as well, on which appears the conditional text element?

    Martine

    As Michael says, a conversion table does not convert the structure conditions. In a structured document, we apply, removes, shows and hides the conditions in the same way as is done on an informal document. The only difference is that you can select entire items and treat them with conditions.

    In a sense, FrameMaker treats conditions like processing instructions. If you need to export a document structured in XML and view it with a browser or a text editor, you can find instructions for treatment that punctuate the beaches of conditional text.

    So, once again as Michael, the text says conditional is not breaking your structure. It is superimposed on the structure.

    Van

  • Encoded text with conditional compilation still tags appear in TOC even if the label is "excluded".

    I use TCS2, Windows XP.

    After you have created a book in FM and coding with conditional compilation tags, I imported HR. When I generate, I output the value tag:

    NOT NoOUtput AND NOT internal AND NOT printed - I want to generate my external, webhelp online help. And it works like a charm. Except that:

    • In the table of contents, I can still see the stars for the things that are "internal" - when I click on it, they're not going anywhere... but I don't want them to appear in the table of contents!

    It seems to exclude from the index and search. I don't know that miss me just a step, or something...


    Browsing the forums I found this... http://forums.Adobe.com/message/751847#751847 -I don't know if it is still applicable, because it seems to allude to RH6 (which is a bit far from the 8 HR that I use)...

    Any help is appreciated!

    TIA,

    Adriana

    @Daggins - that's what I was talking about! I knew it was there somewhere ;>)

    @adrianaharper - if it doesn't work properly in PDF files that you create on the FM band; what the TOC looks like FM? You're just pulling in HR when you import/link right? If the faulty internal topics are appearing in the table of contents of the FM, then expect them to appear in HR too. You must kill them, FM or kill them in HR.

Maybe you are looking for

  • Can I configure find my mac if it executes window 10

    My MacBook and my brother "s retina pro 15 inch end 2013 I have this drive problem hard C02MD7T8FD56 is because change us it window?" Both our MacBook with the same problem. always have a message telling us this problem and save. And can we define Ma

  • Can I use PC400 RAM with the Tecra A4 (Pentrium 750)

    Can I use PC400 RAM with the Tecra A4 (Pentrium 750), currently PC333 is mounted. Thank you

  • Compaq v3000: need to press the power on button repeatedly

    Hello My compaq must support the switch several times, and lengthwise, press. Sometimes, but sometimes not. im not using batery because it totally dead, so im used directly to adapter charger.please help to understand

  • 5510d print does not correctly

    I have the HP Photosmart 5510d printer prints well, but recently it has been ignored and print only all the other lines. Sometimes, we get the upper part of a line or down. But he seems to ignore all other lines printing there are horizontal white li

  • Renovator of registry: Registry scan for errors and conflicts

    Can someone tell me if I have to buy the above (renovator registry)?  I did a free scan and it came 550 errors at the back with system, related user 78 errors and error of third 1.  I had trouble with "not responding".  I tried the system restore and