Problem with different resultset with same data and same query in Oracle 8.1.7 and 9i

Hello,
I have been using this query in oracle 8.1.7
SELECT
ID,
AREA_NO
FROM MANAGER_AREA MGR
WHERE COMPANY_ID = :id AND
(:value < (SELECT COUNT(ROWID)
FROM MANAGER_WORK MW
WHERE MW.AREA_ID = MGR.ID AND
(MW.END_WORK IS NULL OR MW.END_WORK >= SYSDATE)))
order by AREA_NO;
In the above query I want to see rows from MANAGER_AREA table depending upon date criteria in the table MANAGER_WORK and also upon the parameter :value i.e if I pass a value as 0 I get to see records for which their is atleast 1 record in MANAGER_WORK with the date criteria and if I pass -1 then I get all the records because minimum value that count(*) would give is 0. The resultset was as expected in 8.1.7.
A couple of days back I installed PERSONAL 9i to test for testing the basic functionality of our program with the same data. This query fails and irrespective whether I pass -1 or 0 it returns me same dataset which I would have got in case if I pass 0.
I do not know whether this is a bug that has got introduced in 9i. Can anybody help me with this problem. It would be difficult for me to change the parameter send to this query as the Query is called from many different places.
Thanks in advance
Amol.

I cannot use a Group by and a having statement over here. The problem with 'Group by' and 'having' clause is If I have to make a join between the two tables. When I use join then I get only rows that are linked to each other in the table.
If I use outer join to solve that problem then I have to take in consideration the other date condition. My previous query use to virtually discard the corelated query result by using -1 as the value. This will not happen in the join query.
Amol.

Similar Messages

  • How to download the same song(track) with different keys? iTunes seems to think I have already downloaded the song and will not download the song in a different key of the Demo Track

    How to download the same song(track) with different keys? iTunes seems to think I have already dowloaded the song and will not let me download the song in a different key or the Demo.

    Hello Jigz19,
    It sounds like you are unable to play a couple of songs from your library becuase you get a message that the computer is unauthorized to play, but other content purchased that same day works without issue. I would verify that the affected songs were purchased with the same Apple ID first:
    Recovering a forgotten iTunes Store account name
    http://support.apple.com/kb/ht1920
    Open iTunes
    Highlight one of the items you have purchased (You can find your purchases in your Purchases playlist).
    Choose File > Get Info.
    Click the Summary tab.
    The Account Name area will list the account used to purchase the item. Unless you have changed accounts, this is your iTunes Store account name.
    If so, then delete the songs:
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    Then re download them with this article:
    Download past purchases
    http://support.apple.com/kb/ht2519
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • What is the best way to deal with different audio sample rates on the same timeline ?

    what is the best way to deal with different audio sample rates on the same timeline ?

    You don't have to do anything special. If possible, start your project with a clip that has the desired target frame rate and audio sample rate, and your project parameters will be set automatically. Other sample rates will be converted under the covers.
    For example, if your video is shot at 48khz, you can add music files at 44.1khz with no problem.
    If you are recording audio that you want to synch with video (multicam), you will get best results if everything is 48khz, but you can use 44.1 if that is all you have. Once I forgot to reset my Zoom to 48,000 and it still worked.

  • Iphone and ipad are with different carriers, can i use the same apple id on both?

    Hi all,
    I am having some difficulties with setting up my new ipad, i have a different telecommunications carrier for my iphone to my ipad, however my appleID does not allow me to enter another mobile number for my ipad.   When i set up the ipad to my appleID, it automatically registered my iphone # as my contact for messaging.   Is there any way to change the messaging number for the iPad yet still use the same appleID?

    Yes. I use the same Apple ID on four different iDevices. You can sync the contacts with iCloud or with your computer and have them on both devices. You can sync all of the apps as well. If the apps are not in iTunes on your computer - you can download them to the iPad with the same Apple ID. You can also restore the iPad from a backup of the phone to transfer your settings, app data and your contacts.
    iPhone only apps will be half size on the iPad screen but will still work as long - you can enlarge the size of the apps - but they will be pixelated on the screen.

  • Sending mail with different address with iPhone with account gmail

    Hi there! I'm a new customer of the big and amazing world Apple! I'm very excited but as you can imagine I have some problem to use my new iPhone. I have an e-mail address [email protected] and I have associated in gmail this addres with [email protected] I have put some parameters that allow me to send e-mail from gmail on the pc as if I send it from [email protected] Can I do the same when I send the mails from my iPhone? How can I configure this? For me this is a very big problem. I hope to solve. Thanks a lot! Have a good day! Max

    Read last paragraph:
    http://readwrite.com/2012/03/20/how_to_be_a_happy_gmail_user_on_iphone_or_ipad#a wesm=~oc85GgWROJ7MSp

  • Save/open document with different font with RTFEditor!

    Hello everyone !
    I am creating a RTF Editor with JTextPane, DefaultStyledDocument and RTFEditor,It is right if input English character with different Font such as Arial,Basemic etc .but with Non-English ,It is question!!when I input chinese in font "����GB_2312",and save it ,then I open it again ,font is changed to "��"��but font size,color ,and style is correct!I doubt it is RTFEditor does't support chinese font ,is it?how can I do?
    thanks a lot!

    That's because nobody has posted an answer. You can find the discussion at how do I save a document with different page orientations to one pdf? I think this is pretty much what happens on Mac, but you can combine the separate PDFs to one.

  • Runas with different user with password also in Batch File

    Hi,
    I need to run one application with different user credentials.
    I am using Runas command in batch.
    When running the task it's prompting for password.
    Here i want to run the application without any promptings.
    Can any body help me is there any batch script for running the program silently without any prompts.
    Thank You,
    Avis 

    Runas is typically not for windows forms but for console operations. 
    Try the forum of your program language.
    However, be aware that probably there will no answer for this given because Runas is mostly meant for malicious programs so code for that is not allowed to distribute using forums.
    Success
    Cor

  • Ipad and Iphone with different apple ID. Changed to same, but can't change the Ipad Icloud to match with the same @me account.  Help!

    When I got my Iphone, I couldn't remember the apple ID, so Best Buy created one.  Now my Ipad Icloud account has a different ID than my Iphone.  Can I change this so all the passwords match?  I was able to log in to the Ipad and change the Apple ID to match the Iphone but can't find a way to do same for Icloud on Ipad.
    thanks

    So are you trying to change your passwords?  Or change which account is logged into icloud?
    Here are the instructions for changing which account is logged into icloud.  Go to settings-icloud-delete account.  Then settings-icloud-sign in with the account you wish to use.

  • Can I have 2 iPhones with different Apple IDs link to the same Photo Stream?

    My husband and I use the same computer and Aperture program.  I set my iPhone up with the Photo Stream from Aperture with no problem but when he set his up, it didn't get the feed of pictures.  We have different apple ID's on our phones?  Can this be done?

    just to add another question to this, can i subscribe to a photo stream, like my mate's?
    i'm guessing no, and that htis wil be a future feature. 
    I've not found any referneces to this anywhere
    much appreciated

  • Problem saving files with different name with DFS installed

    I have a server that I have DFS installed and running on. This appears to work fine. There is one problem that I have encountered though:
    On a share I have a folder that is not inheriting rights from it parent object. This works fine with DFS. When I create a new word document and try to save it in this folder with a different name other than the default (doc1.doc) I get an error saying that the user doesn't have permission, but I can save it as the default name of doc1.doc. I can then re-name the file to what I want from windows explorer, open it up in word, work on it and save it again. Even with the new file name I can't do a save-as and save it as a different file.
    All the other folders under the share that inherit rights from the parent folder work.
    eg save-as in \\server\share\folder or below works
    save-as it in \\server\share\no_inheritance or below does not work
    Anyone have any ideas?

    Originally Posted by ndean
    I have a server that I have DFS installed and running on. This appears to work fine. There is one problem that I have encountered though:
    On a share I have a folder that is not inheriting rights from it parent object. This works fine with DFS. When I create a new word document and try to save it in this folder with a different name other than the default (doc1.doc) I get an error saying that the user doesn't have permission, but I can save it as the default name of doc1.doc. I can then re-name the file to what I want from windows explorer, open it up in word, work on it and save it again. Even with the new file name I can't do a save-as and save it as a different file.
    All the other folders under the share that inherit rights from the parent folder work.
    eg save-as in \\server\share\folder or below works
    save-as it in \\server\share\no_inheritance or below does not work
    Anyone have any ideas?
    I have the same problem... how did you solve it?
    Thanks!
    Andres, Blogger

  • HT5071 Can more then one person (with different Apple ID's) use the same iBookAuthor Program to Publish (house hold computer)?

    I want to publish my fathers books using iBooks Author.  I'm going to set him up with an Apple ID, but he does not have a computer and I will be publishing it from my personal computer.  I have my own Apple ID and wish to publish my own books using the same program on the same computer.  Will this be an issue? or will I be able to switch Apple ID's upon pushing it to pusblish? 

    I have a free books account and later applied for a paid books account.
    This required setting up a new Apple ID and not using the same email or passwords.
    So  they are two totally separate accounts - on my computer.
    That part is not a problem for you and your father.
    The other aspect is both will need to open an iTunes Connect account for each ID.
    I dont see delivery as a problem.
    The part I am not sure about in your case is iTunes - as I only have me as usuer on the computer its never been an issue, but there is a Family sharing option available.
    The previous post is the best starting point as you will both need separate accounts.

  • Can two iPhones with different iSO get synchronized via the same iTunes?

    Me and my wife have two iPhones 3S, sharing the same iTunes store account, which get usually synchronized via iTune 9.2. Now, I want to upgrade my iPhone to iSO4, while my wife is quite happy to momentarily stay with iSO 3.1.3. The question is will she be able to keep synchronizing her iPhone the old iSO3 way after me downloading (and installing) iSO4 on my iPhone? Need an advice before doing something foolish...

    If you don't want to update your wife's phone, don't update. The OS is NOT part of the itunes sync, other than some apps may only work properly under iOS 4 once developers start updating their apps. You should have no problems doing what you want.

  • How to run stand alone executables developed with different versions of LabView on the same system

    I am using LabVIEW 8.2 to develop a stand alone executable for a target system.  The target system already has a stand alone executable written by another vendor, using LabVIEW 7.1.  I installed the LV RunTime Engine for 8.2 which left the 7.1 engine intact (as it should).  The problem I am now having is that the drivers installed on the target system are incompatible with the NI-DMM vi's that I am using.  My concern is that if I replace the old drivers with the ones I am using on my development platform I may end up breaking the old software.  What would be an appropriate work around to ensure that the target system will be able to run both executables?  (FWIW the system will NOT be running both executables concurrently.)
    The target system is an embedded PXI card cage, running Windows XP, with a NI PXI-4070 DMM (among other instruments, however I have had not had this issue with the NI-DAQmx drivers).

    Hi Yerffejj,
    Thanks for sharing your issue with the community. I am struggling to see what you mean by "break the software." If you only have the two executables and LV Run-Time versions 8.2 & 7.1, then you just need to go to http://www.ni.com/support/ » Drivers and Updates » Search within Results: » enter "NI-DMM" » GO to get the DMM driver you need. To see the driver you were using on the development machine, just go to Measurement & Automation Explorer (MAX). The DMM driver should also automatically install DAQmx, NI-VISA, and NI-IVI, fyi.
    Best wishes to you, and please let us know if that does not solve your problem.
    Regards,
    Dan Richards
    Dan Richards
    Certified LabVIEW Developer

  • Problems using different scope with useBean

    Hi all,
    I've been trying over and over to place the data from my inputForm.jsp in request, session or even application scope and then try to retrieve the data from my process.jsp.
    I can't understand why not the request object (emp) is available in my second jsp file. I'm having the same problem using sessionScope and applicationScope.
    inputForm.jsp
    <jsp:userBean id="emp" class="Employee" scope="request">
    <jsp:setProperty name="emp" property="*" />
    </jsp:userBean>
    <form method="POST" action="process.jsp>
    <input type="text" name="firstName">
    <input type="text" name="lastName">
    </form>process.jsp
    <c ut value="${requestScope.emp.firstName}" />

    The useBean tag has to be on the page WHERE THE BEAN IS BEING used.
    The jsp:setProperty tag works from request parameters. So it has to be on the page that is RECEIVING the parameters - ie your second page.
    You misspelled jsp:useBean.
    Also your Employee bean must be in a package, and the useBean tag should use its fully qualified package name.
    I will presume that your Employee class has appropriate get/set methods for firstName and lastName - ie getFirstName() and setFirstName()...
    Try this:
    inputForm.jsp
    <form method="POST" action="process.jsp>
    <input type="text" name="firstName">
    <input type="text" name="lastName">
    </form>process.jsp
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <jsp:useBean id="emp" class="com.mypackage.Employee" scope="request">
      <jsp:setProperty name="emp" property="*" />
    </jsp:useBean>
    <c:out value="${requestScope.emp.firstName}" />

  • Since installing the new OS i am having troubles with different appliction icons showing up on my main page twice (upper left corner), and not allowng me to select certain ones (app store specifically).   Anyone else having this issue?

    Help - anyone else out there having trouble with the new OS system on their ipad 2?    I am not getting mutliple copies of several apps ont he main page.  They are "collecting: in a pike int he upper left corner and the original application icon is no lobger working.    I have tried a hard sync, and that didn't help.

    It should only be able to have one copy of an app on the iPad. Have you tried a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    Do all the apps work ? In the past a few people have taken a screen shot of their iPad screen and that has then become their background picture - so some of the 'app's may actually be on your wallpaper picture and not actual apps. Have you tried changing the wallpaper to see if that makes any difference ?

Maybe you are looking for