Simple Question About Using "Group by" Inside the Oracle XE Query Builder

Hi,
I am a new user of Oracle 10g XE and I have built and populated some tables. I am trying to create a view (make a query) via using the Query Builder. I have chosen two attributes, say course_section_ID and trainer_ID in the same table. I choose the "COUNT" function for course_section_no and I check the box for "Group By" with trainer_ID. (I would like to count the number course sections each trainer is teaching). Then I "run" the query and the same error message appears:
fail to parse SQL query:
ORA-00904: "COURSE_SECTION"."TRAINER_ID": invalid identifier
Both attribute names should be valid (as shown above).
If I only choose course_section_ID and do a COUNT on it, it gives the same error message on course_section_no.
I did try to do the same thing with the demo HR database. There were no problems with counting a field nor with grouping on a field with HR.
PLEASE HELP!
Thanks.

I have got it. When all the attribute names are in the uppercase, then I can do aggregate functions and "group by" with the GUI.

Similar Messages

  • Question about using multiple iPods on the same PC

    I've read the FAQs on this subject but I still have a couple of questions about multiple users with separate iPods using the same PC.
    I want to use my family's desktop (A new Gateway with Vista, if it matters) for my new iPod Classic, but my father already has an iTunes account on there for his iPod. I know I can create a new user account on the PC and move iTunes to a shared folder so that we can share music, but will this second account be able to purchase music from the iTunes store or am I going to have to switch between Windows User accounts to make purchases and then move new songs into my separate iTunes account via the shared folder? Will it be its own separate iTunes account (separate user name, separate credit card used, etc.) or will it just be a second library that's dependant on the first?
    I want to be able to have my own iTunes account, make my own purchases in it, and maybe occasionally share tv shows or something with my father.
    If this can't be done, would I be better off just creating new playlists for our two iPods from the same library, or creating a second library on my Father's account?
    Also, if I want to access things I've purchased from iTunes on this desktop in iTunes on my notebook, will I be able to?
    I hope that made sense.
    Sorry if these seem like silly questions. This will be my first iPod as I'm really excited about the 160gig and want to know if these things are possible.
    Thanks in advance for any help

    Hi, Wes.
    Congratulations on your new iPod Classic and Welcome to the Apple Discussions.
    For no particular reason, let's answer your last question first ...
    ... if I want to access things I've purchased from iTunes on this desktop in iTunes on my notebook, will I be able to?
    The iTunes Store operates on a one download per purchase policy so you will have to copy the purchases from one computer to the other and make sure that you authorize the laptop to play the songs.
    As to your first question ...
    ... will this second account be able to purchase music from the iTunes store or am I going to have to switch between Windows User accounts to make purchases ...
    Whatever XP User Account you are logged in to doesn't really matter. What's important is which Apple Account you sign in to ... yours or your Dad's or - if you had my Apple ID and password - The Mimico Kid's for that matter. You can sign in to any Apple Account on any XP User Account. Or any computer for that matter.
    Where the XP User Account comes into play is that it will determine where on your computer the purchases are downloaded. Files will be sent to the iTunes Music folder as specified in the iTunes Edit menu > Preferences > Advanced tab > General sub-tab. Default settings will have a different location for each User Account - C:\Documents and Settings\ user name \My Documents\My Music\iTunes - but if you've read this article in the Apple Knowledge Base, you will know you can change the location of the iTunes Music folder in each XP Account to a common location such as C:\Documents and Settings\All Users\Documents\My Music\iTunes.
    Post back if all this hasn't been as clear as mud and you need anything clarified.

  • Probably a simple question about using a flash header for navigation

    What would be the best way to go about loading this flash
    navigation?
    http://www.marcos-ac.com/wip/
    Basically my issue is that I don't want the animation to run
    through each time. On the homepage, I want it to run through it's
    whole animation, but after that, I just want everything to be up
    there... not flying in and fading in on each of the pages in the
    site.
    My ideas:
    1. Some sort of actionscript command that says "if you are on
    a page named index.htm then play the entire movie, otherwise, goto
    and play frame 100 (the last frame).
    2. Use a shell movie and do a loadMovie that they jumps to a
    frame. Insert the shell movie on the subpages in the site. I tried
    this an it didn't work. And I've read that it's unreliable because
    the label may not exist yet when the movie is called or something.
    Must be cached.
    3. Build 2 movies... one with all the intro animation frames
    chopped off. I tried this and didn't like it as the movie is
    already pretty huge and to load two movies that are large is
    annoying to users. This is the method I am currently using.
    Thanks for the help!

    The quick and easy way - not necessarily the most elegant way
    - to solve the problem is to use html frames. Put the nav in a
    header frame and have contents display in a second frame
    underneath. Will require you add a target="contentframe' (or
    whatever you name the content frame) parameter into each link in
    the nav flash, but other than that you won't need to make major
    changes.
    The nav plays once and just sits there until they reload the
    entire page the next time they visit. No actionscript, tests,
    preloading, etc required.

  • Question about using MAX to get the lastest date.

    My question is I need to get the latest erstate.DATE_CREATED.
    I thought that I could just do the following max(erstate.DATE_CREATED) but get
    this error message (ora-00937: not a single-group group function). Can some explain to me what I am supposed to do. Thanks
    select     eractivity.er_case_id,
         erstate.description as latest_status,
         erstate.DATE_CREATED
    from      dpss_gdats.er_activity eractivity,
         dpss_gdats.er_state erstate
    where      eractivity.ER_STATE_ID = erstate.er_state_id
    and      eractivity.er_case_id = :p_case

    Yes max(erstate.DATE_CREATED) will get you the latest erstate.DATE_CREATED. Looking at your query I'm not really sure if you want the latest date for every case_id, description or you want the latest date_created period.
    If you want the former:
    select eractivity.er_case_id, erstate.description as latest_status,
    max(erstate.DATE_CREATED)
    from dpss_gdats.er_activity eractivity,
    dpss_gdats.er_state erstate
    where eractivity.ER_STATE_ID = erstate.er_state_id
    and eractivity.er_case_id = :p_case
    group by eractivity.er_case_id, erstate.description
    for the latter :
    select max(erstate.DATE_CREATED)
    from dpss_gdats.er_activity eractivity,
    dpss_gdats.er_state erstate
    where eractivity.ER_STATE_ID = erstate.er_state_id
    and eractivity.er_case_id = :p_case

  • Keychain - simple question about use

    I would like keychain to ask me for the "login" keychain password when I navigate to a page requiring user id and password in Safari. After proving the "login" password, I would like keychain access to insert the appropriate user id and password. How do I accomplish this?

    Maybe I've got the wrong understanding. It was my impression that Keychain and Autofill were two distinct things. I have been using autofill all along and when I go to a website, put in my id and password and hit send or continue or whatever, a window comes down from the top of the safari window and asks me if autofill should remember the password. The next time I visit the site, the info appears in the right places.
    What I want is for me to go to the site and for a window to pop up and ask me for my keychain password BEFORE putting the site's user id and password in. A friend of mine has this setup on his computer but doesn't know/remember how it got that way so he is no help.
    I hope this clarifies my question.
    Thank you all for your help.

  • Simple question about using passing parameters in a procedure

    I have a below stored procedure (part of a package) that I need to modify by removing hard coded declaration of "cutoffdays" and change it into a parameter passed from procedure. I am not sure how to do declare and pass values for delete from a table.
    CREATE OR REPLACE PROCEDURE  counttimes
    IS
       CutOffDays   NUMBER := 14;
    BEGIN  
    DELETE FROM   timetable
             WHERE   timestamp_val < SYSDATE - CutOffDays;
       COMMIT;
    END counttimes;

    Hints
    <li>never commit at the end of a procedure, if you didn't commit at the beginning. Do the transaction handling at a higher level.</li>
    <li>Name the procedure so that it is clear what it does. If records are deleted, then the procedure name should reflect that.</li>
    <li>Work with full days, i.e. use trunc(sysdate) instead of sysdate. </li>
    CREATE OR REPLACE PROCEDURE  removeTimes (CutOffDays in integer)
    IS
    BEGIN  
           DELETE FROM   timetable
           WHERE   timestamp_val < trunc(SYSDATE) - CutOffDays;
    END counttimes;Edited by: Sven W. on Feb 14, 2011 4:17 PM

  • Question about using DVD covers for the movies I import

    Question for all you mac genii - When I import a dvd that I own into my itunes library and sync to my  tv, how can I get the DVD cover art to appear so it looks like the stuff I have purchased from the itunes library? It there a way to edit the cover art for movies? Thanks in advance...

    You add it just like you would for music - the catch is that if you are doing syncing, you need to re-sync the whole file (so the embedded artwork will transfer). Add the artwork, un-check the movie/tv show to be synced, do a sync (it should be removed from the ATV), and then check it to synced again and do a sync (it should push it back out to the ATV again).
    Kind of a pain - so it is best to tag your files (MetaX is awesome) before you do any syncing of files.

  • Question about: Use PowerShell to Toggle the Archive Bit on Files

    Hi Scripting Guys,
    thanks for you favorite scripts. but
    one question: the script abovementioned
    running. But I have to enter a -value
    for each file. If the script is not
    written so that each file checked for the archive
    and then changed? Apparently it
    does not work right with me.
    Here is the script again
    and also a screenshot. Over a short help I
    would be delighted.
    Stephan
    $path = "C:\fso"
    $files = Get-ChildItem -Path $path -Recurse
    $attribute = [io.fileattributes]::archive
    Foreach($file in $files)
     If((Get-ItemProperty -Path $file.fullname).attributes -band $attribute)
       "$file.fullname has the $attribute bit set, removing the bit."
       Set-ItemProperty -Path $file.fullname -Name attributes
       -value ((Get-ItemProperty $file.fullname).attributes -BXOR $attribute)
       "New value of $file.Fullname attributes"
       (Get-ItemProperty -Path $file.fullname).attributes
     ELSE
        Write-host -ForegroundColor blue
        "$file.fullname does not have the $attribute bit set, setting the bit."
        Set-ItemProperty -Path $file.fullname -Name attributes
          -value ((Get-ItemProperty $file.fullname).attributes -BXOR $attribute)
        "New value of $file.Fullname attributes"
       (Get-ItemProperty -Path $file.fullname).attributes
    } #end Foreach

    The attrib command isn't a PowerShell cmdlet:
    http://ss64.com/nt/attrib.html
    If you're asking which line of your script this should replace, the answer is 'the entire thing'.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Simple question about environment variables and setting the class path???

    ok I have been trying for a few months now ontrying to set the class path..
    I work with windows vista..
    on the environment variables user variables,
    I have the name of the variable as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    where javac is...
    on the system variables I have
    its name as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    why is this not reading javac

    The PATH environment variable should have as an entry the directory containing your javac executable. The CLASSPATH should have have entries which define your library directories and entries which are your jar file libraries. In the early days, probably the only CLATHPATH entry you will need will be a '.' to indicate the current directory.
    The Java tutorial covers ALL of this.

  • Question about Using PAPI Web Service in PowerBuilder 9

    Hi, all.
    I Have a simple question about using papiws in power builder 9.
    In pb9, I created a new Web Service Proxy Wizard and I input a url for papiws(ex. http://seraphpernote:7001/papiws/PapiWebService) and click next.
    But I couldn't get any Service List.
    In Eclipse, I used this url for using papiws well.
    Does anybody know about this case??
    help me plz.

    IIRC you must activate PAPI-WS for the engine. In Studio you do it by right-clicking on the project, then "engine preferences". In enterprise/standalone you must activate PAPI-WS in the Admin Center.

  • I have a question about using multiple ipads in our school.  Each of our teachers have a iPad and AppleTV in their classroom.  The issue is, with our classrooms so close in proximity to one another, is there a way to pair teacher

    I have a question about using multiple ipads in our school.  Each of our teachers have a iPad and AppleTV in their classroom.  The issue is, with our classrooms so close in proximity to one another, is there a way to pair teacher #1 iPad to its AppleTV without effecting/projecting onto the adjacent teachers #2 classroom AppleTV?

    Not as such.
    Give the AppleTV units unique names and also enable Airplay password in settings with unique passwords for each teacher.
    AC

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Hello , I want to ask some question about ipads \  How powerful is the iPad?  How useful is it for reading books, newspaper or magazines or for surfing the web? Can you identify any shortcomings of the device?   please help me :(

    Hello ,
    I want to ask some question about ipads \
    How powerful is the iPad? 
    How useful is it for reading books, newspaper or magazines or for surfing the web?
    Can you identify any shortcomings of the device?  
    please help me

    it's less powerful than your average computer. THink of it like a netbook but with a better processor.
    It'll do fine for surfing (although if you browse a lot of flash based sites you will need to get a third party browser since safari doesn't accommodate it)
    You may do OK on reading books, papers or magazines, especially if they have apps, but the ipad's screen is backlit, so it doesn't work well outdoors and you may need to fiddle with the brightness so that you don't get eye strain (it's just like doing too much reading from a computer screen)
    I would say the biggest short comings are data transfer. Apple's preferred work flow is that everything is done via iTunes or the internet....well people dont' always have 100% reliable always on internet access so you can find yourself in a situation where you can't get things on/off the iPad.
    By and large, it's a good device for day to day stuff, but is not a computer replacement.

  • Where Would be the best category to ask a question about using dashboard?

    Where Would be the best category to ask a question about using dashboard?

    However, don't ask it in this topic. Create a new topic for the question with a title describing that you are looking for Dashboard help.

  • Question about using new battery in old Powerbook

    I have a pre-intel Powerbook G4, and the battery is pretty much toast (lasts about 15 minutes now). I have ordered a new battery for it, and I have this question about using it:
    Am I smarter to keep the new strong battery out of the PB most days (as I usually work with it plugged in at home) and just pop it in when I know I will be out surfing on batteries? Or is it just as good living in my laptop 24/7 and only occasionally being called upon to do its job?
    Current bad Battery Information below:
    Battery Installed: Yes
    First low level warning: No
    Full Charge Capacity (mAh): 1144
    Remaining Capacity (mAh): 1115
    Amperage (mA): 0
    Voltage (mV): 12387
    Cycle Count: 281
    thanks folks, Shereen

    Hi, Shereen. Every Powerbook battery wants to be used — drained and then recharged — at least every couple of weeks. If you've always used your Powerbook on AC power nearly all the time, and not followed that pattern of discharging and recharging the battery every week or two, it's possible that your use habits have shortened the lifespan and prematurely diminished the capacity of your old battery. Of course it's also possible that your battery is merely old, as a battery's capacity also diminishes with age regardless of how it's used. You didn't say how old the battery is in years, so this may or may not be an issue. I mention it only because it can be an issue.
    For general information on handling a battery for the longest possible lifespan, see this article. My advice on the basis of that article and long experience reading these forums is that it would be OK to do as you propose, but I doubt that you'd derive any significant benefit from it. You would still want to be sure of putting the new battery through a charge/discharge cycle every week or two, even if you didn't have a reason to use the Powerbook away from home or your desk, because sitting unused outside the computer is just as bad for a battery as sitting unused inside it. And you should never remove the battery from your computer when it's completely or almost completely discharged and let it sit that way any longer than a day or two.
    Message was edited by: eww

Maybe you are looking for

  • Inability to install SCXI 1200 in Windows XP

    I am trying to use some older NI hardware (SCXI 1000 chassis with SCXI 1200 connected to a parrallel port), and windows XP is unable to detect the hardware. I tried following the SCXI 1200 support pages, but when I enter the add new hardware wizard t

  • Insert and Edit NEW text not working

    hi guys, I would like to insert a new text. I thought i could use the touch-out tool but i can´t don´t know why. I did it with the typewriter tool. So the text is this now i try to change the font type but i can´t. I do not get the Typeface Menu as t

  • New Button not appearing in Choose company screen

    Hi All, Today at one of our customer we found that when we goto choose company screen with user with super user authorisation, New button (used to create new company) doesn't appear. Customer uses SAP B1 2007 B Patch Level 08 Does anybody has idea wh

  • Lost ability to delete browsing history, how do I correct this?

    When I went to the tools area of Firefox to delete the latest history, that option had become unusable. How do I get the ability to delete the latest history back? I now have a whole months worth of history, some of which I thought had already been d

  • Why is Firefox 10.x so S-L-O-W

    Was having script errors using IE8. SmugMug recommended I try Firefox. The script errors have stopped, but is very slow to respond to clicks compared to IE8. On a screen that has pick lists. In IE8 they open fully imediatley. But in Firefox the respo