Problem with IN operator

I'm having a strange problem when using IN operator in a query. The following query works in one database which is 9i and does not work(not returning any rows) in another database which is 10g.
select * from <table>
where <column> IN
(select <column> from <view>
where <column> = <value>
Another thing is if I replace the view with a table the query returns results in 10g. If I replace IN operator with a '=' the query returns results.
The question is:
Am i missing any default setting in database level? Why the query did not return any rows when I use view? Any ideas?
Thanks in advance,

Hi,
I agree with Walter.
REgarfds salim.
SQL>  create view v_emp as select * from emp;
View created.
SQL> select * from v_emp;
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
      7369 SMITH      CLERK           7902 17-DEC-80        800                    20
      7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
      7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
      7566 JONES      MANAGER         7839 02-APR-81       2975                    20
      7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
      7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
      7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
      7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
      7839 KING       PRESIDENT            17-NOV-81       5000                    10
      7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
      7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
      7900 JAMES      CLERK           7698 03-DEC-81        950                    30
      7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
      7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
14 rows selected.
SQL>
SQL> select * from emp
  2  where empno in ( select empno from v_emp);
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
      7369 SMITH      CLERK           7902 17-DEC-80        800                    20
      7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
      7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
      7566 JONES      MANAGER         7839 02-APR-81       2975                    20
      7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
      7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
      7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
      7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
      7839 KING       PRESIDENT            17-NOV-81       5000                    10
      7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
      7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
      7900 JAMES      CLERK           7698 03-DEC-81        950                    30
      7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
      7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
14 rows selected.
SQL>

Similar Messages

  • Problems with Sequence Operator in OWB

    Hi everybody,
    i want to use a sequence in my mapping. Now i have two problems.
    The first problem is the following. When i want to import my sequence (exists on my DB) i can select the sequence in the Selection Window, but when i click on Import i didn't see it in the Design Center, also there is no window which tells me that i have successfully imported the sequence.
    The second problem is, when i drag the Sequence Operator into my Mapping i shows the Selection Window where i have to select the poject and object to bind the operator. But i can't select any object.
    Can anyone help me with my problems and tell me how i can use a Sequence and the Sequence Operator in my Mapping
    Many thanks in advance.
    Greetings

    Hi everyone!
    I'm having a repeated problem with sequences in OWB: I'm filling a TIME table with 1096 rows. Now matter how and when I create the sequence it always starts with 2 instead of 1. Moreover, the last value of the sequence is 1101, when it was supposed to be 1097 or 1098....
    I did achieve the right ouput sometimes, but I must be doing something wrong. Here are the several ways I've tried in OWB:
    1) I've created all the sequences by sql code, in SQL DEVELOPER or PLUS*, and then imported to OWB. Because of being imported, I didn't have to deploy each sequence. Then, I've connected (by drag and drop to the canvas mapping) the sequence I wanted with NEXTVAL (as I always do) attached do TIME_ID of table TIME;
    2) I've dropped and created, several times(as before), the sequences and never had problems..until now. I've also experimented creating, by scratch, the sequences just in OWB and then deploy them in Control Center. After this, deployed the mapping and executed, just like in 1).
    So, the difference lies on how I create the sequences and what are the correct steps to create, deploy (if needed), deploy the map and execute the map.
    This is insain and I really need this to work. I've tried so many ways....
    Could someone PLEASE help me with this? Any thoughts?

  • Problem with the operator less than or equal to in a weby query

    Hi all.
    The universe is a OLAP Universe
    When i created a query in webi and put the month in the filter area with the operator less than or equal to like this.
    Month (less than or equal to) 2010.01 for example. The all result brings also the all values like 2010.02, 2010.03, etc
    What is the problem and how can fix that ?
    Thanks

    Looks like you are using a less than or equal to with a Sting data type.
    I think you should change to your filter to Year <= 2010 And Month <= 1. Hope you have a month and year object in you BeX.
    Anil

  • Problem With mac Operating system

    ok, had a problem with a piece of software and was told to try and "downgrade" my OS. so i started an installer that was an installer to a previous system. i was on 4.8 and was trying to go to 3.4 i think. I got half way thru and it said start the installer again. restarted. instead of the apple logo coming up a round cross comes up. i connected to my comp thru another comp using the firewire but my user folder is empty. anyways i can find anything in the users folder and fix this problem? cheers

    Who told you to downgrade your OS X version and was this due to the software not being compatible with your OS X version which was 10.4.8?
    What software?
    Your computer detail provided indicates you have an Intel Mac and if so, you certainly cannot downgrade to 10.3 - any 10.3.x version. All Intel Macs have shipped with Tiger (10.4.x) pre-installed and there are no OS X versions prior to 10.4.x that is compatible with an Intel Mac and even if so, you cannot install an earlier or previous OS X version on a Mac that shipped with a later version.
    Unless you meant 10.4.3 which is the version that was pre-installed on your Intel Mac and the version included with the OS X install package that shipped with your Mac when new.
    Did this person who told you to downgrade your OS also tell you to be sure to create a backup or update your existing backup before doing so?
    Did you choose Archive & Install with an option to preserve user and network settings?
    If not and you choose Erase & Install, then your hard drive was completely erased first.

  • Problem with zip operating system command

    Hello,
    i have the following configuration in the file receiver adapter:
    Directory: /tmp/
    File Name Scheme: %name%.txt
    Variable substitution:
    Variable Name: name                 Reference: payload: record,1,name,1
    Run Operating system command:
    /usr/bin/zip /tmp/%f.zip %F
    The execution is succesful, but i have a small problem. The file name is "file.txt.zip", the .txt should appear but i dont know how to skip it, I have tried so many ways but it doesnt work, I should receive a file called "file.zip" With a file inside in txt format...
    Thanks,
    Luis

    Hi Sriram,
    Thanks, but that wouldnt work out, Im using the %f for my file name, so this move command shouldnt work for me, because my filename changes in every execution, so I cant write something like this: mv file.txt.zip file.zip
    The only solution I see would would be a command which deals with strings and that could remove the four last characters of "%f"..but I havent found anything for doing it.
    Regards,
    Luis

  • Problem with pending operations after migrating to gw2014

    Hi there, this saturday we have migrated to gw2014 from gw2014. We are in a cluster environment.
    We only have one primary domain with one post office, all users are in this post office.
    We have several secondary domains for gwia/webaccess only.
    Mail flow is ok. Mails are coming in and coming out, but administrative message between domains
    are not flowing. For example: if I add a new account in the post office, I cant see this new account
    in secondary. Also, for creating new domains, etc. I dont know whats happening, all mta's are open
    in mta console from the primary. This is a very critical issue for me...
    Where I can debug this pending operations ? How can I know whats happening ? I dont know if I have
    a network issue / problem or its something related to GW system...
    please help!
    Antonio

    Something like that happened to me also. It turned out that the gw install did not copyed the dc files to the mta, poa directory. After copying the dc files manually, admin messages started to flow again.

  • Problem with define operation

    I have wsdl file (simple part of it here)
    <message name="otnAsyncServiceRequestMessage">
    <part name="peiSessionID" type="xsd:string">
    </message>
    <message name="otnAsyncServiceResultMessage">
    <part name="payload" type="xsd:string"/>
    </message>
    <portType name="otnAsyncService">
    <operation name="initiate">
    <input message="tns:otnAsyncServiceRequestMessage"/>
    </operation>
    </portType>
    And my process call async thi service using otn_jaxrpc.jar
    Here simple code from bpel file
    <assign name="assign-1">
    <copy>
    <from expression="ora:getConversationId()">
    </from>
    <to variable="otnAsyncServiceReq" part="peiSessionID"/>
    </copy>
    </assign>
    <invoke name="invokeOTNAsyncService" partnerLink="otn" portType="er2004:otnAsyncService" operation="initiate" inputVariable="otnAsyncServiceReq"/>
    <receive createInstance="no" name="receiveFromOTNCallBack" partnerLink="otn" portType="er2004:otnAsyncServiceCallback" operation="onResult" variable="otnAsyncServiceRes"/>
    .... i look at result throw tcpmon
    and soap envelope look like this
    </soapenv:Header>
    <soapenv:Body><peiSessionID xmlns="http://er2004.ifirst.ru"/></soapenv:Body>
    </soapenv:Envelope>
    But i have no peiSessionID operation in wsdl!
    And my service not define any operation with that name?!
    what's a problem!
    Help please!!!

    First, check if you have any calendar notes or appointments that you entered without a subject. Delete that note and try to sync.
    I hope this helps!
    Post relates to: Tungsten E2

  • Problem with creating Operation with the BAPI_ROUTING_CREATE

    I try to create a routing with operations attached to the default sequence with the BAPI_ROUTING_CREATE, via an external rfc-program.
    I have no problems to transfer the Task Header und the MaterialTaskAllocation, but the transfer of the operation allways fails, without an error message. The system creates the Routing without any operation.
    Are there some additional fields needed for the tranfer of an operation, in the online documentation there is only
    the field OPERATION_ID defined as needed.
    Thank's for any help
    Jörg Sloksnaitis

    I'll share my code snippet since I got this kind of working this morning. The following code with hard-coded values works and is a fairly simple and straightforward Routing. This may be something you can build on.
    Task List Header
      w_bapi1012_tsk_c-VALID_FROM = sy-datum.
      w_bapi1012_tsk_c-VALID_TO_DATE = '99991231'.
      w_bapi1012_tsk_c-PLANT =  zzplant.
      w_bapi1012_tsk_c-LOT_SIZE_FROM = '1'.
      w_bapi1012_tsk_c-LOT_SIZE_TO = '99999999'.
      w_bapi1012_tsk_c-TASK_MEASURE_UNIT = 'EA'.
      w_bapi1012_tsk_c-TASK_LIST_STATUS = '4'.
      w_bapi1012_tsk_c-TASK_LIST_USAGE = '1'.
      append w_bapi1012_tsk_c to t_bapi1012_tsk_c.
    Material Fields
      w_bapi1012_MTK_C-material = zzmaterial.
      w_bapi1012_mtk_c-plant    = zzplant.
      w_bapi1012_mtk_c-VALID_FROM = sy-datum.
    w_bapi1012_mtk_c-VALID_TO_DATE = '99991231'.
      append w_bapi1012_mtk_c to t_bapi1012_mtk_c.
    Operation
      w_bapi1012_opr_c-ACTIVITY = '9000'.
      w_bapi1012_opr_c-CONTROL_KEY = 'RP02'.
      w_bapi1012_opr_c-WORK_CNTR = ' '.
      w_bapi1012_opr_c-PLANT = zzplant.
      w_bapi1012_opr_c-DESCRIPTION  = 'Test Operation'.
      w_bapi1012_opr_c-BASE_QUANTITY = '1'.
      w_bapi1012_opr_c-OPERATION_MEASURE_UNIT = 'EA'.
      w_bapi1012_opr_c-VALID_FROM = sy-datum.
      w_bapi1012_opr_c-VALID_TO_DATE = '99991231'.
      w_bapi1012_opr_c-DENOMINATOR = '1'.
      w_bapi1012_opr_c-NOMINATOR = '1'.
      append w_bapi1012_opr_c to t_bapi1012_opr_c.
    Thanks,
    Tim Stadler
    Menasha Corporation

  • Satellite A100 - problem with battery operation

    Hi!
    My notebook (I bought it 1.5 years ago) has a big problem when operating with battery.
    First of all, with a fully charged battery, the notification for "limited battery status" pops up after 2 minutes of operation and after 5 minutes it goes to stand-by mode due to very low battery level.
    Then, I plug it on the AC power and the LED for the battery remains yellow for about 15 minutes and then turns blue.
    (The battery is OK, I have tested it on another Sat A100)
    What can be the problem???
    Thanks in advance!
    Maria

    Since You Have tested the battery in another Sat A100 the problem must be in your computer settings:
    1>> START >> CONTROL PANEL>> SELECT POWER OPTIONS ICON
    2>> You will now see a screen wich displays your power plans and note *one of them* has a tick i.e a small dot in a circle:
    3>> BALANCED > POWER SAVER> HIGH PERFORMANCE
    4>> UNDER THIS POWER PLAN > CLICK CHANGE PLAN SETTINGS> A SCREEN WILL BE DISPLAYED SHOWING YOUR PLAN!
    5>> PROCEED TO >> *CLICK* WHERE IT SAYS CHANGE ADVANCED POWER SETTINGS
    6>> IF YOU SCROLL THE BAR TO THE *+ SIGN >> BATTERY* CLICK THE *+ SIGN
    7>> YOU SHOULD HAVE : You will have to have play with these settings or you could click restore plan defaults to see if this will solve your problem
    Note clicking the *+ SIGN next to tany of these options below will allow you to change what event takes place on your computer.
    + CRITICAL BATTERY ACTION
    + LOW BATTERY LEVEL
    + CRITICAL BATTERY LEVEL
    + LOW BATTERY NOTIFICATION
    + LOW BATTERY ACTION

  • Problem with crude operations in master detail tables

    Hi,
    I have Master-Detail tables in my page and crud operations are there for both the tables. Create/delete/edit are working fine on the master table but i am facing the following problems for the detail table
    1.delete operation is alway referring to the 1st record.
    2.Edit operation is working fine for the 1st time but when i amt trying to edit any other record it's refer to the previous record, if i did the same again then it's pointing to current record.
    Selected row keys and selectionListner and row selection is defined on my detail table as shown below.
    selectedRowKeys="#{bindings.CmSubscriberTerritoryXrefView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.CmSubscriberTerritoryXrefView1.collectionModel.makeCurrent}"
    rowSelection="single"
    Please do need full.

    Hi,
    Thanks for your quick reply.
    I am using JDeveloper 11g. Yes i select the record, i am using a popup for delete operation so i write a button which invoke popup in that popup i am asking confirmation like do you wanted to delete for not. in the OK button i have return logic like
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Delete2");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    operationBinding = bindings.getOperationBinding("Commit");
    result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    FacesContext fc = FacesContext.getCurrentInstance();

  • JAR file problem with windows operating system rare

    hi,
    I have an application created with Eclipse 3.2, which also have a plugin that helps me to create jar files, migrate days ago all my application and my data base to a notebook that has a very rare operating system is Windows Vista, but is a version very rare and never seen, called oneAngel Illusion, and I think that that is not capable of running the JAR correctly, that when you double click or enter to JAR nothing happens, and I prove it on a machine that has XP and functioning properly.
    I hope I can help with this!

    pg_shadow wrote:
    hi,
    I have an application created with Eclipse 3.2, which also have a plugin that helps me to create jar files, migrate days ago all my application and my data base to a notebook that has a very rare operating system is Windows Vista, but is a version very rare and never seen, called oneAngel Illusion, and I think that that is not capable of running the JAR correctly, that when you double click or enter to JAR nothing happens, and I prove it on a machine that has XP and functioning properly.
    I hope I can help with this!You should know, if you don't already, that your 'super rare' version of Windows Vista, sounds like one of numerous, illegal, cracked and knocked-off versions of Vista that have been floating about. Things like Windows Vista Silver and Windows Vista Sky are not only completely illegal reproductions of pirated copies of Vista but they often have terrible bugs and security deficiencies that can sacrifice the integrity of your data. Honestly, if you're already shooting yourself in the foot with this bootlegged operating system, just get Linux, it's just like stealing but without the unsavory prison shower encounters.

  • Problem with 2nd operating system

    Hello,
    I have a near new probook.
    When purchased,  I upgraded the hard drive.
    I still have the original hd with win7 pro installed on it.
    My problem is,  when I put the original hd into the probook it starts etc but, everything is magnifed and pixelated.
    I hope you understand what I mean. I can probably upload a screenshot if needed.
    Can anyone offer me some advice?
    Kind regards.

    stevohp wrote:
    Hello,
    I have a near new probook.
    When purchased,  I upgraded the hard drive.
    I still have the original hd with win7 pro installed on it.
    My problem is,  when I put the original hd into the probook it starts etc but, everything is magnifed and pixelated.
    I hope you understand what I mean. I can probably upload a screenshot if needed.
    Can anyone offer me some advice?
    Kind regards.
    That sounds more like a video problem then a hard drive problem....
    I am a Volunteer to help others on here-not a HP employee.
    Replies aren't online 24/7 because of Time Zone differences.
    Remember in this Day and Age of Computing the Internet is Knowledge at your fingertips if you choose understand it. -2015-

  • BP Selection by Role- Problem with relation operator

    Hai Experts,
    I am using  sandbox system. I am trying to search Business Partner by role, when I give the role as BUP002(Prospect) and enter, the system is throwing a message that "BP Role BUP00 does not exist" and i have checked the relation operator which will be available next to the BP Role(when we input the role as BUP002), the relation has been set it as " Role=BUP00" , because we do not have any role with BUP00,hence the system is throwing that message. Now i need your help where do we set that relation may be in configuration or customization.Kindly provide me the exact path and way to do it.
    Thanks and Regards,
    Teja

    Hi Teja,
    Please check the SPRO settings, just follow the path below
    SPRO->Click SAP Reference IMG->Customer Relationship Management->Master data->Business Partner-> Basic settings->Assign template for content managment folder to BP roles,
    Just check it, here there is a view that u need to maintain.
    Just check it I am not so sure about, as I dont have a local system in which I can try it. So check it and let me know if it is working fine.
    Have a grat day ahead.
    Thanks and Regards,
    Antony Thomas

  • Problem with illegal operation 'Q'

    I created a form in LiveCycle environment. But when printing, it popped up an information box which says "Illegal operation 'Q' inside a text object.". Even though this message didn't affect the printing, nobody like it. What is illegal operation 'Q' and why popped up such a message? Can any body help me?

    Hi
    I am getting same error for  PDF file. If you got the solution to this problem. could you post it.
    thanks
    Anand

  • Problem with Between operator in condition

    Hi
    I am using Discoverer Desktop 11g.
    In my report, I have 2 parameters for start-date and end-date. I want the report to display records which have an order date that falls within the period indicated by start-date and end-date.
    E.g. if I run report and enter 01-mar-2013 as start-date and 20-mar-2013 as end-date, I would like to see all records with order dates between these 2 dates but the problem is that the report leaves out some records with order date of 20-mar-2013. It only displays a few records with 20-mar-2013 and leaves out some (i.e. report doesn't display all records with order date that is equal to the value of the end-date parameter), how can I make all records to be displayed?
    Please help. Thanks.

    It sounds like you may need to change your condition to look at trunc(orderdate) rather than just orderdate. Those order dates that are being excluded probably have a time portion (so order date 20-mar-2013 10:00 am is after end-date 20-mar-2013 00:00 am).
    You can temporarily change the date format on your report to a format that includes the time, and run with 21-mar-2013 as your end-date, to confirm whether that's the issue.

Maybe you are looking for