Rownum giving the Incorrect result in 11 GR 2, but works well in 10 gr 2

Hi all

We have following query that works well in 10g but in 11g is showing incorrect result.

Select x.*, rownum from (select rat.rating_agency_id rat bus_ca_cpty_rating, STD MST_CP_RATING
where rat.org_id = 618
and
rat.rating_agency_id = MST.rating_agency_id
and
rat.rating_value = MST.rating_value
and
rat.heritage_system = MST.heritage_system
rat.rating_date order, rat.rating_time) x
where rownum = 1;


Result without the last control < where rownum = 1 > in the request (for 10g and 11g)
RATING_AGENCY_ID ROWNUM
1 of 3
1 2

Result of the query in 11 GR 2 (11.2.0.3)
RATING_AGENCY_ID ROWNUM
1 1

Result of the query in 10 gr 2 (10.2.0.3)
RATING_AGENCY_ID ROWNUM
1 of 3

Ask for your help to solve the problem (please tell me the name of bug if it's a bug) and please let me know how the request for 11g is treated.

Published by: 906061 on June 19, 2012 02:22

What's rat.rating_date, rat.rating_time for these lines.

Are - this same...
If they are same oracle does not guarantee which line will be the first to find the rownum = 1, unless you specify another attribute in the order by clause.

Tags: Database

Similar Questions

  • I use iMessage to the text of my Macbook. For some reason, it will not let me send a text message to a particular group (everyone has iMessage/iPhones) to my computer, but works well on my iPhone. All messages always appear on my Macbook iMessa

    I use iMessage to the text of my Macbook. For some reason, it will not let me send a text message to a particular group (everyone has iMessage/iPhones) to my computer, but works well on my iPhone. All messages always appear on my Macbook iMessage, but when I click in the conversation, no text box for me to write as he does with everyone. It's driving me crazy. How should I do? The two contacts are in my address book and identified on my computer but I can't their message from my computer and have to keep spending on my phone to text their return. Their new messages are always also highlighted on my computer. In the photo I've included, you can see there is no text box for the text of the group with "Franny, dad."

    Thanks for any help!

    What happens if you start a new conversation with Franny & Dad from the IOW computer do not try to "catch" the conversation

    Click on new message and put their names in there

    If this does not work - remove the wire from the Mac and try again

  • The speaker volume in the computer sound control mixer is up and works well with the speakers, but with headphones, I can hardly hear.

    Original title: the headphone volume

    How can I activate the volume for headphones? the speaker volume in the computer sound control mixer is up and works well with the speakers, but with the headdphones that I can barely hear

    Hello
     
    1. who is the operating system installed on the computer?
    2. What is the brand and model of headphones?
    3A this works much earlier?
    4. What is the brand and model of the sound card?
    5. have you ever tried to play the Audio using different media player applications and check?
    6. have you tried to connect the headset to another computer or phone and check if it works well?
     
    I suggest you follow these methods and check.
    Method 1: Run the audio troubleshooter.
     
    Method 2: Set the earpiece/microphone as default device and check.
     
    a. right click on the volume icon in the system tray at the right corner on the desktop.
    b. Select the playback device, go to torecording tab.
    c. make a right click and headphone/microphone as the default device.
    d. click on apply and ok.
     
    If above steps fails, proceed to method 3.
     
    Method 3: I suggest to disable the improvements and check.
     
    a. right-click on the icon "speaker" at the bottom right of the screen.
    b. Select "playback devices".
    c. right-click on the helmet.
    d. Select Properties
    e. click improvements
    f. check Disable all improvements
    g. click OK
     
    You can read this article for more information:
     
    Tips for solving common audio problems

    You can also contact the manufacturer of headphones and check.
     
    I hope this helps!
  • laptop stops shortly after the start, but works well in safe mode / command after chkdk or ckdsk/r

    Problem 1: There are months, my two year old Toshiba Satellite L655 s5096 started losing charge the battery even when it is plugged.
    Sometimes, the problem was solved by using a different wall outlet. I replaced the battery, but eventually the problem comes back.

    Problem 2: at the same time that the problems loading starts, Windows has stopped booting normally. Sometimes repair or restoration leads to a normal start, but sometimes I run Chkdsk/r (Chkdsk sometimes the only works [!]) Mode through safe mode w/Command Prompt.

    Problem 3: There are two days of problems 1 and 2 reappeared, but a few minutes after that Windows starts, my machine stops, even if I am able to run Wndows in Mode safe mode w/network.

    I am correct in surmising that this isn't a motherboard (hardware) problem? I don't really want to have to replace this machine if I don't have to. Is this a Windows problem? Upgrade to Windows 8 would solve the problem? Or is it the result of the virus that escaped my Avast scans?

    I'll install Windows 8 when I checked my automatic online data storage works.

    Hi Denise,

    Thanks for posting your question in the Microsoft Community forum.

    I understand that the computer shuts down shortly after starting. I'll help you with this problem.

    1. what security software is installed?

    2. are you sure the workload problem is not limited to a faulty wall unit?

    3. have you checked with the manufacturer of the computer if it is not a battery problem?

    To resolve this issue, let us try these methods:

    Method 1.

    You can create a new power plan and check if that helps.

    Power plans: frequently asked questions: http://windows.microsoft.com/en-ca/windows7/power-plans-frequently-asked-questions

    Method 2.

    Keep the battery power: http://windows.microsoft.com/en-ca/windows7/conserving-battery-power

    Method 3.

    You can remove the battery and connect the power cable from the wall cabinet and check. If the computer does not stop after the restart, then it might be a problem with the battery.

    For any question related to Windows, please do not hesitate to contact us and we will be happy to help you.

  • Firefox starts slow, but works well in safe mode with all the running addons - why?

    Then... all of a sudden my Firefox (v. 38.0.1) is really laggy, with slow-to-respond buttons, scrolling etc. So I manually disable all addons, but nothing helped. Then I try safe mode and it works very well. Large. So I turn on my addons again one by one, until they are all allowed and it still works fine. My conclusion: it isn't the addons. What is what is the cause? I have updated all my addons and just Silverlight, Flash, Google updater, Shockwave and some others.
    One solution would be for this mode - Safe with addons running - being my default start mode, but I can't work out how to do it. Is no huge problem because I can make Firefox work perfectly, but it's a little bit of your time.
    Any ideas?

    Hi RufusWalker, please see if Firefox is slow after upgrading to Firefox 38 covers and solves your problem.

  • Application failed (MFC) in the release through the optimization of the compiler, but works well in the debug version

    I am facing problem with the Release version. Application works fine in the Debug version, but in the Release version a pointer initialized to contain the object of another class becomes allocation to different addresses, causing corruption to its values.

    My main application class is K32App
    code in K32App.h file
    CSheetPrintManager* m_pSheetPrintManager;
    CSheetPrintManager* GetSheetPrintManager() { return m_pSheetPrintManager; }
    
    In file K32App.cpp
    K32App::K32App()
    {
      m_pSheetPrintManager= NULL;
    }
    BOOL K32App::InitInstance()
    {
      if(!m_pSheetPrintManager)
        m_pSheetPrintManager= new CSheetPrintManager();
    }
    K32App::~K32App()
    {
      if(m_pSheetPrintManager)
        delete(m_pSheetPrintManager)
    }
    
     In my file  CSheetPrintManager.cpp
     void CSheetPrintManager::CSheetPrintManager()
     {
       //Initialized all member variables to default values.
       Init();
    
     }
     void CSheetPrintManager::Init()
     {
       m_nSheetType = SheetIllegalNone;  //long
       m_sBankEntry.Empty();         //CString
       m_bHistorical = FALSE;        //BOOL
       m_bDebitDetailsSet = FALSE;  //BOOL
       m_mapRequested.RemoveAll(); // Type CMap
     }
    

    During the startup of the application, when it reaches

      if(!m_pSheetPrintManager)
        CSheetPrintManager= new CSheetPrintManager();
    

    and trying to create a m_pSheetPrintManager object, a 'this' inside the CSheetPrintManager.cpp pointer shows a valid address (0x03768ce0) at the stop just to brace {, once I more in CSheetPrintManager.Init (), not 'this' gets different location and starting point to a different address (0 x 0000000) and then passing more its starting pointing to an another rental (0x03786ce0)} ", then arriving to m_mapRequested.RemoveAll(); 'this' points to some other location. back to main application C32App.cpp file I get next to 'm_pSheetPrintManager' error CXX0030 ' expression cannot be evaluated" in the window of the car. and application continues to run. See what get when move mouse m_pSheetPrintManager (can't post the image because need 10 reputation for him :) so antisocial)Auto window studio screenshot 

    In debug mode, I get m_pSheetPrintManager pointing to the same location during all the processing of the application and members are always correctly initialized.

    But in Release mode, m_pSheetPrintManager continues to point to the different location (address in the window of Auto value). and all the class member variables CSheetPrintManager garbage (Uninitialized) values with each line of treatment within the CSheetPrintManager class.

    If I disable the optimization of the c++ in Release Mode then it works very well without any problems.

    Any help/advice/suggestion is the most popular. Thanks in advance.

    PS: This is my first question here so please excuse if you lack something to point or express properly.

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • App hangs on the device, but works well on Simulator

    Hello! Last week I had an approved app and it is already in place in the BlackBerry App World. Before being approved, he rejected once, the e-mail message noted that "when testing your app on BlackBerry Z10, I found that he was unable to throw."

    I replied stating that the app has worked very well in the Simulator and asked some tips to solve the problem. It seems that the application got reparsed as overnight has been approved.

    Today, I had the chance to test my application on a real device and I found it crashed right after the launch.

    I don't know what could be wrong with my application. I'm guessing that the reason of this problem could be something similar to this thread; but I think I'm not directly joking with the camera in my code, everything is built on Air.

    Could you point me in the right direction please?

    Thank you in advance!

    What version of the OS is the device running?

    AIR 3.5 is not supported up to 10.2, which is not available to consumers right now better I know.

    If the camera is turned on between 10.0 and 10.1, check that your application - app.xml file appeals to AIR 3.1 namespace and not the AIR 3.5 namespace.

  • Problem downloading the pictures the seller to Picasa using Windows 7, XP works well.

    Can not download pictures from Picasa to the seller, had no problem with XP.

    'Seller '?

  • Buttons not working not in the rendering of the folio iPhone6, but works well in 'folio' iPad

    We have a 2048x1536px existing iPad folio with a simple slideshow on each page with an arrow to the left and to the right of each page.

    The left button has an action 'go to previous state' and the right button has an action "to go to the next State.

    We have created a different layout for iPhone6 1334x750px and used the liquid scale layout.

    The buttons work fine on the iPad version, but on the iPhone6 version, some of the buttons on the right do not work.

    We use the Adobe Content Viewer to display the sheets on iPad and iPhone6 devices.


    Maybe it's just a bug with content viewer Adobe showing folios with buttons?


    He also seems to be intermittent as sometimes if you close the content viewer and open again, sometimes some of the buttons started working again.

    We will build our own custom Viewer soon which will replace the content viewer and I really hope that bugs/problems like this will not present in the new Viewer.
    I understand, that it should be more stable than the content viewer.


    Please can someone advise?

    Note that there is no difference between Adobe Content Viewer and your custom application. If you encounter a problem of content in LCA, it will appear in the viewer of content as well.

    Since you using replacement page and liquid layouts, it is very likely that the buttons, even if they still have the actions on them, are not pointing to the object of several State law. I suggest is removing the actions on the buttons and recreate them so they point to the rule of law.

    Neil

  • XML does not load on the server, but works well on site!

    Hello

    I am facing a problem that really confused me! I have a video player that grabs an XML playlist. If the path is relative to the XML, it is very good and works but when enter an absolute path (which is located in another area) it does not work! Here it is:
    http://emstris.com/sample/doftelie/NewPath.html

    The strange thing is that it works very well when I test the movie locally in my flash!

    Have you had to face such a problem? Can you help me please?

    Kind regards
    Hadi

    Flash hit F1 and search for crossdomain.xml

  • JSON to the sql result set

    Hi all

    I have this requirement to convert the JSON format in the result set (with the lines and columns).

    is their in any case I can achieve this?

    I was able to successfully convert the sql result set in JSON format but difficult time to do the reverse.

    Flexibility:

    At some point, I expect the lines to return no more than 2 & about 50 columns maximum.

    Therefore, the JSON itself can be stored in varchar2 (4000) and not need to use CLOB. (If necessary to be passed as an argument to the function).

    Oracle version: 11.2.0.3

    Kind regards

    AAG

    There are at least the son on this site below:

    https://community.Oracle.com/thread/2505918

    https://community.Oracle.com/thread/3634280

    https://community.Oracle.com/thread/3557925

    https://community.Oracle.com/thread/2510292

  • We get the windows forum a sound response does not work with xp on bootcamp

    I use bootcamp on Apple Lion operating system b

    and I can't get the sound to work on windows (I am running windows XP Pro)
    Hello
     
    1. What is the number of brand and model of the sound card on the computer?
    2. If it works well before?
    3. don't you make changes to the computer until the problem occurred?
     
    I suggest that you install the updated drivers for the soundcard on the computer by visiting the manufacturer of the sound card and check if it works.
     
    How to manage devices in Windows XP: http://support.Microsoft.com/kb/283658
     
    For your reference: Check from the link below.
     
     
    Hope this information is useful.
  • The Microsoft Wireless mouse right button does not work

    The right button of the mouse on my Microsoft Wireless Mobile Mouse 4000 does not - at first I thought that it was a hardware problem, but when I used the mouse properties/control panel to change the buttons on the mouse, the right button worked and the left mouse button does not, which leads me to believe that it is related to the software/driver.
    I have the latest version of the driver/Intellipoint software.  I am running Win 7 32 bit on a Lenovo ThinkPad T410.
    Change the port USB did not help; the problem persists, no matter which USB port I use for the receiver.
    Reinstall the software Intellipoint also did not help.
    It is a recent issue; I had the mouse for several months and it has worked well upward until a few days ago.
    Googling the problem that leads me to believe that it is a common problem, although most people seem to think it's a hardware problem.

    Hello

     
    Run the Fixit described in the article:
    Troubleshoot a wireless mouse that does not correctly
     

    I also suggest you to remove the batteries in the mouse and keep it idle for 10-20 minutes. Insert the batteries and check it out.

     
    See also:
     
    Troubleshoot the incidents of the response to the mouse or wireless keyboard
    http://support.Microsoft.com/kb/838398
     
    I hope this helps.
  • Please explain CVI question #335358: using the operator of bit-shift twice on the same line of code produces incorrect results

    Hello

    I just stumbled on http://www.ni.com/white-paper/12323/en#335358_by_Category.

    With the help of the bit-shift operator twice on the same line of code produces incorrect results.
    Workaround: Separate the operations of shift of two bits in two distinct lines of code.

    Reported Version: 9.0    Solved Version: N/A    Added the: 14/02/2012

    Could someone please explain what kind of construction causes such a question?

    I have not noticed problems again and not have not noticed or found a thread about it.

    Thank you.

    The reported scenario looks like this:

    unsigned int a = 1, b = 62;
    unsigned  long long result = 1ULL << a << b;
    

    The problem arises because of the temporary variable used when do two little is placed in the same line. This separation into two lines will produce correct results:

    unsigned int a = 1, b = 62;
    unsigned  long long result = 1ULL << a;
    result = result << b;
    
  • Result of the incorrect calculation

    Hi all

    I am creating a new logic of the columns in the business layer based on two existing columns:

    Column1/Column2 * 100 (columns 1 and 2 are aggregate amount)

    When I test the multiplication in the report is not made. I have just the result of the division

    What could be the problem?

    Concerning

    Published by: aharrab_be on January 14, 2009 07:59

    try 100 * (column1/column2)
    or
    (100 * column1) /column2

    with the brackets.

    If 100 does not work, try 100.00

Maybe you are looking for