ORA-00979 in one but not the other. Why?

Oracle Database 11 g Enterprise Edition Release 11.1.0.6.0 - 64 bit Production

SELECT the 'X' WHEN A.Dummy 42 THEN END OF double, (SELECT Dummy FROM Dual) a GROUP OF Dual.Dummy;
SELECT the 'X' WHEN A.Dummy 42 THEN END OF double, (SELECT ' X' FROM Dual Dummy) a GROUP OF Dual.Dummy;

First an error: ORA-00979: not a GROUP BY expression
Other works.

Why?

Hello

This seems to be a transformation/display fusion issue queries. You can replicate the behavior in the second query using the no_merge hint...

SELECT
    CASE 'X' WHEN A.Dummy THEN 42
    END
FROM
    Dual,
    (SELECT /*+ no_merge */ 'X' Dummy FROM Dual) A
GROUP BY
    Dual.Dummy;

SELECT
    CASE 'X' WHEN A.Dummy THEN 42
    END
FROM
    Dual,
    (SELECT 'X' Dummy FROM Dual) A
GROUP BY
    Dual.Dummy;

XXXX> SELECT
  2      CASE 'X' WHEN A.Dummy THEN 42
  3      END
  4  FROM
  5      Dual,
  6      (SELECT /*+ no_merge */ 'X' Dummy FROM Dual) A
  7  GROUP BY
  8      Dual.Dummy;
    CASE 'X' WHEN A.Dummy THEN 42
                  *
ERROR at line 2:
ORA-00979: not a GROUP BY expression

Elapsed: 00:00:00.03
XXXX>
XXXX> SELECT
  2      CASE 'X' WHEN A.Dummy THEN 42
  3      END
  4  FROM
  5      Dual,
  6      (SELECT 'X' Dummy FROM Dual) A
  7  GROUP BY
  8      Dual.Dummy;

CASE'X'WHENA.DUMMYTHEN42END
---------------------------
                         42

1 row selected.

If you run a trace 10053, you should be able to see the specific cause

HTH

David

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for Solaris: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production

5 rows selected.

Published by: Bravid on February 28, 2012 17:21

Tags: Database

Similar Questions

  • Just got 2 of SE. Weather app works on one but not the other.

    Just got 2 of SE. Weather app works on one but not the other. Ideas?

    Drosea,

    Define/describe does not.

    What's the weather App?

  • I have 2 accounts admin and want one removed. Don't let me do one, but not the other?

    My Admin account, that I had from the beginning which is password protected and the Moose is can be removed.

    The second admin account that has been created and has no password can be removed... just the origanl one maybe?

    Has always been my understanding that you should always have at least two accounts on your system administrator.

    As a regular very knowledgeable of this forum has compared to him, it's like having a car with a single key, what do you do if you lose this one key? Basically you're toward the top of the proverbial Creek.

    It's the same with only have a single administrator account, what should you do if your admin account is damaged?

    My thoughts are that it is much better to prevent than cure.

    Kind regards

  • Flash Player crashes a pc but not the other

    I have two PCs each running xp sp3.  Players of Flash in Chrome and Firefox crash one of them, but not the other.  Obviously something is different between the two computers, but how can I evenbegin to understand what he.  I've seen a lot of posts on Flash crash peoples computers and no satisfactory answers to my problem.  Thanks for responding.

    First thing to try on the computer crash is to disable hardware acceleration (http://forums.adobe.com/thread/891337).

    If this resolves the problem, then you should update the drivers for your graphics card (and re-enable hardware acceleration).

  • SWF is MIA on a field, but not the other?

    I have a modest Web page which I use primarily to set up the occasional photograph of the family:

    http://www.staggclan.com

    .. .and that contains a Flash xreferencing file a Flash video. That's what it is supposed to look like: http://www.dfwaug.net/test/index.html.

    As you can see - the video works very well in this last example (it's the same hierarchy). But why don't you see the video on my site? You can take a look at the source for staggclan.com on this page and you can see that I'm NOT xreferencing my hard drive and I am referencing an image that has not been downloaded (although I was - you would see at least one indicator 'broken image'). It does not even include space for where this video should be - it's as if he was not yet placed there.

    For the life of me I don't know what the problem is. Why is - that will work in a field, but not the other (both hosted by 1 & 1. com)? One who can correctly solve this problem for me will find me ETERNALLY THANKFUL.

    All the best.

    I'm just using DW8 to insert this .swf on a page. Obviously, I had deleted by mistake the "Scripts" folder is published with the course when I put on my server - so - no multimedia.

    Its a long time I have been using DW since now, we mainly use eLearning software rapid development. Gawd how I miss DW. Fortunately, I get to 'play' with it from time to time on the home front and have since updated my 'official' home-homepage which is now showing the video correctly:

    www.staggclan.com

    It was certainly a learning experience...

    Kevin

  • My Nano Gen 7 is recognized on a single computer, but not the other

    My Nano Gen 7 is recognized on a single computer, but not the other.  I went through all the troubleshooting tips.  Different cables, try all USB ports, uninstall/reinstall itunes, etc.  I have itunes more up-to-date software.  I was able to connect the ipod to my backup computer and confirmed that I also have the software more up-to-date on the ipod.  Since I am able to connect to it, I also did a factory reset the iPod, but it still wouldn't connect to my main computer.  Nothing has worked.  I think there must be a setting on my pc.  I use the latest version of windows 10.  Any suggestions are welcome.  Thank you

    I just bought an Ipod Nano 7th generation and itunes does not recognize it.  Had by all the standard troubleshooting (uninstall/install itunes, etc.) and no luck.  My PC recognizes, he calls the 'nano' but acknowledges as a USB mass storage device.  I spoke to a support person from apple for more than an hour to help me troubleshoot it, finally they just said it was a windows problem, and I need to contact Microsoft.

  • When I try to duplicate a layer from one file to the other why appears a window of "displacement"?

    When I try to duplicate a layer from one file to the other why appears a window of "displacement"? What should I do?

    Never seemed this before.

    Thank you

    I can't reproduce this. The layer as you try to duplicate a smart object and there a displacement map? Looks like you might need to reset your preferences.

  • Windows can't access\\ when you go to windows xp, but runs between xp to vista and 7, but not the other dirrection

    Cannot access xp vista or 7 but works the other way around. Can ping all machines and see all the machines in my network places. Help! Thanks I JUST TRIED FOR THE TWO LAST DAYS

    No, this wasn't it. But I found it. When I was checking the user name user accounts is plural on the XP machine and not on other machines.  So I renamed the discovered XP username is a no. Created a new user name that match the others to check out and everything works. now, I just copy the profile of the plural name account to the new account. I want to thank everyone for their help.

  • @HspNthMbr work in an application, but not the other

    Hello

    I want UDF @HspNthMbr, it was first recorded in a single application, so I copied into another application where I want to use.

    I copy in environmental assessments, after the copy, write a very short script as below. When I hit the check button it throws below error msg. I tested this script in the original application, it worked fine. I also tried to register instead of copy, the result is the same. Can someone help please?

    Error: 1200471 error analysis formula [statement of DIFFICULTY] (line 1): expression expected before [)]

    / *-Script-* /.

    Fix (@Member (@HspNthMbr (@Name (@relative("YearTotal",0)), 1)))

    "No account" = 1;

    ENDFIX

    -----

    Update: I noticed in the ESSBASE newspaper, after that I have copy the function from one application to the other, he appeared to be Ok enter the 2nd application, what else must be done after copy and which could have other reasons?

    Pls help and thanks in advance!

    HSP functions considering specific custom functions, so if you use it on another planning application, then you will have to refresh custom functions from screen updating of database planning.

    If you try to use it on an application for Essbase, I doubt that a copy is not going to work. (Not sure that you are allowed to copy these CDFs on Essbase application)

    Concerning

    Celvin Kattookaran

  • Audio in a timeline yet, but not the other?

    Hello

    I am trying to solve a problem in a timeline yet for Blu - ray with a MPEG2 and AC3 file.  It's weird because with the exact specifications of the same file for the video and audio, I'm able to hear the audio from the test project calendar (short term), but not the project calendar full length (about an hour and a half in duration).

    I'm burning a disk to verify that audio is just not there, rather than a problem reading with the project any longer, but can anyone suggest what may be broken here?  Again, the two projects seem to be identical in the parameters and specifications file for the video and audio, only the duration of a (work) is shorter than the other (does not).

    The audio file has been posted outside still like audio playback.

    Thank you for all what thoughts - what someone might have here.  BTW, the project has no menu screen.  That's a 'read only' Blu - ray disc

    Mtbakerstu

    That shows the status of transcoding of comics for each importing audio?

    Confirm that it is import and not dynamic link.

    How do you know that the file specifications are identical?

  • Able to add colspan with jQuery to table on one page, but not the other.

    I am able to use jQuery to add an attribute colspan to one of the rows in the table on a regular with products catalog page, but when I try to do a catalog that has instead of product catalogs, I see not the colspan attribute when I inspect the lines of the table.

    The catalog I'm talking about is http://www.thesanfordcenter.NET/suite-menu . The catalogue is secure. I have set up a temporary account and a password if you want to view the pages.

    ID: test

    Password: account 1

    I wonder if this is a problem with my jQuery or maybe what layout, I have jQuery on. Any help would be appreciated. Thank you.

    This page has some errors coming JavaScript on it.  If you press Ctrl-Shift-J or Cmd-Shift-J on a Mac in Google Chrome you will bring up the javascript console.  Anything in red is usually a javascript error or a 404 error for assets that are not found... you should always try to clean them.

    In this case, your "expstickybar.js" file is loaded on this page, and he introduces a "jQuery.noConflict (); statement that basically removes the possibility of using the variable ' $' as a quick trigger jQuery methods.  This is not the case on the pages of your catalogue main is because you only reference this script with a relative url: 'expstickybar.js', so when you are on your catalog at http://www.thesanfordcenter.net/suite-menu/appetizers page then it is looking for your javascript to http://www.thesanfordcenter.net/suite-menu/appetizers/expstickybar.js files so it is not find it is coming as a 404 error.

    A fast solution would probably be to try to remove or comment on this first line in expstickybar.js that says "jQuery.noConflict ();".  This might work, but it is also possible that it will break your expstickybar.js script. If this does not work, you should probably go into each of your statements of jQuery in your pages and wrap them up in a function that explicitly said to use the variable "$" for jQuery:

    (function ($) {}

    YOUR OLD JAVASCRIPT HERE

    (}) (jQuery);

    On a side note, also included two libraries jQuery in your site and that is never a good idea... you have jQuery 1.4.2 loading in the HEAD of your page or the page template and then you are also to load jQuery 1.6.2 in the BODY of your page or your page template.  You must use one or the other.  1.4.2 is old enough now, so if I was you, after you try to correct the mistake of jQuery.noConflict () you have got going, you need to move this jQuery 1.6.2 reference in your BODY element and replace it with jQuery 1.4.2 marked in your HEAD.

    Also - you should change your reference in your page templates to make the "expstickybar.js" a URL relative to the root instead of a relative URL of the file.  Change:

  • 7780 all in one print via bluetooth from a PC Windows 7, but not the other

    • Our HP 7780 all in one printer is connected to the network via bluetooth and has an ip address of http://192.168.1.65. A Mac and a Windows 7 desktop computer can print on it. An another Windows 7 laptop USED to be able to print, but no longer can, although it can browse to it and see the ink levels.
    • After restarting, the printer status says ready and a new print job appears in the queue, but after a bit it turns into error and never print.
    • We downloaded the base driver and reinstalled. During the installation of the 7780 was on the list of discovered printers and we chose, but during the installation, we got an error message that it could not find the printer.
    • Later we downloaded and installed the patch titled that product stops printing after network installed on Windows 7 (64 bit), rebooted and still the same error.
    • Help! How to be able to print the new Windows 7 laptop!

    The problem was McAfee firewall. First I disabled it, and print worked. Then I restored the default settings of the firewall and print continued to work.

  • How to activate the faults COMMITTED to an internal SATA hard drive, but not the other, on Vista Home Premium 32-bit?

    I have a set of 17-inch laptop 2008 which contains two hard drive bays internal, purchased in June.  It came with a single hard drive (traditional spinning disc).  It is running Service Pack 2, Windows Vista Home Premium 32-bit.

    My SATA controller is an Intel 82801GBM/GHM (ICH7-M family); I think it's a first-generation SATA controller (1.5 Gbps).

    I received recently a 160 GB Intel X - 25 M SSD (second generation SATA, but it is fully compatible with the first generation controllers, without additional or jumpers configuration) as a gift from my wife.  I removed my first hard drive completely, installed the SSD in the main Bay and installed Windows, drivers and the Intel SSD utility.  I then reinstalled my HDD original in the second span, completely wiped and reformatted it as a partition; It currently contains my music and other multimedia files.

    The utility Intel SSD tells me I should activate DIPM for my SSD as opposed to HIPM.  This seems to take a bit of tinkering to make Vista, and my situation is further complicated by the presence of my HARD drive (original) secondary, which prefer to use HIPM.

    I read the article on the Microsoft Web site on editing the registry to activate the misconduct, and it's something I would feel comfortable doing. However, I don't want my SSD to use DIPM, my HARD drive is expected to continue to use HIPM, and I was afraid that the proposed fix would allow the misconduct for all readers.

    Could someone let me know how I can activate DIPM for my SSD while continuing to use HIPM to my HARD drive, I'd be very grateful.

    EDIT: My Maintenance of SSD utility said simply that the State of the settings DIPM/HIPM "could not be determined." if Vista automatically selects the correct setting and the SSD utility does not just understand that, which makes my life a lot easier. but it would be nice to know for sure, so I can forget it all (if Vista already defined for me) or change the setting (if Vista did not automatically choose food appropriate for each disk management mode).

    You will need two SATA controllers: both on board or an edge and the other on PCI - E.

    Configure one who does not need TRIM/DIPM (do not use a SSD) as non-AHCI (compatible IDE/ATA-6) in the BIOS and the other (where TRIM/DIPM will be used) as AHCI.

    Connect the drive to which you DIPM AHCI controller. See http://www.abxzone.com/forums/f155/tip-how-enable-dipm-ssds-windows-120968.html for more information.

  • C6350 printing from a laptop, but not the other

    Hi, I have a new HP Photosmart C6350 which was working fine until today. I connected via the network from my wireless for two two laptops running vista 64. All of a sudden I can't print from a laptop computer but can print fine on the other. With one that does not initialize the print job, and then a minute later, it says "Unable to print Document" when I open the HP Solution Center, it says "work has not print because of an error in the printing system." The laptop is able to communicate with the printer, it can check the connection settings, get ink levels, scanner works very well, etc., but never print jobs is completed.

    I tried to turn on/off the printer several times, I rebooted my laptop several times and it has not solved the problem. I checked the edits, and he said that everything was up-to-date. I tried all the solutions suggested and don't know what else to do. As I said, it worked fine til today. Help, please

    Too bad, solved with the help of cat online hp

  • Get a preview of image files but not the other files

    In the Finder (or an alternative file manager) is there a way to show previews of image files, but not for the other files?

    With the image files, it will display a preview. With other types of file, a preview is useless and its best to see a standard icon indicating the file type.

    Any decent file on all Linux distributions browser lets you choose Preview vs standard icon based on case by case basis depending on the file type. I can't see how to proceed in the Finder (or the various alternatives as TotalFinder). How can I me Finder for this?

    The thumbnails, you mean? I don't think that there is a 'decent' solution for OS x. But then again, I don't know everything.

    https://www.Apple.com/feedback/MacOSX.html

Maybe you are looking for