LEFTOUTER join querry which gives bad result

Hello

I have tables like below.when I perform a left outer join issue IDs and startdate he gives invalid results.when I write in request

It does not correct result because there is no data for 16 jan. It should give no results. But it shows all records. How do I solve this problem

SQL:

Select a.id, a.date, b.val, a.tot, b.net, b.cre

FROM table1 a

join table2 b left

"on a.id = b.id and a.date = b. and a.date ='02-Feb-2014."

In the tables below contains no data for the month of February but still im getting the incorrect data. He must not returnany files right?

Table1:

IDDateValtot
1January 1, 1319
22 January 1338
33 January 1347
4January 4, 1356
55 January 1365

Table2:

IDDateNETCRE
1January 1, 1319
213 January 1338
33 January 1347
4January 4, 1356
55 January 1365

"It should not returnany files right?

Wrong, there is no where clause so it should return all the records in a padded with NULL values for b.

Tags: Database

Similar Questions

  • Text index CONTEXT Oracle which gives bad results!

    Expert Oracle Text,

    I'm on Oracle 11.2.0.2 on Solaris 10 and have implemented the Oracle text features using the CONTEXT index type, and I'm getting a few problems in. I have a need for research with joker as % and giving the wrong exit. Here's the scenario where I get incorrect results:
     
    
    --creating preferences etc 
    exec   ctxsys.ctx_ddl.create_preference ('cust_lexer', 'BASIC_LEXER'); 
    exec   ctxsys.ctx_ddl.set_attribute ('cust_lexer', 'base_letter', 'YES'); -- removes diacritics 
    exec   ctxsys.ctx_ddl.create_preference ('cust_wl', 'BASIC_WORDLIST') 
    exec   ctxsys.ctx_ddl.set_attribute ;    ('cust_wl', 'SUBSTRING_INDEX', 'true'); 
    
    --table set up 
    CREATE TABLE TEST_USER 
    ( 
      FULL_NAME  VARCHAR2(64 CHAR)                  NOT NULL, 
      LAST_NAME  VARCHAR2(64 CHAR)                  NOT NULL 
    ); 
    
    
    CREATE INDEX TEST_USER_IDX5 ON TEST_USER 
    (FULL_NAME) 
    INDEXTYPE IS CTXSYS.CONTEXT 
    PARAMETERS('LEXER cust_lexer WORDLIST cust_wl SYNC (ON COMMIT)'); 
    
    --data set up 
    Insert into TEST_USER 
       (FULL_NAME, LAST_NAME) 
    Values 
       ('Supervisor upervisor', 'upervisor'); 
    Insert into TEST_USER 
       (FULL_NAME, LAST_NAME) 
    Values 
       ('JOSEPH WILSON', 'WILSON'); 
    Insert into TEST_USER 
       (FULL_NAME, LAST_NAME) 
    Values 
       ('CHRISTOPHER Phil', 'TAYLOR'); 
    Insert into TEST_USER 
       (FULL_NAME, LAST_NAME) 
    Values 
       ('PAUL HERNANDEZ', 'HERNANDEZ'); 
    Insert into TEST_USER 
       (FULL_NAME, LAST_NAME) 
    Values 
       ('Betty Jipes', 'Jones'); 
    Insert into TEST_USER 
       (FULL_NAME, LAST_NAME) 
    Values 
       ('One Anna', 'Anna'); 
    Insert into TEST_USER 
       (FULL_NAME, LAST_NAME) 
    Values 
       ('Three Anna', 'Anna'); 
    Insert into TEST_USER 
       (FULL_NAME, LAST_NAME) 
    Values 
       ('Two Anna', 'Anna'); 
    Insert into TEST_USER 
       (FULL_NAME, LAST_NAME) 
    Values 
       ('Four Anna', 'Anna'); 
    Insert into TEST_USER 
       (FULL_NAME, LAST_NAME) 
    Values 
       ('Gary Barrow', 'Barrow'); 
    COMMIT; 
    
    --query using CONTAINS which gives WRONG output - because out intention is to return only those strings that START WITH the letter P but it returns another string that has P not at the starting!! 
    
    SQL> select full_name from test_user where contains(full_name,'P%')>0; 
    
    FULL_NAME 
    ---------------------------------------------------------------- 
    PAUL HERNANDEZ 
    CHRISTOPHER Phil 
    
    -- I need output as follows in which the second value is not returned...meaning 'CHRISTOPHER Phil' should NOT be returned by the CONTAINS clause just as the LIKE operator below doesn't return it. 
    SQL> select full_name from test_user where full_name like 'P%'; 
    
    FULL_NAME 
    ---------------------------------------------------------------- 
    PAUL HERNANDEZ 
    Please can anyone suggest what to do about it?

    Thank you
    OrauserN

    No, you can skip all those, if you use SUBSTRING_INDEX.

  • view inline values, which gives bad result...

    I saw a123 table with data below...


    GRANTAMOUNTDRCR
    112341000D
    212345000C
    3123452000C
    4123457000D



    Now I want below o/p of the table of the a123


    GRANTBALANCE
    1234-4000
    12345-5000

    To do this, I wrote below the query but its appropriate result not give...

    Select grant, credit-debit balance of)

    Select grant, sum (debit) Debit, sum (credit) credit of)

    Select grant,

    Drcr case when 'C' THEN amount *-1 Else NULL END in the form of credit.

    Drcr case when had ' then amount end otherwise null flow

    from a123)

    Grant group);

    top query results are below...

    GRANTBALANCE
    112346000
    2123459000

    Please help me on this thanks...

    Pretty obvious what is wrong:

    you convert credit figures in negative numbers with the case statement

    If you have

    1 1234 1000 D
    2 1234 -5000 C
    3 12345 -2000 C
    4 12345 7000 D

    and after that you are subtracting these figures of your throughput numbers.

    Therefore, do not convert negative credits before subtracting the or if you want to make negativ, then you must add them.

    1000 + 5000 =-4000

    1000-5000 = 6000

    HTH

  • Query to find columns (in relation FK) which gives bad child result...

    I need to find all the columns in a Parent child table. I wrote the below query to do this.

    CREATE TABLE test_parent
    (      supplier_id      number(10)      not null,
         supplier_name      varchar2(50)      not null,
         contact_name      varchar2(50),      
         CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)
    );
    
    
    
    
    CREATE TABLE test_child
    (      product_id      number(10)      not null,
         child_supplier_id      number(10)      not null, ---*its child_supplier_id not supplier_id*
         CONSTRAINT fk_supplier
           FOREIGN KEY (child_supplier_id)
          REFERENCES test_parent(supplier_id)
          ON DELETE CASCADE
    );
    
    
    insert into test_parent values (3,'ABC','John');
    insert into test_child values (993983,3);
    
    
    COL TABLE_NAME FORMAT A25
    COL CONSTRAINT_TYPE FORMAT A25
    COL CHILD_COLUMN FORMAT A25
    
    select     a.table_name, 
         b.column_name child_column
    from user_constraints a,
         user_cons_columns b
         where a.r_constraint_name=b.constraint_name
    and R_CONSTRAINT_NAME =  (select constraint_name from 
                     user_constraints where table_name = 'TEST_PARENT' -- I enter the parent table name here
                    and constraint_type = 'P'
                   )
    and constraint_type = 'R';
    
    
    TABLE_NAME                CHILD_COLUMN
    ------------------------- ------------------------
    TEST_CHILD                SUPPLIER_ID
    It should be
    *child_supplier_id*
    Let's not my request. I'm doing something really stupid here.

    Try this one

    select fk_cons.table_name, fk_cons.constraint_name, fk_cols.column_name
    from user_constraints PK_cons
    join user_constraints fk_cons on fk_cons.r_constraint_name = pk_cons.constraint_name
    join user_cons_columns fk_cols on fk_cols.constraint_name = fk_cons.constraint_name
    where fk_cons.constraint_type = 'R'
    and PK_cons.table_name = 'TEST_PARENT';
    
  • SDO_FILTER which gives weird results

    Hi people,

    Not sure if this is a bug or maybe I'm just not see something simple. On 11.2.0.4. I have an area of the area of interest and a line next door representing a piece of water, the two geometries validate the tolerance of 5 centimeters.
    http://www.dziemiela.com/june27.PNG
    The box is more than a mile away from the stream. The flow is relatively small and its MBR is no where close to touch the area. However, according to SDO_FILTER, two geometries are TRUE. I'm puzzled. So I wrote the mess for anyone wishing to give it a shot. I'll be back

    Streamy is valid? TRUE
    Véronique is valid? TRUE
    Basic SDO_GEOM. RELATE? DISJOINT
    Distance between 1795.19857225394 M
    MIL SDO_GEOM. RELATE? DISJOINT
    Distance between 1794.97512096382 M
    SDO_RELATE County 0
    SDO_FILTER County 1

    If two geometries are distance of 1.7 km and their members are distance of 1.7 km. I would like to say very clearly that these things shouldn't interact. Right? However, filter gives TRUE. Am I a something Klutz?

    Thank you
    Paul
    DECLARE
       sdo_streamy SDO_GEOMETRY := SDO_GEOMETRY(2002,8265,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(-77.6495001234516,38.9423350727726,-77.6482987901201,38.9418092727734,-77.6468049234557,38.9413522727742,-77.6461311901235,38.9413982061074,-77.6438177901271,38.942107872773,-77.6427925901286,38.9423368727726,-77.6423533234627,38.9422912727727,-77.6410643234647,38.9417884061068,-77.6406835234653,38.9416968727736,-77.6403321234658,38.9417886061068,-77.6394825901338,38.9417886727735,-77.63760792347,38.9414232061074,-77.6370221234709,38.9410114727747,-77.6357033901397,38.9392504727774,-77.6352933234736,38.9389760727778,-77.6347071901412,38.9380154727793,-77.6313675901464,38.9348822727842,-77.6301375234816,38.9342876061185,-77.6295517234825,38.9336930061194,-77.6294929901493,38.9335098727863));
       sdo_boxy SDO_GEOMETRY := SDO_GEOMETRY(2003,8265,NULL,SDO_ELEM_INFO_ARRAY(1,1003,1),SDO_ORDINATE_ARRAY(-77.6087382736728,38.9295533233688,-77.4229814409148,38.9295533233688,-77.4229814409148,39.0744969598833,-77.6087382736728,39.0744969598833,-77.6087382736728,38.9295533233688));
       num_result NUMBER;
    BEGIN
       dbms_output.put_line('Streamy is valid? ' || SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(sdo_streamy,0.05));
       dbms_output.put_line('Boxy is valid? ' || SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(sdo_boxy,0.05));
       dbms_output.put_line('Basic SDO_GEOM.RELATE? ' || SDO_GEOM.RELATE(sdo_streamy,'DETERMINE',sdo_boxy,0.05));
       dbms_output.put_line('Distance Between ' || SDO_GEOM.SDO_DISTANCE(sdo_streamy,sdo_boxy,0.05) || 'M');
       dbms_output.put_line('MBRs SDO_GEOM.RELATE? ' || SDO_GEOM.RELATE(SDO_GEOM.SDO_MBR(sdo_streamy),'DETERMINE',SDO_GEOM.SDO_MBR(sdo_boxy),0.05));
       dbms_output.put_line('Distance Between ' || SDO_GEOM.SDO_DISTANCE(SDO_GEOM.SDO_MBR(sdo_streamy),SDO_GEOM.SDO_MBR(sdo_boxy),0.05) || 'M');
       EXECUTE IMMEDIATE 'CREATE TABLE streamy (shape SDO_GEOMETRY)';
       EXECUTE IMMEDIATE 'INSERT INTO streamy (shape) VALUES (:p01)' USING sdo_streamy; COMMIT;
       INSERT INTO user_sdo_geom_metadata(table_name,column_name,diminfo,srid) VALUES 
       ('STREAMY','SHAPE',MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',-180,180,.05),MDSYS.SDO_DIM_ELEMENT('Y',-90,90,.05)),8265); COMMIT;
       EXECUTE IMMEDIATE 'CREATE INDEX streamy_spx ON streamy(shape) INDEXTYPE IS MDSYS.SPATIAL_INDEX';
       EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM streamy a WHERE SDO_RELATE(a.shape,:p01,''MASK=ANYINTERACT'')=''TRUE''' INTO num_result USING sdo_boxy;
       dbms_output.put_line('SDO_RELATE Count ' || TO_CHAR(num_result));
       EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM streamy a WHERE SDO_FILTER(a.shape,:p01)=''TRUE''' INTO num_result USING sdo_boxy;
       dbms_output.put_line('SDO_FILTER Count ' || TO_CHAR(num_result));
    END;
    /

    Hi Paul,.

    For geodetic geometry, R-tree index are in 3D. For example, you can see:

    SQL> select sdo_index_name, SDO_ROOT_MBR from user_sdo_index_metadata;
    
    SDO_INDEX_NAME
    --------------------------------
    SDO_ROOT_MBR(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINAT
    --------------------------------------------------------------------------------
    STREAMY_SPX
    SDO_GEOMETRY(3008, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1007, 3), SDO_ORDINATE_ARR
    AY(.16636, -.759816, .628418, .166646, -.759754, .628538))
    

    sdo_boxy is converted to:
    SDO_GEOMETRY (3008, NULL, NULL, SDO_ELEM_INFO_ARRAY (1, 1007, 3), SDO_ORDINATE_ARR)
    AY (. 166589,-. 759798,.628364,.169393,-. 757698,.630331))

    If the two MBR or minimum limit boxes (MBBs) intersect.

    Thank you
    Ying

  • Find text in secure file gives bad result

    I'm usung Adobe Reader 10.1.4 with Windows 7 32 bit.  When I try to find the text, I get a wrong result if the PDF is secured.  I get the correct result in a file that is not guaranteed.  The same search for the secure file works on another PC also running Adobe Reader 10 and Windows 7.  I uninstalled Adobe Reader and re-installed.  Any ideas on what could cause this?

    After much research of all options of security in programs I thought likely to affect Adobe Reader, I reached nothing a lot of expletives later, I found the solution

    Open Adobe Reader > edit > Preferences > search, click on "empty Cache Contents.

    Everything works again!

  • Key combinations give bad result?

    Hello

    I recently bought the HP Pavilion 15-e007tu from an ecomerce store. I just found out that when I press on "shift + 2" for typing ' @' he doesn't but double quotation ("") is a combination. "." In the same way when I press the combination 'shift + single quote', it seems "@" instead of double quotes.

    The keys work incorrectly, interchangeably, except these two the rest work correctly.

    How can I solve this problem? Is this a glitch or a large?

    Thanks for all your help!

    Yes, but the same thing applies to a laptop computer with Windows installed.

    Keyboards are mapped in languages and they may differ by a few keystrokes. A selection of English UK differs from English in the United States or International.

  • Count on column month function gives bad result

    Hello

    I'm on OBIEE 11.1.1.7.150120.

    I used the count on the column for the month function and instead of getting 12 as the answer I get 365. (I used a filter on the column year to restrict to one year)

    How could it happen?

    Any help would be appreciated.

    A count on your back 1661600 fact table is not strange because it is normal to have a ton of lines (zero, one or more for each value of your dimensions).

    If you look at the physical SQL what is it? 365 days is because of 1 line of time Sun has multiple matches on your fact table or is dim because your time is at the level of the day (again 365 is really a strange number: exactly the number of days in the year...).

    But the distinct count is your solution, because as soon as your will a request using your time and dimension of any other table with County you will count the number of lines and not the number of months.

  • Copy and paste the code which gives different results

    I use PS CS5 and need to copy and paste the code from one page to another. The reason is that the only difference is a change in the images and titles.

    When I view the page copied in a browser the table continues beyond the wrapper div and none of the images are visible.

    Here is the copied code:

    <! DOCTYPE HTML > < html lang = "en" >

    < html >

    Head of <>< name meta = "robots" content = "INDEX, FOLLOW" / >

    < name meta = "robots" content = "noimageindex" / >

    < name meta = "description" content = "Ace with checkered flag logo" / >

    < name meta = "keywords" content = "Top Trumps, Ace, flag at checkerboard, Classic Cars, drag racing, heavy trucks, 500 miles of Indianapolis, International bus, luxury cars, luxury cars Made in Germany, Yachts of luxury, the NASA Super Jets, cars, Rolls-Royce, Street Bikes, street cruisers, Super-Bikes, Super Sonics, Super Trains in the world." / >

    < title > < /title > checkered flag

    < link href = "css/table.css" rel = "stylesheet" type = "text/css" media = "screen" > "

    < / head >

    < div id = 'wrapper' >

    < body >

    < div id = "bread crumbs" >

    < a title = "Return to Homepage" href = "index.html" > home < /a > & bull; < a title = "Go back to index of England" href = "england.html" > English Top Trumps < /a > & bull; "< a title ="Back to Ace Index"href ="... /... ' / index.html - ace "> Ace Index < /a >

    < / div >

    < div id = "banner logo" >

    "< img src ="... /... / images/title.jpg ">"

    < / div >

    < div id = "page title" > < flag checkerboard of h1 > < / h1 > < / div >

    < div id = "table" align = "center" >

    < table >

    < thead >

    < b >

    < th = "column" range > Classic Cars < /th >

    < th = "column" scope > < /th > Dragster

    < th = "column" scope > < /th > trucks

    < th = "column" scope > Indianapolis 500 < /th >

    < th = "column" scope > International bus < /th >

    < /tr >

    < / thead >

    < tbody >

    < b >

    < td > < img title = "cars classic Ace assets with the checkered flag" src = "images/futbol_yildizlari.gif" > < table >

    < td > < img title = "Dragster Ace assets with the checkered flag" src = "images/HP-ve - zumruduanka.gif" > < table >

    < td > < img title = "Trucks heavy Ace assets with the checkered flag" src = "images/hp_ve_ateskadehi.gif" > < table >

    < td > < img title = "Indianaplis 500 Ace assets with the checkered flag" src = "images/karayip_korsanlari.gif" > < table >

    "< td > < img title ="Bus International Ace assets with the checkered flag"src ="... /... / images/international_buses_ace.gif ' > < table >.

    < /tr >

    < b >

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < /tr >

    < / tbody >

    < thead >

    < b >

    < th = "column" scope > luxury car < /th >

    < th = "column" scope > luxury cars Made in Germany < /th >

    < th = "column" scope > < /th > Luxury Yachts

    < th = "column" scope > the NASA Super Jets < /th >

    < th = "column" scope > race cars < /th >

    < /tr >

    < / thead >

    < tbody >

    < b >

    "< td > < img title ="Luxury cars Ace assets with the checkered flag"src ="... /... /images/luxury-cars-ACE.gif' > < table >

    "< td > < img title ="Cars luxury Made in Germany Ace assets with the checkered flag"src ="... /... / images/Lux_Cars_Made.gif ' > < table >.

    "< td > < img title ="Luxury Yachts"src ="... /... / images/Luxury_Yachts.gif ' > < table >.

    "< td > < img title ="NASA Super Jets Ace with checkered flag"src ="... /... /images/NASA_Super-Jets_Ace.gif' > < table >

    "< td > < img title = 'Race Cars Ace with checkered flag' src = '... /... / images/Race_Cars.gif ' > < table >.

    < /tr >

    < b >

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < /tr >

    < / tbody >

    < /table >

    < / div >

    < div id = 'foot' >

    & copy; 2005-2016 Ultimate Top Trumps. All rights reserved < / div >

    < / body >

    < / html >

    Thanks in advance.

    At first glance, I see that you have a wrapper

    before the openingtag. You can't do that.

    Run the validator at http://validator.w3.org/nu for a list of your html of your page errors. Clean and your page should work fine.

  • Order by date which gives undesired results

    Hi guys

    We use a table: a_action_data
    in a field that is: date type action_date

    We are inserting two records in this table at the same time then the two documents have the same value for the date of the action as the 15/02/2012 08:02:59

    first of all, we insert APPROVED
    Then we insert READY

    Select a.rownum, a.action_date, a.action in a_action_data

    Rownum Action_date Action
    -------- ------------------------------ --------------
    1 2/15 / 2012 CREATED 08:32:06
    2 2/15 / 2012 08:33:59 APPROVED
    3 2/15/2012 READY AT 08:33:59

    Select a.rownum, a.action_date, a.action in a_action_data order of action_date
    Rownum Action_date Action
    -------- ------------------------------ --------------

    1 2/15 / 2012 CREATED 08:32:06
    3 2/15/2012 READY AT 08:33:59
    2 2/15 / 2012 08:33:59 APPROVED

    Can you explain why LOAN comes before APPROVED .well, it was inserted after APPROVED.
    and there is no difference between the date of the action of these two

    Thank you

    Hello

    873159 wrote:
    ... I understand your answer, but then, what are the criteria used internally in this case (since both records have the same date)) to sort the records

    What is the order when you do not have an ORDER BY clause at all? Oracle output lines in whatever order it finds convenient, depending on how the lines are read, what treatment is done for lines and other factors. There is no guarantee that the lines will be in a particular order. If you run the same exact query again, without any change to the table, you can get a different order.

    It goes the same for lines where there is equality in ORDER BY expressions. If the entire ORDER BY clause is "ORDER BY action_date", then you can be certain that the lines with a lower action_date will come before lines with a higher action_date, but, if 2 or more rows have exactly the same action_date, to the second, so they could appear together in an order any. If you rerun the query, without chaniging table, the related rows may appear together in a different order.

    If you want the output in a particular order, to use an ORDER BY clause to mean that order.

  • Satellite L10 and keyboard:-shift key gives wrong results

    Using the SHIFT key with most of other than a-z keys gives bad result.
    I tried to re - install a driver via Control Panel / keyboard with the Toshiba XP Home CD inserted but not better driver is found.
    Control Panel / regional and language setting is English UK

    Hello, Alan

    It will be nice if you can give us more information. What specific keyboard of the country you have? What you want to do exactly? Give us a few examples please.

  • BAD RESULTS WITH OUTER JOINS AND TABLES WITH A CHECK CONSTRAINT

    HII All,
    Could any such a me when we encounter this bug? Please help me with a simple example so that I can search for them in my PB.


    Bug:-8447623

    Bug / / Desc: BAD RESULTS WITH OUTER JOINS AND TABLES WITH a CHECK CONSTRAINT


    I ran the outer joins with check queries constraint 11G 11.1.0.7.0 and 10 g 2, but the result is the same. Need to know the scenario where I will face this bug of your experts and people who have already experienced this bug.


    Version: -.
    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE    11.1.0.7.0      Production
    TNS for Solaris: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production

    Why do you not use the description of the bug test case in Metalink (we obviously can't post it here because it would violate the copyright of Metalink)? Your test case is not a candidate for the elimination of the join, so he did not have the bug.

    Have you really read the description of the bug in Metalink rather than just looking at the title of the bug? The bug itself is quite clear that a query plan that involves the elimination of the join is a necessary condition. The title of bug nothing will never tell the whole story.

    If you try to work through a few tens of thousands of bugs in 11.1.0.7, of which many are not published, trying to determine whether your application would be affected by the bug? Wouldn't be order of magnitude easier to upgrade the application to 11.1.0.7 in a test environment and test the application to see what, if anything, breaks? Understand that the vast majority of the problems that people experience during an upgrade are not the result of bugs - they are the result of changes in behaviour documented as changes in query plans. And among those who encounter bugs, a relatively large fraction of the new variety. Even if you have completed the Herculean task of verifying each bug on your code base, which would not significantly easier upgrade. In addition, at the time wherever you actually performed this analysis, Oracle reportedly released 3 or 4 new versions.

    And at this stage would be unwise to consider an upgrade to 11.2?

    Justin

  • bad results for the search for context on the empty element tags

    I use Oracle DBMS 11.1 and 11.2 and created an index on an XML column context (article group: PATH_SECTION_GROUP).
    When you enter a query like

    SELECT count (*) FROM my_table t WHERE contains (t.co_xml,'hasPath(/tag1/tag2)') > 0

    I get bad results if tag2 is an empty element tag (< tag2 / >) that appears somewhere in the
    XML instance, but is NOT directly under tag1.

    For example, the following XML instance is (but shouldn't!):

    < a >
    blah blah < tag3 > < tag1 > < / tag3 > < / tag1 >
    blah < tag4 > < tag2 / > < / tag4 >
    < /a >

    This seems to happen only for the empty element tags. Is this a known bug and does anyone know of a workaround?

    Thank you in advance for your help!
    Roman

    Like you, I've been looking in the wrong places, bug of thought, rather than documented behavior. Finally, I came across the following excerpt from the next section of the documentation on haspath in Oracle text reference.

    http://download.Oracle.com/docs/CD/B28359_01/text.111/b28304/cqoper.htm#i997393

    Limits

    Because of the way in which XML data section are saved, false match may appear with XML sections that are completely empty as follows:

    
    

    A query of HASPATH(A/B/E) or HASPATH(A/D/C) falsely corresponds to this document. This type of fake correspondent can be avoided by inserting some text between the empty tags.

  • I have an Airport Express, which gives an unexpected error message when you try to connect to an existing network of WEP.  Any ideas.  Tried the factory returned. He was knocked offline when someone dug into the telco cables.

    I have an Airport Express, which gives an unexpected error message when you try to connect to a router WEP (Verizon) existing iOS9.3.2

    It flashes orange, but can not be reconnected to the router or to the title of the Setup Assistant or Airport utility.  Is there a way to reconnect to WIFI or should I bite the bullet and connect via Cat5e and be done with it.  My VPN works much better without AirPort Express connected.

    Sorry, but there is no WEP settings AirPort Utility on the iPhone or iPad, or any Mac version of AirPort Utility which was used for the last 4 years or so.

    If you have an older Mac still running AirPort 5.x utility or a PC with the AirPort for Windows utility installed on the device, the WEP settings that could be used to get the Express to connect to a WEP network there.

    As you know, WEP has not been secured for a number of years, and there are any number of free utilities available on the Internet, which is crack a WEP network in a few seconds. Thus, all those who want to be on your network will not have problems to do very quickly.

    But it's your call.

  • When I try to open a menu on a web site, she want to open with Notepad which gives me garbage. How to open in adobe?

    When I try to open a menu to a restaruant on a web site, she want to open with Notepad which gives me garbage. It does me no options to open it with adobe or another option.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

Maybe you are looking for