Result of query different in version 9i and 10g

We have a query wiht correlated subqueries. If we execute this query in version 8 or version 9 the query returns no rows. (as expected).
Running this query in version 10g return 1 row. Is this a change in the semantics of SQL in version 10 or could it be a bug ?
Below is a sample scenaria :
CREATE TABLE A (
ID1 number,
ID2 number,
CODE VARCHAR2(1)
CREATE TABLE B (
ID2 number,
COLX number
INSERT INTO A values ( 1, 1, 'D' );
INSERT INTO A values ( 1, 2, 'I' );
INSERT INTO B values ( 1, 1 );
INSERT INTO B values ( 2, 2 );
COMMIT;
select *
from A A1
where A1.CODE = 'D'
and exists (select 1
from A A2
     where A2.CODE = 'I'
     and A2.ID1 = A1.ID1
     and not exists (select COLX from B where ID2 = A1.ID2 MINUS select COLX from B where ID2 = A2.ID2)
);

Hi,
>>select COLX from B where ID2 = A1.ID2 MINUS select COLX from B where ID2 = A2.ID2Really strange. Well, this problem maybe in this code above.
TESTE@teste> select *
  2  from A A1
  3  where A1.CODE = 'D'
  4  and exists (select 1
  5  from A A2
  6  where A2.CODE = 'I'
  7  and A2.ID1 = A1.ID1
  8  and not exists (select COLX from B where ID2 = A2.ID2 MINUS select COLX from B where B.ID2 = A1.ID2)
  9  );
no rows selected
TESTE@teste> select * from v$version;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
PL/SQL Release 9.2.0.4.0 - Production
CORE    9.2.0.3.0       Production
TNS for Linux: Version 9.2.0.4.0 - Production
NLSRTL Version 9.2.0.4.0 - Production
TESTE@teste> select *
  2  from A A1
  3  where A1.CODE = 'D'
  4  and exists (select 1
  5  from A A2
  6  where A2.CODE = 'I'
  7  and A2.ID1 = A1.ID1
  8  and not exists (select 1 from dual where 1=2)
  9  );
       ID1        ID2 C
         1          1 D
SGMS@ORACLE10> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
PL/SQL Release 10.1.0.2.0 - Production
CORE    10.1.0.2.0      Production
TNS for Linux: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production
SGMS@ORACLE10> select *
  2  from A A1
  3  where A1.CODE = 'D'
  4  and exists (select 1
  5  from A A2
  6  where A2.CODE = 'I'
  7  and A2.ID1 = A1.ID1
  8  and not exists (select COLX from B where ID2 = A2.ID2 MINUS select COLX from B where B.ID2 = A1.ID2)
  9  );
       ID1        ID2 C
         1          1 DCheers

Similar Messages

  • I have an ipad 1 and an iphone 4s, how do I manage these in iTunes given that they are different ios versions (5 and 6)?

    My iPhone 4s is on iOS 6 and that is fine (with various known issues of course). My iPad is using iOS 5 and does not support iOS 6, and here lies the problem.
    iTunes suggests updates to my Apps, some of which become iOS 6 only making them unusable on my iPad. I can't transfer these iOS 5 compatible versions of the Apps to iTunes because they are seen as older, and if I remove them from the iPad I can no loinger install them as I can't run iOS 6 on the iPad.
    This is madness and very poor design by Apple whereby their closed management tools (iTunes) cannot actually manage a situation they have crerated themselves.
    If I could at least identify which Apps in my library where iOS 6 only, I could feasibly try to locate these in my Time Machine backups and keep them manually backed up for my iPad, but Apple haven't even though tof allowing me to do this. Or perhaps they have in a hiddne feature somehow!!
    Does anyone know if there is a way to identify Apps that only support iOS 6?
    Even if this required a terminal search for a string within .plist files or something.
    Help, my iPad is losing functionality by the day...
    Thanks
    Chris

    And I can't find this "on this page" item people are talking about.

  • Can We Have 2 Oracle Versions 9 and 10g Sharing Same Linux RH2 Server?

    Hello DBA's
    Am quite undecided in setup 2 Oracle Versions into Same Machine.
    The Reason is Am'm affraid if I need t install specifique RPM packages fro 9R2 are thy compatible with The RPM request for 10gr2.
    Second Question What's your opinion concerning Virtualizing Oracle Production Servers ?`
    Txs
    Carlos

    Am quite undecided in setup 2 Oracle Versions into Same Machine.It is OK to do so.
    Second Question What's your opinion concerning Virtualizing Oracle Production Servers ?`It is easy to get wrong & can be a challenge to debug to get correct.

  • 9i and 10g in the same nodes

    Hi.
    I would like to know if it's possible to have two database in different versions (9i and 10g) in the same nodes.
    In this case, I suppose that I have to install the tow clusterware, one for 9i and another one for 10g, haven't I?
    Thanks!

    Hi,
    both your assumptions are correct.
    You can have a 9i RAC database and a 10g one both in the same cluster. However, you would need to have 10g Clusterware and another cluster software for the 9i RAC. On Linux and Windows Oracle would use the Oracle Cluster Manager (CM) for the 9i RAC, on all other platforms you would need to get a third party cluster software for the 9i RAC database, since the 10g Clusterware cannot serve as the underlying cluster software for the 9i RAC database. Nevertheless, the 10g Clusterware GSD would be used to manage the 9i RAC database in those combinations.
    Thanks.

  • 9i and 10g on same server (Win 2000) - only use one a time.

    I am working on setting up an oracle server for testing purposes and wonder if it is possible to install 9i and 10g on the same server (Win 2000) without any conflicts? Only one would be used at a time.
    Thanks,
    Luke

    Yes. It is possible to have multiple version in windows. However, it is little tricky compare to unix environment.
    You can comfortably execute respective versions(9i and 10g) GUI interfaces. But you may have issue when you try to execute binaries from command prompt. Each Oracle installation will keep appending the environment variables(path, etc). You can have batch file for each version and execute it.
    GUI interfaces controled by windows registry. Each version will have separte registry entry with necessary variables.
    Ashok

  • Iterate query result - put specific rows in a collection and do output

    JDeveloper 11.1.1.3.0
    Oracle Lite: 10.2.0.1.0
    Browser: IE 7
    Hi,
    please help me in working on following requirement:
    1. Iterate the View Object Query Result
    2. Do some calculation on the Rows, lets say:
    Concatination of column1 and column2 and place it in a non database Attribute "column3"
    3. How to handle/place the non database attribute?
    4. Fetch specific rows from the query result; there should be a comparison, like checking master and detail hierachy struktur:
    Take Column1_ID (Master) check in columns2_ID (Detail), when found detail take this Row and place it in a buffer (Maybe ArrayList, or something like that)
    5. Show the Chace(ArrayList) to user, in a form of View Object, with standard functions like sorting and filtering
    Till now my process of solving the above requiremnts are:
    To Point 1:
    Created a service method in Application Implementation Class
       public void iterateEmp(){
         EmployeesVOImpl vo = getEmployeesVO1();
         while (vo.hasNext()){
          EmployeesVORowImpl row = (EmployeesVORowImpl)vo.next();
          System.out.println(row.getEmployeeId() + " | " + row.getFirstName() + " | " + row.getLastName() + " | " +  row.getEmail());   
          //row.setCalcCol(row.getFirstName() + "," + row.getLastName());
         }To point 2:
    Added an attribute to the View Object, with updateable and Queryable options. Place it on the JSPX Page.
    With setter method, filled with values, for example (non Database Attributes Name is CalcCol):
    Name:
    //see above code
    row.setCalcCol(row.getFirstName() + "," + row.getLastName());When doing so, on initial Call the values will be representated, but when sorting o filtering will be done, the values then will be erased.
    3. Added an Attribute in View Object "Attributes Panel".
    Here the XML Code of the View Object:
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="EmployeesVO"
      Version="11.1.1.56.60"
      BindingStyle="OracleName"
      CustomQuery="true"
      ComponentClass="model.EmployeesVOImpl"
      PageIterMode="Full"
      UseGlueCode="false"
      RowClass="model.EmployeesVORowImpl">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess"/>
        <Attr Name="_isExpertMode" Value="true"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <SQLQuery>
        <![CDATA[select employee_id, first_name, last_name, email from employees]]>
      </SQLQuery>
      <ViewAttribute
        Name="EmployeeId"
        IsUpdateable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        Precision="6"
        Scale="0"
        Type="oracle.jbo.domain.Number"
        ColumnType="NUMBER"
        AliasName="EMPLOYEE_ID"
        Expression="EMPLOYEE_ID"
        SQLType="NUMERIC">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="22"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="FirstName"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="20"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="FIRST_NAME"
        Expression="FIRST_NAME"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="20"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="LastName"
        IsUpdateable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        Precision="25"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="LAST_NAME"
        Expression="LAST_NAME"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="25"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Email"
        IsUpdateable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        Precision="25"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="EMAIL"
        Expression="EMAIL"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="25"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="CalcCol"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR"/>
      <AttrArray Name="KeyAttributes">
        <Item Value="EmployeeId"/>
      </AttrArray>
    </ViewObject>To Point 4:
    There should be a specific sort order, which i have to code in ADF.
    Just to give an overview:
    Colum1 and Column2 (nothing to do with the emp table) have relationship. Several hierachies are existing in the Query Result.
    For identifying the start point of any of these hierachies, i have to iterate through the Query Result and fetch these start point
    and buffer it in an array or something like that.So in the end i have to get the same query Result but with different Sort Order.
    How to buffer theses Rows (Array?) and show in a View Object?
    Can we use the same view Object for solving that, or should we use another View Object which catches the new Result Set?
    To Point 5:
    The Result should be, as mentioned above, a View Object including new Result Set, which can provide standard behavior (sort, filter)
    I hope the requirement is defined clearly enough, so maybe you can make some suggestions on that.
    Thank you for replies.
    Edited by: user9198377 on 13.07.2011 02:52

    Hi.. You can do this without DB View. Have CalcCol transient attribute in VO. Instead of iterating VO rows and setting CalcCol attr, generate View Row Impl class. Inside getCalcCol(), write your logic. This will be called during each and every request so that transient attr data won't become null during sorting and filtering. If your VO is entity driven, do the same in Entity impl class
    Raghu
    Edited by: Raguraman on Sep 5, 2011 9:48 AM

  • Oracle Sql Query issue Running on Different DB Version

    Hello All,
    I have come into situation where we are pruning sql queries on different DB version of Oracle and have performance issue. Let me tell you in brief and i really appreciate for your prompt response as its very imperative stuff.
    I have a query which is running on a DB of version 7.3.4 and it takes around 30 mins where as the same query when run on 8i it takes 15sec., its a huge difference. I have run the statistics to analyze on 7.3 and its comparatively very high. Question here is, the sql query trys to select data from same schema table and 2 tables from another DB using DB link and 2 other tables from another DB using DB link.So,how can we optimize this stuff and achieve this run as same time as 8i DB in 7.3. Hope i am clear about my question, Eagerly waiting for your replies.
    Thanks in Advance.
    Message was edited by:
    Ram8

    Difficult to be sure without any more detailed information, but I suspect that O7 is in effect copying the remote tables to local temp space, then joining; 8i is factoring out a better query to send to the remote DBs, which does as much work as possible on the remote DB before shipping remaining rows back to local.
    You should be able to use EXPLAIN PLAN to identify what SQL is being shipped to the remote DB, If you can't (and it's been quite a while since I tried DB links or O7) then get the remote DBs to yourself, and set SQL_TRACE on for the remote instances. Execute the query and then examine the remote trace files, And don't forget to turn off the tracing when you're done.
    Of course it could just be that the CBO got better,,,
    HTH - if not, post your query and plans for the local db, and the remote queries.
    Regards Nigel

  • CK24 - mark and release with different costing version

    Hi,
    We are currently using standard costing variant PPC1 and costing version 1 to mark and release the standard costs. However when we try to recost the material cost due to price changes, system does not allow to mark & release revised standard cost if we try to mark & release on same day. pls note standard cost estimate is already released for the month. And we do not want to delete existing standard cost estimate. Instead we want to explore other options. We are using 4.7.
    My questions are :
      a) Can recost using costing version 2? CK11N allows to save the costing result. However in CK24 Marking allowance, system does not allow to change Costing Version. is there any config option to change this.
    b) If  we cannot use different cost version, can we update material cost with same costing variant (PPC1) and costing version (1) in this case. However when we tried to do recost with same costing variant & verison on same day, system gives an error 'Material AAAA in plant MMM has a released cost estimate.'
    Any inputs on above issue highly appreciated.
    thanks
    Sunil

    Hi,
    While, you can use any of the Costing versions to mark & release Standard cost estimate, you can release Cost estimate only once in a fiscal period. If you want to release correct prices, then you have delete existing released cost estimates using CKR1 transaction and then re-run CK40N to release.
    Hope this helps.

  • Query Performance and Result Set Query/Sub-Query

    Hi,
    I have an infoset with as many as <b>15 joins</b> with different ODS and Master Data..<b>The ODS are quite huge with 20 million, 160 million records)...</b>Its taking a lot of time even for a few days and need to get atleast 3 months data in a reasonable amount of time....
    Could anyone please tell me whether <b>Sub-Query or Result Set Query have to be written against the same InfoProvider</b> (Cube, Infoset, etc)...or they can be used in queries
    on different infoprovider...
    Please suggest...Thanks in Advance.
    Regards
    Anil

    Hi Bhanu,
    Needed some help defining the Precalculated Value Set as I wasnt succesful....
    Please suggest answers if possible for the questions below
    1) Can I use Filter Criteria for restricting the value set for the characteristic when I Define a Query on an ODS. When i tried this it gave me errors as below  ..
    "System error in program CL_RSR_REQUEST and form  EXECUTE_VTABLE:COB_PRO_GET_ALWAYS....                     Error when filling value set DELIVERY..                                               
    Job cancelled after system exception ERROR_MESSAGE"                                           
    2) Can I create a create a Value Set predefined on an Infoset -  Not Succesful as Infoset have names such as "InfosetName_F000232" and cannot find the characteristic in Paramter Tab for Value Set in Reprting Agent.
    3) How does the precalculated value Set variable help if I am not using any Filtering Criteria and is storing the List of all values for the Variable from the ODS which consists of 20 millio records.
    Thanks for your help.
    Kind Regards
    Anil

  • Query to compare different Plan versions in CCA

    My requirement is to create a Cost Center query that compares two different plan versions, selected by the user with different time periods. We do not use any SEM functionality and are in version 3.0B.
    There is a standard R3 report but this gives a total figure and does not split the figures by periods.
    Does anyone know a Business Content query that can resolve this issue?

    Hi ,
    Instead of going for a business content query u can go for a formula variable using replacement path and assign the required values for the output and in that by using the customer exit with the help of abapers
    Hope this will be a clear solution to ur problem
    Pls assign full points if answer is satisfied
    Regards ,
    Subash Balakrishann

  • Different live update 3 and live monitor results

    Different live update 3 and live monitor results.
    And manual downloads are different also.
    Not sure which way to go.
    All checked today
    Drivers Tabs
    Live Update 3  v3.79  shows
    Update Date 2006/11/17
    Via Chipset Driver v5.07a   7.10mb
    Via Lan Driver v3.23.0.0417  996KB
    AMD Away Driver v1.0.1.0   1.19MB
    Live Monitor shows
    Search Time: Sat, Nov. 25, 2006, 17:13:55
    VIA Chipset Drivers  4.51  1.68MB
    VIA LAN Drivers  3.23.0.0408  537.5KB
    VIA Smart5.1CH Sound Drivers  6.14.01.4010  3.92MB
    And these are from manually Looking up my MB
    at Support Downloads Today
    VIA Chipset 4in1 Drivers 5.09a 7587KB
    VIA 10/100 LAN Drivers 3.32.0.0417  638KB
    VIA Smart5.1CH Sound Drivers Driver version: 6.14.01.4120 (package:620b)3142KB

    Quote from: Maesus on 27-November-06, 19:26:55
    my take is... don't update if nothing breaks in your system. These are very fundamental drivers, the LAN and the Audio, most if not all of the features are already there and there won't be EXTRA features added by new updated drivers. Don't hope much! and don't update unless you really think it's necessary. Just my piece of advice. :D
    I second to Maesus advice.

  • Different Client Versions in OWB 9i and 10g

    Hi,
    Our client is using 9i OWB Client Software, and we are planning to use OWB10g Client Software on Windows Platform.
    Will there be any compatability issues while moving from 9i OWB Client Software to 10g Client software.
    And what are other parameters we need to consider, if possible please mention any documents links available.
    Kindly let me know the pros/cons in this model .
    Here my main question is will there be backward compatibility, i.e repository in 9i database need to connect by using the OWB 10g client?
    With Regards,
    Kranth...
    Edited by: user8536050 on Jan 18, 2010 1:44 AM

    Hi,
    you cannot use different client versions on the same repository. If you want to use owb 10g, then you have to upgrade the repository to 10g. Then you can only use 10g clients, owb 9i clients cannot connect to that repository.
    Regards,
    Carsten.

  • Same query returns differenent result sets in oracle 9i and 10g

    Could anyone please clarify the issue i am having on a query. I have query that is returning around 2000 records in oracle db 9.2.0.8.0, at the same time with same data if run on 10.2.0.1.0 is returning only 12 records.
    what might be the reason for this descrepancy, is something in 9i is considered differently in 10g?
    Here is the query.
    SELECT
    0
    ,ot_req_head.rh_sys_id
    ,ot_req_head.rh_comp_code
    ,ot_req_head.rh_txn_code
    ,ot_req_head.rh_no
    ,ot_req_head.rh_appr_uid
    ,'Action to be taken' action
    ,ot_req_head.rh_appr_dt
    ,NULL AUTH_TO_UID
    ,NULL
    ,NULL
    ,NULL from_remarks
    ,NULL
    ,NULL
    ,'REQ'
    ,ot_req_head.rh_amd_no
    ,ot_req_head.rh_amd_dt
    ,ot_req_head.rh_cr_uid
    ,DECODE(ot_req_head.rh_charge_area_num,6,ot_req_head.rh_locn_code,1,ot_req_head.rh_charge_code,NULL)
    ,ot_req_head.rh_cr_dt
    ,NULL
    FROM
    orioni.om_txn_setup,
    orioni.ot_req_head,
    iscoit.isco_txn_auth,
    SELECT DISTINCT rh_sys_id
    FROM orioni.pending_mr
    )pending_mr
    WHERE
    ot_req_head.rh_txn_code=txns_txn_code
    AND
    auth_comp_code(+)=ot_req_head.rh_comp_code
    AND
    auth_action_to_type(+) IS NULL
    AND
    auth_head_sys_id(+)=ot_req_head.rh_sys_id
    AND
    auth_txn_code(+)=ot_req_head.rh_txn_code
    AND
    ot_req_head.rh_clo_status IS NULL
    AND
    ot_req_head.rh_comp_code='001'
    AND
    txns_txnp_code='PURREQ'
    AND
    txns_values='N'
    AND
    ot_req_head.rh_appr_status=3
    AND
    ot_req_head.rh_sys_id = pending_mr.rh_sys_id
    AND NOT EXISTS
    SELECT 'X'
    FROM
    iscoit.isco_txn_auth A
    WHERE
    a.auth_head_sys_id = isco_txn_auth.auth_head_sys_id
    AND
    a.auth_action_from_uid = ot_req_head.rh_appr_uid
    AND
    a.auth_action_from_type = 'Action to be taken'
    AND
    a.auth_action_from_dt = ot_req_head.rh_appr_dt
    AND
    NVL(a.auth_txn_amend_no,0) = NVL(ot_req_head.rh_amd_no,0)
    AND
    a.auth_action_to_type = 'REJECT'
    AND
    ot_req_head.rh_cr_dt > TO_DATE('16-MAR-2008','DD-MON-YYYY')
    Edited by: unus on Oct 19, 2009 3:56 AM
    Edited by: unus on Oct 19, 2009 4:18 AM

    Here's what I got on 9i and 10G:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    SQL> CREATE TABLE T_1(VAL1 NUMBER,VAL2 VARCHAR2(10));
    Table created.
    SQL> CREATE TABLE T_2(VAL1 NUMBER,VAL2 VARCHAR2(10));
    Table created.
    SQL> INSERT INTO T_1 VALUES(1,'FIRST');
    1 row created.
    SQL> INSERT INTO T_1 VALUES(2,'SECOND');
    1 row created.
    SQL> INSERT INTO T_2 VALUES(1,'FIRST');
    1 row created.
    SQL> INSERT INTO T_2 VALUES(2,'SECOND');
    1 row created.
    SQL> INSERT INTO T_1 VALUES(3,'THIRD');
    1 row created.
    SQL> INSERT INTO T_1 VALUES(4,'FOURTH');
    1 row created.
    SQL> INSERT INTO T_1 VALUES(5,'FIFTH');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1;
         VAL1      VAL1
            1         1
            2         2
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1(+);
         VAL1      VAL1
            1         1
            2         2
            3
            4
            5
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1(+)
      4  AND
      5  NOT EXISTS (SELECT 'X' FROM t_2 C WHERE c.val1=b.val1);
         VAL1      VAL1
            3
            4
            5
    SQL> select name, value from v$parameter where name like '%optimizer%' or name like '%cursor_sharing
    NAME                                                             VALUE
    cursor_sharing                                                   EXACT
    optimizer_features_enable                                        9.2.0
    optimizer_mode                                                   CHOOSE
    optimizer_max_permutations                                       2000
    optimizer_index_cost_adj                                         100
    optimizer_index_caching                                          0
    optimizer_dynamic_sampling                                       1
    -- 10G
    Verbonden met:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1;
          VAL1       VAL1
             1          1
             2          2
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1(+);
          VAL1       VAL1
             1          1
             2          2
             5
             4
             3
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1(+)
      4  AND
      5  NOT EXISTS (SELECT 'X' FROM t_2 C WHERE c.val1=b.val1);
          VAL1       VAL1
             3
             4
             5( Please use the tag before and after your example, so we're sure we're looking at your complete example )                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Select statement returns different results from 9i and 10g

    Hi all,
    Would appreciate if someone could help to solve this puzzle here:
    I have the exact the statements running on Oracle 9i and 10g, why do they return different results?
    Select unique(GroupDesc) , GroupSeq from Module where ModuleId in (Select ModuleId from User_Access where UserId='admin') and Status='A'
    In Oracle 9i:
    Both columns returned as follows...
    GroupDesc | GroupSeq
    In Oracle 10g:
    Only one column returned, the column with unique keyword was missing...
    GroupSeq
    Could anyone enlighten me?

    yes, the table structure... actually the CREATE TABLE statement...
    with some sample data (INSERT INTO)
    and the actual queries (both of them - copy-paste them from each separate environment)
    you can use tags around the statements this will format it to a fixed font - making it easier to read
    Edited by: Alex Nuijten on Feb 20, 2009 10:05 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Query Version worksheet and Exportable Version worksheet

    Hi,
    can somebody tell me whats the difference between Query Version worksheet and Exportable Version worksheet in Discoverer Desktop??
    And how can i create a query version worksheet?
    Thanks in advance.
    --Kumar                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Kumar,
    Exportable version worksheet is something whose data can be exported( for example to excel sheet).
    This query version worksheet is something which basically lumps like info together.
    Jim

Maybe you are looking for

  • External hard drive will not initialize

    I am running windows 7 32 bit and have a 80gb external hard drive.  When I connect the hard drive it shows up with all the correct drivers and and under the Disk management console it comes up but will not initialize.  The Initialize disk wizard come

  • How to uninstall BPC 7.5 on Windows Server 2008 R2

    Hello Everyone I have to uninstall BPC 7.5 and then perform a re installation as the Domain Name was wrongly specified in previous installation. We already have a BW server installed and on top of it the BPC 7.5 Installation was carried out. O.S: Win

  • Inserting a row in a schema-based xml type column

    i have problems while inserting a row in a schema-based xml type column it reports an error(schema and elemnt do not match) although they are matching if anyone can try it and if it worked plz send me the example

  • Error Message when trying to sign into account

    So I just got some itunes giftcards for xmas and when I go onto the itunes store and try to log into my account and message comes up that has a red "x" and it says "We could not complete your itunes store request. An unknown error has occured(-9812).

  • Event handling and jeditor

    HI, I am having a problem and tied down just because of this. I have an action listener code that is executed when button is clicked, and here what i do in that JeditorPane.setPage(URL url) callToMethod2(); Method2 some calculation and when i check t