Group by with column alias does not work?

Hello,
The column alias is not working in the group clause?
select col1,col2-col3 "col23", sum(col4)
from table1
group by col1,col23
Error is col23 is invalid identifier.
Thank you.

I guess it's the double quotes around bonus:
SQL> select empno, deptno, sum(bonus)
  2  from
  3  (
  4     select empno, (sal + 500) bonus, deptno
  5     from emp
  6  )
  7  group by empno, deptno
  8  ;
               EMPNO               DEPTNO           SUM(BONUS)
                7900                   30                 1450
                7369                   20                 1300
                7499                   30                 2100
                7521                   30                 1750
                7566                   20                 3475
                7654                   30                 1750
                7698                   30                 3350
                7782                   10                 2950
                7788                   20                 3500
                7839                   10                 5500
                7844                   30                 2000
                7876                   20                 1600
                7902                   20                 3500
                7934                   10                 1800
14 rows selected.

Similar Messages

  • HT204065 Group text with one non iPhone not working on iPhone 6 in the group.

    Group text with one non iPhone not working on one iPhone 6 in group. SMS, MMS and iMessage as well as group messaging are all turned on. Has worked intermittently but now cannot see or respond in that particular chain. Can send independently to the non iPhone (Samsung) but not in group. Other iPhone 6 and 5 in group work fine.

    The reason why you have to turn off 3Gs is because T-Mobile does not support iPhones 1700 something or other. You have to turn off the 3Gs on the iPhone to make it work.
    As already provided, it shouldn't matter since the iPhone is designed to automatically connect to the fastest internet connection available. If wi-fi access and 3G network access is on, when in range of an available wi-fi network you have access to and have connected your iPhone with previously, the iPhone will connect to the wi-fi network automatically. When leaving the range of the wi-fi network, the iPhone will connect to the 3G network if 3G network access is available. If 3G network access is not available, the iPhone will connect to EDGE or GPRS - whichever is available at the time.
    If this is unique to T-Mobile's network with the iPhone for some reason since T-Mobile is not an official carrier for the iPhone in the U.S. and you were instructed by T-Mobile to do so, then you need to do so.
    If this is not working now, the problem lies with T-Mobile and I have no idea what to tell them for them to recognize where the problem lies on their end.

  • Connecting Wahoo Blue HR with iPhone 5 does not work, tried everything possible

    Connecting Wahoo Blue HR with iPhone 5 does not work, tried everything what I could find in the interenet as solution??????

    IPhone 4s, iOS 7.1.1: iphone can't connect to wahoo HR BT4.0 sensor :((( Wverything worked fine with iOS 6 !!!

  • Hyperlink with tracking applied does not work in PDF

    We use lots of web addresses in our advertising and generally the web addresses automatically convert to hyperlinks when we distill the files and make PDFs. Recently we've had two instances where someone applied tracking or justification to the line of text containing the url to make it spread across the page. When we make our PDF the url is not clickable. Is there anyway around this? We tried actually creating a hyperlink manually in InDesign by using the Hyperlinks panel and entering the address, but that didn't work either.

    Peter,
    We'll look into that. We already do two separate PDFs for print and web, but
    we are distilling both right now. Wouldn't be too much of a problem to
    change to exporting the web version I don't think.
    I did a test, just curious, is there a way to keep it from putting a black
    box around the link on the PDF?
    Thanks for your help! We appreciate it!
    Beth
    From: Peter Spier <[email protected]>
    Reply-To: <[email protected]>
    Date: Fri, 14 May 2010 13:24:04 -0600
    To: Beth Phillips <[email protected]>
    Subject: Hyperlink with tracking applied does not work in PDF
    Distilled PDF uses Postscript which does not support hyperlinks and
    interactivity. To make your hyperlinks in ID you'll need to export and check
    the Include Hyperlinks and Include Interactiviity boxes.
    Your printer doesn't need hyperlinks because they don't work on a printed
    page. The requirements for print and interactive PDF are quite different, and
    you may find you need to make two versions.
    >

  • What if sync with new computer does not work. logical connection to old with WindowsXP, 32 bit version of iTunes. New is Windows7 with 64bit version

    What if sync with new computer does not work?
    logical connection to old with WindowsXP, 32 bit version of iTunes.
    New is Windows7 with 64bit version

    Syncing to a new iTunes library or computer will erase your iPod. Only if you back up your iPod manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your iPod to your new computer and right click on it in the device list and choose backup. iTunes will backup your iPod without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in iTunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved: http://support.apple.com/kb/HT4946
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device
    If your iPod can't be recognized by Windows, try these tips: iOS: Device not recognized in iTunes for Windows

  • I own the 4s and my BT Planttronics Pro works fine with calls but does not work to listen to music? Any ideas on how to correct this?

    I own the 4s and my BT Planttronics Pro works fine with calls but does not work to listen to music?
    Any ideas on how to correct this?
    Thanks-Vitaleyes

    I don't know what they call it, but my plantronics voyager pro, and my wifes plantronics voyager pro+ will not let you hear music through the headset.  My Blueant T1 does support it and plays the music through the deadset.

  • My camera works with the photobooth and with skype but does not work with online applications such as "lolcam from facebook" or "faceonthehole" application. Please help

    My camera works with the photobooth and with skype but does not work with other applications like the "lolcam" from facebook or the " faceonthe hole" application. Can anyone help?

    There was a issue with school computers being used to spy on kids in their bedrooms, Mac's were involved.
    So Apple most likely tightened the API's to only select, trustworthy companies as not to abuse the web cam access priviledge.
    If you want to use a web cam with these other programs and services, you'll likely have to buy a third party USB one, so you can manually disconnect it.
    There isn't a way to physcially disconnect the built in web cam on Mac's without busting open the machine.

  • With IOS6 3G does not work.  This has already happened with IOS5.1, was only solved with IOS5.1.1.  More anyone have this problem? How do you solve?

    With IOS6 3G does not work.
    This has already happened with IOS5.1, was only solved with IOS5.1.1.
    More anyone have this problem? How do you solve?

    This response is a little late as I just read about your problem. I have a 2012 Dodge Charger and a 2012 Chrysler Town and Country and both worked flawlessly with the iPhone 5s my wife and I had. However, we just upgraded to the iPhone 6 and Uconnect will receive calls but you cannot answer them. You can callout successfully, however. the annoyance being the inability to answer incoming calls in the HandsFree mode.

  • Select list with bind variable does not work

    Hi,
    What can be wrong with a 'select list' with the a simple select
    select omschrijving o, id i
    from basiscodes b
    where domein = 'OPTIES'
    and b.id in
    (select eo.basiscode_id from evenementen_opties eo
    where eo.event_id = :P16_ID)
    The :P16_ID has a value and should give result
    But it does not work at all with 'select list'
    Using the POPUP LOV (display discription, return key value) works nice
    The select retuns less then 10 records

    Hi Flavio,
    As I explained, the P16_ID is an item of the master page (page 16)
    In Page 18 where I want to reuse that value, the item is not there, but I use it to assign
    P18_EVENT_ID with the value in P16_ID and that works fine.
    In an after submit process, I do this :
    declare
    function get_pk return varchar2
    is
    begin
    for c1 in (select EVENEMENT_INSCHRIJVING_SEQ.nextval next_val
    from dual)
    loop
    return c1.next_val;
    end loop;
    end;
    begin
    :P18_ID := get_pk;
    :P18_EVENT_ID := :P16_ID;
    :P18_CREATIE_DT := TO_CHAR(SYSDATE,'DD-MM-YYYY HH24:MI:SS');
    :P18_CREATIE_USER := APEX_APPLICATION.G_USER;
    end;
    The value P16_ID is there before I open page 18
    I made a display item that displays the value P16_ID
    If I change the LOV select in :
    select b.omschrijving o, b.id i
    from basiscodes b
    , evenementen_opties eo
    where b.domein = 'OPTIES'
    and b.id = eo.basiscode_id
    and eo.event_id = 16
    then it returns the value I want : 1 record
    You see, I'm a really new one in apex.
    Forms 6i was easier for me...
    Regards Jules
    null

  • Loging into game center with apple ID does not work. What do i need to do?

    My apple ID does not work for signing into game center.

    Apple TV doesn't come with HDMI cable, so you would have had to buy the cable separately unless the Apple TV was bought used. Did you purchase the device from Apple or an authorized reseller?
    Are you sure you're trying the right input?
    The other is a smaller one that is for micro USB (which is used for support purposes only)

  • The Software that came with my book does not work. CISCO CCENT / CCNA ICND1 by wendell odom

    Hello this is my first post on cisco support and hope I can get some help. I recently purchased the book CISCO CCENT / CCNA ICND1 by wendell odom and when I used the CD to install the Pearson Practice exams, it does not work. I tried everything! It even asks for a activation code, which on the CD It says "Refer to the Activation Code Included in the DVD Sleeve when Registering Pearson IT Certification Practice Test Software"I don't see anything related to a Activation Code anywhere on the CD OR on the sleeve! So now I can't use that.
               The Network simulator Wendell odom uses in his videos is already outdated it seems and I can't get mine to work. Why? Because I bought this book in hopes of this being a beginner book and praying the person won't skip information to actually set up the book. So now the videos are useless because I can't connect because I have no idea how...
              The Network Simulator lite, wow 3/3 When giving me software to use. The Prompt command does not work, Only the enter key will work but when I try to put in a password I can't hit anything else but enter.
                 I hope I can get help from a more official member as to seeing how I bought this book and I can read but whats really the point if I don't have the hands on training?

    Keunepete,
    When I ordered my books for the ICND1 and ICND2, they came with a CD in the back pocket (sleeve) of the book. Along with the CD was a thick piece of paper that had the activation code on it. It was a white, square piece of paper with big black print on it. Did you buy your book used? Was the CD sealed in the back pocket?
    -Zach

  • I was billed for a renewal with eHarmony that does not work. Eharmony said itunes claims the charge didnt go through but I have already been billed. How do I get my money back or get my subscription working??

    I was billed for a renewal with eHarmony via iTunes that does not work. Eharmony said itunes claims the charge didnt go through but I have already been billed it is on my bank statement. How do I get my money back or get my subscription working?? I have all transaction ID's and invoice numbers. Please help this has been very frustrating, thanks.

    Yes, I reported the problem using that exact sequence immediately after discovering the problem with the app.  When I submitted my complaint and request, Apple redirected me the website of the app manufacturer where I submitted the same complaint/request for refund.  I have not heard back from either, and was still charged, so I can only assume that is not the correct way to "Report a Problem" even though Apple would have you believe otherwise.

  • HT1933 'Report a problem' link in the email with purchase receipt does not work.

    While opening itunes I get an error "unable to connect to itunes",then a screen with the text: "your request produced an error.NewNullResponse".It's in-app purchase, magazine subscription.How do I report a problem if the link does not work?

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report your issue to the iTunes Store.
    Regards.

  • TS2634 After I updated my iPod touch with iOS6, it does not work with my Logitech docking station. Is this a problem with iOS6?

    Does updating the 4th generation iPod touch with iOS6 keep it from working with a Logitech docking station/boombox? Nothing is wrong with the boombox.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    iOS: How to back up your data and set up as a new device
    If it still does not work that means that the update broke compatibility. That happens sometimes. You will have to wait for an update to either iPod's iOS or the dock's firmware.

  • Icloud log in with Apple id  does not work from my mac when i try to run on photo stream

    When I try to active photostream or sharing via icloud it does not work I get an errormessage that there is communication problems with icloud. I cant get around to administrate the stream from the Icloud site or via my imac directly. It has never worked!

    yes, the apple id works for everyting else, but not for icloud. on my phone and ipad it is set up with the correct apple id and password. however, when i try to log on to icloud under system by clicking the icon the erromessag that i get is unknown apple id or password.

Maybe you are looking for