Helps the simple query XPath in OSB

Hello!

I try to extract a part of XML with Oracle Service Bus using XPath message, but I can't find the way to make

For testing purposes, I initialize a variable 'test' with an action of assignment with the following content:

< Country > < country > < COUNTRY > ARE < / COUNTRIES > < S EU_COUNTRY > < / EU_COUNTRY > < Spain NUMBER > < / NUMBER > < ID > 1 < /ID > < country > < / country >

Can I use following code to access the COUNTRY element but I get blank result:

$test, Countries, Country, COUNTRY / text)

I'm rather new to XPath, but I think that this expression should work.

Could someone give me some advice?

Thank you.

Published by: user542345 on June 15, 2011 09:06

Use

$test / country/COUNTRY/text)

Tags: Fusion Middleware

Similar Questions

  • Helps the GREP query

    Hello

    I'm struggling with a Grep style and need a little help.

    I write a manual containing many examples of code and you want to apply the color to the text inside "double quotes".

    Grep query ("? < =------="). + ? ("? =") is almost what I need but if it finds "" the query seems to stop to find anything afterwards.

    The------= in the look ahead is because the first "always follows a =

    For example:

    "" < page PREVIEWTEXT = "1" name ="previewtext1" column = "1" rowspan ="6"invite"" width = "250" height = "290" / > "

    After the prompt empty"", the search query is no longer "250" or "290".

    Anyone has any idea why?

    Thank you.

    And, in the case where you think that this is already a total mystery:

    I wondered what would happen with quotes. After all, the GREP search was to treat each of them even. Well - it does not work. The "\x{22" code} forces a straight quotation mark, so it will never match those curly. Fortunately, you can use a group for inclusion in the postanalyse:

    (? == [quote straight + curly quote open + curly close quote])

    (written in full so you can see what I've done.) But I accidentally stumbled upon this:

    (?<==["])[^"]+?(?=")
    

    ... it works for all possible combinations of straight open, curly and curly close quotes... Remove the [] in the postanalyse and it no longer works. Add them and it works again.

  • Problem with the simple query.

    Hi all

    I am facing problem with the query below

    Select A.COL1, A.COL2

    B.COL1, B.COL2

    FROM TABLE1 A

    TABLE 1 B

    WHERE A.header = '123'

    AND B.header = '123'

    AND nvl (A.COL6, 'ABC') = 'ABC '.

    AND NVL (B.COL6, 'DEF') = 'DEF '.

    Basically, my requiremenyt is: I have only one table, TABLE1 here, which has a line two lines (for the same header) as "ABC" and another is "DEF". Table 1 has two columns (col1, col2) that should be displayed for both lines.

    When the header has two records in table1 top query works. and but if I do not have a record for any header example there are a record for "abc" in col6 only. so my query above does not work because there is no record for 'DEF' in col6. But I want to again request to fecth the output (for b.col1 and b.col2 should have null values)

    could you pls suggest me how to get the 4 columns.

    Thanks in advance

    Kind regards

    UVA.

    Try to place the status of outer join on column: analytical_criterion_code as

    and nvl (AUDIT.analytical_criterion_code, 'AUDIT2') = 'verification2. '

    .

    .

    and nvl (TRANS.analytical_criterion_code, 'TRANS2') = 'TRANS2.

    In the sub query based on the opinions that you have given in post # 1, although there is no value "DEF * ' for col6 due to the condition of outer join on b.col6 (+) line is extracted with b.col [1,2,3] as NULL values. Try to remove the (+) sign b.col6 and test.

    with t as)

    Select 111 col1, col2 'aaa', 'ABC' col6 123 header of all the double union

    Select 222 'bbb', 'DEF' col6, 123 double header

    )

    q as (select 123 double header)

    Select A.COL1, A.COL2, A.COL6

    B.COL1, B.COL2, b.COL6

    q.header

    T a

    t b

    q

    where a.col6 (+) = 'ABC '.

    and b.col6 (+) = "DEF."

    and q.header = a.header (+)

    and q.header = b.header (+)

  • Better way to write the simple query?

    I'm trying to get the date of 'busy' max 'mansion '.

    It is an example, I imagined, since I can't post our actual data. The following query works, but is their path easier.
    CREATE TABLE TEST_TABLE (  
    LOAN_NUMBER                 VARCHAR2(15 Byte),
    UN_ID                       NUMBER,
    CHANGE_DATE                 DATE,
    PROP_TYPE                   VARCHAR2(25 Byte),
    OCCSTAT                     VARCHAR2(25 Byte)
    ); 
    COMMIT;
    
    
    INSERT INTO TEST_TABLE VALUES (123456,  1,'01-JAN-09','Tent','Occupied');
    INSERT INTO TEST_TABLE VALUES (123456,  2,'01-FEB-09','Shack','Occupied');
    INSERT INTO TEST_TABLE VALUES (123456,  3,'01-JUN-08','Single Family','Occupied');
    INSERT INTO TEST_TABLE VALUES (123456,  4,'01-OCT-08','Single Family Plus','Occupied');
    INSERT INTO TEST_TABLE VALUES (123456,  5,'01-DEC-08','Mansion','Occupied');
    INSERT INTO TEST_TABLE VALUES (123456,  6,'05-JAN-09','Mansion','Unoccupied');
    COMMIT;
    Reason, I take the ID's for the second join because I know that the ID max = max.
    select     
    i2.UN_ID,
    i2.CHANGE_DATE,
    i2.PROP_TYPE,
    i2.OCCSTAT
    from 
    (
        select 
            distinct(LOAN_NUMBER) AS "LOAN_ID", 
            max(UN_ID) AS "ID_MAX"
        from(
        select 
            LOAN_NUMBER,
            UN_ID
      from
            TEST_TABLE
        where OCCSTAT = 'Occupied'
        group by LOAN_NUMBER, UN_ID
        ) 
        group by LOAN_NUMBER
    )i
    left join TEST_TABLE i2 on i.ID_MAX = i2.UN_ID
    easier way without the second join?

    Thanks in advance.

    R

    Try this query, it should be equivalent to your:

    select UN_ID, CHANGE_DATE, PROP_TYPE, OCCSTAT
    from (
        select LOAN_NUMBER, UN_ID, CHANGE_DATE, PROP_TYPE, OCCSTAT, rank() over(partition by LOAN_NUMBER order by un_id desc) rn
        from test_table
         where OCCSTAT = 'Occupied'
    )
    where rn=1
    

    Max

  • The simple query help

    Hello! I have a simple request: NO of ROAD_TYPE = "RAMP" or NO FUNC_CODE = 7 FUNC_CODE or NOT = 0 or NOT FUNC_CODE = NULL, each element of the query by itself without problem, tracks, but linked together in this way with the GOLD, one of them opts on. What I am doing wrong?

    It's the difference between OR and and.

    Think about this simple example

    Where Column != A or Column != B.
    

    Excluding the Null handling, it's true. Because for the first condition, it will be true for all but one, and the second condition will be true for A. You need an AND, not a RC.

    For simplicity and readability without doubt, use an In operator, and group together them. It would therefore be:

    Where Road_Type != 'RAMP' and Func_Code Not In('0, 7) and Func_Code is not Null
    
  • How to make the simple query for this scenario... ?

    Hello:

    Dummy table provided for simplicity.

    It's my database table (Table_A)

    Date1 | Plane1 | Category | Duration | Fees
    01/01/2011 | A | Gold | 5. 2
    01/01/2011 | C | Money | 4. 11
    01/01/2011 | B | Gold | 6. 2
    01/01/2011 | D | Gold | 2. 4
    01/01/2011 | B | Gold | 3. 5
    01/01/2011 | A | Money | 4. 8
    01/01/2011 | B | Gold | 1. 3

    I need to write a query to get the result below:

    Date1 | Plane1 | Sum_Duration | Sum_Charge | Sum_Gold_Duration | Sum_Gold_Charge | Sum_Silver_Duration | Sum_Silver_Charge
    01/01/2011 | A | 9. 10. 5. 2. 4. 8
    01/01/2011 | B | 10. 10. 10. 10. 0 | 0
    01/01/2011 | C | 4. 11. 0 | 0 | 4. 11
    01/01/2011 | D | 2. 4. 2. 4. 0 | 0

    This query will provide the 1st four columns:

    SELECT Date1,
    base1,
    Sum (Duration) Sum_Duration,
    Sum (load) Sum_Charge
    FROM TABLE_A
    GROUP BY date1, rarateplan

    But I need to know how to get the rest of the columns (i.e. Summary according to categories; from 5 to 8 columns)? Is this can be done in a single query without writing subqueries?

    Please let me know, (with code), the best way.

    Thank you-
    Tanvir

    Use like this:

    SELECT Date1,
    base1,
    Sum (Duration) Sum_Duration,
    Sum (load) Sum_Charge,
    SUM (decode(Category,'Gold',duration,0)) Sum_Gold_Duration,
    SUM (decode(Category,'Gold',charge,0)) Sum_Gold_charge,
    SUM (decode(Category,'Silver',duration,0)) Sum_Silver_Duration,
    SUM (decode(Category,'Silver',charge,0)) Sum_Silver_charge
    FROM TABLE_A
    GROUP BY date1, rarateplan

    Published by: SANT007 on August 11, 2011 11:04

  • Decode the simple query

    Decode the query
    Simplified version of the query below.

    SELECT
    d.REG,
    d.DP,
    c.CHANNEL
    Of
    CUSTOMER c,.
    ACCOUNT d
    WHERE c.ID = d.ID
    D.REG GROUP, d.DP, c.CHANNEL


    Channel field in the Customer Table contains several store ID (1 Store, tray 2, tray 3, store 4 etc.) - basically, I want to use decode on the channel field so that instead of all the store ID being issued what is fate of the channel are
    Store 1 = "big".
    Store 2 = 'average '.
    Store 3 = "Small".
    All other stores = 'other '.

    Where the decode to insert statement and what should be the format - attempt below
    DECODE (c.CHANNEL, "keep 1, 'Big', ' Store 2', 'Medium', 'Store' 3', small ', 'Other' ') of

    Hello

    This should be what you are looking for:

    SELECT   d.REG,
             d.DP,
             DECODE (c.CHANNEL, 'Store 1','Large', 'Store 2','Medium', 'Store 3','Small', 'Other') Channel
    FROM     CUSTOMER c,
             ACCOUNT d
    WHERE    c.ID = d.ID
    GROUP BY d.REG,
             d.DP,
             c.CHANNEL
    

    City where to move them in decoding...

  • helps the advanced query

    Hi all

    Please check this logic:

    Select * from table v
    If ([[Conf]] = 'Device') {}
    v.xindex > 100 and v.xindex < 499
    } ElseIf ([[Conf]] = "notdevice") {}
    v.xindex < 100 and v.xindex > 499
    } ElseIf ([[Conf]] = 'all') {}
    v.xindex > 1
    } ElseIf ([[Conf]] = ") {}
    v.xindex > 1
    }

    I want that this put in a sql query, am not able to understand. Help, please.

    Published by: user12060144 on January 22, 2010 07:37

    Published by: user12060144 on January 22, 2010 07:38

    Hello

    A way

    select * from table v
    where (conf ='Device' and v.xindex>100 and v.xindex<499)
    or (conf ='notdevice' and v.xindex<100 and v.xindex>499)
    or (conf = 'all' and v.xindex > 1)
    or (conf is null and v.xindex >1)
    

    Concerning
    Anurag

  • Helps the join query Multiple

    I have three paintings, photos, reviews and prices. Their structures (for short) are as follows:

    photos
    ---------------------
    photoID
    photoTitle

    price
    ---------------------
    priceID
    priceValue
    photoID_fk

    Comments
    ----------------------
    IDCommentaire
    commentText
    photoID_fk

    What I need to do, is to be able to display a list of photos with their price and their comments, autocorrelation, as follows:

    Photo 1
    Price 1
    Price 2
    Comment 1
    Comment 2

    Photo 2
    Price 1
    Price 2

    Photo 3
    Price 1
    Price 2
    Comment 1

    Note that while each photo will always have the same number of values of 'price', some might have comments and some could not.

    I will list the code I have so far, but let me briefly explain what is happening. With the installation I currently, photos in the right order with their values at good price and display comments (if any). Unfortunately, on WITH those comments, the price list of duplicates to match the number of comments returned. So, if Photo 1 has two comments, it will return '1 2 1 2 price price price' for the release of the Awards section.

    I've been pulling my hair over this, and any help that anyone can provide would be greatly appreciated and will potentially save my life.


    Dan-

    Thanks, as always, for your response. Your solution solved the problem!

    As for my database needs, comments are only pictures.

    Basically I have a table that contains all the information about the photos in a gallery. I have another table that holds all the comments that users make on photos. Finally, each photo has 8 sizes (all the same) for sale. So, I don't think that the MTM relationship is there.

    Initially, I was just going to put Size1, Size2, etc. in the pictures table. However, my client wants to be able to add and/or remove sizes in the future. Therefore, I thought it would be easier if each photo has been given 'x' number of entries in the price table, where 'x' is the number of categories of total price (currently 8).

    I don't want to monopolize more time, but if you have a second, I'd be interested to hear an expanded explanation of the restructuring that you proposed at the end of your last response. If you have no time, of course I understand.

    Thanks for your help on this 1 million!

  • Help the select query

    Hello.. all the
    SELECT 'X' FROM DOH
    WHERE  DOH_NO IN (2,4);
    
    '
    -
    X
    X
       Works fine..
    but when I try something like this;
    var REF_NO varchar2(10);
    exec :REF_NO := '2,4';
    
    SELECT 'X' FROM DOH
    WHERE  DOH_NO IN (:REF_NO);
    
    SQL>  var REF_NO varchar2(10);
    SQL> exec :REF_NO := '2,4';
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    SQL> SELECT 'X' FROM DOH
      2  WHERE  DOH_NO IN (:REF_NO);
    WHERE  DOH_NO IN (:REF_NO)
                             *
    ERROR at line 2:
    ORA-01722: invalid number
    Returns the error, how to achieve the result of the later as the first.
    TY

    You must divide the string:

    SQL> create table doh as select level col from dual connect by level <= 6;
    
    Table created.
    
    SQL> select * from doh;
    
           COL
    ----------
             1
             2
             3
             4
             5
             6
    
    6 rows selected.
    
    SQL> var ref_no varchar2(10);
    SQL> exec :ref_no := '2,4';
    
    PL/SQL procedure successfully completed.
    
    SQL> select *
      2  from   doh
      3  where  col in (select column_value
      4                 from   table(cast(multiset(select substr( str
      5                                                            , instr (str, ',', 1, level  ) + 1
      6                                                            , instr (str, ',', 1, level+1) - instr (str, ',', 1, level) -1
      7                                                            )
      8                                            from ( select ','||:ref_no||',' str
      9                                                   from   dual
     10                                                 )
     11                                            connect by level <= length(str)-length(replace(str,',',''))-1
     12                                           )
     13                               as sys.odcinumberlist
     14                             ))
     15                  );
    
           COL
    ----------
             2
             4
    

    You can find many examples on this forum, I suggest you do a search to find several approaches...

    Edit

    A bit shorter, using regexp ;)

    SQL> exec :ref_no := '2, 3, 4';
    
    PL/SQL procedure successfully completed.
    
    SQL> select *
      2  from   doh
      3  where  col in ( select regexp_substr (str, '[^,]+', 1, level)
      4                  from ( select :ref_no str
      5                         from dual
      6                       )
      7                  connect by level <= length(replace (str, ',', null))
      8                );
    
           COL
    ----------
             2
             3
             4
    

    Published by: hoek on December 14, 2009 12:02

  • Functions in the inner query

    Hello!
    I challenged the following problem. Here's the simple query:

    SELECT id, id, id from
    (select 1, sys_guid () as double id)

    as you can see there is a sys_guid() function in the inner query. So, why do we use these
    constructions? Right - to calculate the value of a function once and use it again so much
    time, that we need. So I guess to get three identical fields. But, as it turns out, it is not
    always too! I mean, on one version of Oracle database this query return the same three
    fields, but on another - three different! Based on what the sys_guid() function is a kind of
    random function, I can assume that the function is run three times in the second case
    instead of one (as it should)! So why is it? Is - this bug from version, or an option in
    control file that influence the optimizer?

    PS: I found a workaround on this basis, where this query produces abnormal results, we can use
    Internal ORDER BY clause in the query:

    SELECT id, id, id from
    (select 1, sys_guid () as command id double by 1)

    The oracle optimizer is the fusion view inline with the outer select block. He replaced effectively by:

    select sys_guid(), sys_guid(), sys_guid()
    from dual
    

    You can avoid this as follows:

    select /*+ no_merge(x) */
             id,id,id from
    (select 1,sys_guid() as id from dual) x
    

    Published by: Toon Koppelaars on July 9, 2009 09:22

  • Choice of the message can be changed in the table of search results Simple query region?

    Hi friends,

    I have a Simple search query region in 11i.

    I created the SearchVO and bound to the query Table Region.

    I have two attributes MessageStyleText and a MessageChoice attribute in the simple search criteria.

    Search results show very well for all attributes.

    But when I search with the criteria of MessageChoice, in the table of results, this attribute MessageChoice is indicated as editable, display the drop-down list.

    I did this attribute ReadOnly = True but then it becomes readonly in search also. So this dosent help.

    I need to this drop-down list of MessageChoice be modifiable in the search criteria, but read in the table of results.

    Please help me with the resolution. Its kinda urgent.

    Would appreciate any help.

    Thank you

    Rajesh

    He solved.

    Added programmatically in code.

    Kept the attribute as MessageChoice in the query Table Region.

    Added to the controller

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processRequest (pageContext, webBean);

    OAM OAApplicationModule = pageContext.getRootApplicationModule ();

    OAMessageChoiceBean = processFlagMessageChoice

    (OAMessageChoiceBean) webBean.findChildRecursive ("AttributeId");

    processFlagMessageChoice.setReadOnly (true);

    }

  • With the help of Simple passage

    The software is called Pass Simple, I have to be even more simple, because for me, it's a mystery. I've had drives of fingerprints on other laptops, they were intuitive, they scanned all fingers and offered to save connection details on all the sites that I had to connect. This HP one scanned only one finger, and that's the last I saw of him. What happens if I cut that and only registered finger? Why it doesn't pop up when I get log-ins? I looked in help for Simple passage, which did not help, y at - there a tutorial somewhere?

    Thanks for the Enlightenment,

    David

    Hi David,

    First

    Welcome to the HP Forum.

    ============================================================================

    You can add more traces of fingers.

    How you do that, and where the program depends somewhat on the version of the program that you are using.

    Which is full of computer product name and all of the operating system ?

    The fact that HP SimplePass took just one finger and then abandoned

    and SimplePass is not popping up.

    and SimplePass works as expected...

    makes me think of:

    you're using a newer computer,

    you run Windows OS 8.x,

    you are running the latest version of HP SimplePass series 8

    and you are not using Internet Explorer 11

    If you use indeed the new version of the HP SimplePass and you use not IE11, which explains why you get no offers to save site - series 8.x connections like Internet Explorer and throws his small coded head elsewhere to other browsers.  It's sad.  HP do not for us, incidentally.

    Publishes June 12, 2014

    Chrome Store now offers an Extension for series 8 HP SimplePass.

    Reminder:

    Series 8 HP SimplePass exports to another encrypted filetype (.opi) that only the fact the series 6 (.tsd).  The two are not compatible with each other.

    The main executable:

    Series 8.x HPSmplPass.exe

    Series 6.x SimplePass.exe

    If you pop your Windows key and perform a search, you will find the main HP SimplePass program.

    Once you open it, even on the 8 series, I think that there is a simple link in Help file.  I've linked an older version 8 of series help file in case you can not find one on your system: Softex_SimplePass_V8.0.0.51_OPhelp.chm

    Series 6.x provides a? Help file in the corner of the SimplePass window that will pop a URL.

    ============================================================================

    I tested the 8 series long enough to know it works - and then trashed it because I'm a fan of Firefox.  I'm sure you can add more traces of fingers by opening the program and opening of the wizard or simply drag your finger or something just as intuitive.

    As a point of fact, ago lately a newer version available for series 8 (March 2014) - you can check it out if you wish.  In the world of more recent SimplePass was generally better than the previous version, regardless of the series.

    Adding fingerprinting is all as simple in series 6 - we open the program and goes on the addition of fingerprints.  The help file can help the process, of course, click on the? on the screen of the SimplePass program.

    If you use the 8 series, away series 6 (or "round vice versa) unless you plan to try to pass.  The two programs are NOT compatible on the system at the same time.  They are not written by the same people.

    Guide / Collection of Dragon:

    Simple Instructions for upgrade HP SimplePass

    Click on the Thumbs - Up Kudos to show that you appreciate the help and time of our Experts.

    Click on accept as Solution when the answer is a good solution or workaround!

    Although I strive to reflect best practices of HP, I do not work for HP.

  • Help with sql query / a subquery to perform the COUNT

    Hello everyone,

    Co-worker colleague asked me to post a request here in hopes of getting more support.  Here's the question:

    There are 3 tables associated with this request.  A table of the application, which displays a number of application open for a particular request, an audit table that shows you all employees who worked on this application and one employee who shows you the details of the employee table.  My colleague is trying to understand what, how to see only applications that have been published by a wizard, but not a Manager.  There are a few applications that worked on both, but he won't see this request in its results.

    Here are the tables

    EMP

    ID FULL_NAME
    1234John Doe
    5467Jane Doe
    2345Clark Kent
    5432June Cleaver

    Unfortunately, this table does not have a title column (which was created provider, so we cannot change the internal structure).  My colleague knows who is the Assistant and the Director, then in this case, the first two of the id:

    1234 and 5467 are managers and the other 2 are assistants

    T_APPLICATION

    app_id app_number date_opened app_type
    901854778JANUARY 10, 2014NETWORK
    901954779JANUARY 11, 2014DATABASE
    901055000MARCH 12, 2014MATERIAL

    T_APP_AUDIT

    APP_ID PROCESSED_BY
    90181234
    90182345
    90185432
    90192345
    90195432
    90105432

    So, here is the actual query, I was given: it is actually to check the number of times that each application has been published per person:

    Select a.app_id, c.full_name, count (*) that controls

    t_application a, t_app_audit b, c of the emp

    where a.app_id = b.app_id and b.processed_by = c.id and

    a.app_type in ('NETWORK', "DATABASE")

    and b.processed not in ('1234, ' 5467')

    GROUP OF A.APP_ID, c.full_name;

    IF I won't see 9018 in my results, since at one time it was edited by a Manager (1234).  Unfortunately, this request does not eliminate the app_id 9018, it eliminates only the name of handlers appear in the query.  I hope I've explained this properly, and any help to point us in the right direction is welcomed.  Thanks in advance.

    Select

    a.app_id

    c.full_name

    , count (*) as the controls

    of t_application one

    t_app_audit b

    c of the emp

    where a.app_id = b.app_id

    and b.processed_by = c.id

    and a.app_type in ('NETWORK', "DATABASE")

    and b.app_id by (not in

    Select app_id

    of t_app_audit

    where processed_by in ('1234, ' 5467')

    )

    GROUP OF A.APP_ID, c.full_name;

  • Helps the query using LESS

    Hello Experts

    I can't in select the record_sequence in the output. Please see the part of the desired effect.
    Please help solve this problem.

    Is the version of Oracle, I'm working on that

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    Thank you

    RB

    TABLE1 AS
    (
    SELECT '28' EXAM_CD1, EXAM_CD2 '29', '10' EXAM_CD3, 111' CAND_ID FROM DUAL UNION ALL
    SELECT '21' EXAM_CD1, EXAM_CD2 '39', '20' EXAM_CD3, 112' CAND_ID FROM DUAL UNION ALL
    SELECT '22' EXAM_CD1, EXAM_CD2 '49', '30' EXAM_CD3, 113' CAND_ID FROM DUAL UNION ALL
    SELECT 'EXAM_CD1 23', '59' EXAM_CD2, EXAM_CD3 ' 40', 114' CAND_ID FROM DUAL UNION ALL
    SELECT '24' EXAM_CD1, EXAM_CD2 '69', '50' EXAM_CD3, 115' DOUBLE CAND_ID)
    AS TABLE2
    (
    SELECT EXAM_CD '28', '111' CANDID, 1 RECORD_SEQ OF DOUBLE UNION ALL
    SELECT '30' EXAM_CD, '113' CANDID, 2 RECORD_SEQ FROM DUAL UNION ALL
    SELECT EXAM_CD '94', '111' CANDID, 3 RECORD_SEQ OF DOUBLE UNION ALL
    SELECT EXAM_CD '69', '115' CANDID, 4 DOUBLE RECORD_SEQ)
    (
    SELECT EXAM_CD FROM TABLE2, CANDID
    LESS
    SELECT CAND_ID,
    MAX (L CASE WHEN 1 EXAM_CD1 THEN WHEN 2 THEN of OTHER EXAM_CD2 EXAM_CD3 END) exam_code
    FROM TABLE1,
    (SELECT LEVEL L FROM DUAL CONNECT BY LEVEL < = 3)
    CAND_ID GROUP, L)

    The aim is

    CAND_ID, EXAM_CD, RECORD_SEQ
    * 111, 94, 3 *.

    Hello

    Rb2000rb65 wrote:
    The solution use not less as long as I get my results using the latest features, it is good with me.

    Good idea!
    UNMIS is not the best tool for this task. The saved query gets the exam_cd and the Candide you want, but you can't find the record_seq because there of nothing like record_seq in table1.

    You can do this way:

    SELECT     *
    FROM     table2     m
    WHERE     NOT EXISTS (
                        SELECT  1
                    FROM    table1
                    WHERE   m.candid      = candid
                    AND     m.exam_cd  IN ( exam_cd1
                                             , exam_cd2
                                 , exam_cd3
                                 )
                 )
    ;
    

    I guess you could use LESS, like this

    SELECT     *
    FROM     table2
    WHERE     (exam_cd, candid)
         IN (
                SELECT  ...  -- The MINUS query you posted goes here
            )
    ;
    

    but it is unecessarily complicated.

Maybe you are looking for