Can you do this???

I have a SELECT statement that needs a SUM action. However, do get the correct SUM, I have to do a sub-query inside of the SUM statement. Is this possible?
I am somewhat a novice to oracle/sql, so any help would be appreciated.Thanks

Without knowing more this is the best I can give you:
-- route -
     route_id PK
     route_mi
-- trips -
     trip_id PK
     route_id FK
     pilot_id FK   
-- employees -
     employee_id PK
     employee_name
     crew_id FK
-- crew -
     crew_id PK
     crew_name (U)
     employee_id FK
SELECT E.employee_name
, SUM(R.route_mi)
FROM employee E
, crew C
, trip T
, route R
WHERE E.employee_id = C.employee_id
AND C.crew_name = 'Pilot'
AND T.pilot_id = E.employee_id
AND R.route_id = T.route_id
GROUP BY E.employee_nameWarning: Above code not tested on fake setup!

Similar Messages

  • Regarding receiving texts as emails:  Can you apply this setting to one individual? I want to continue to receive texts from everyone else except one person!

    Regarding receiving texts as emails:  Can you apply this setting to one individual? I want to continue to receive texts from everyone else except one person!

    Don't want to block the person, just have all his texts going directly to my email so that I can maintain a continuous record of his text contacts (rather than remain in text form).
    It appears that I must select an option that makes ALL texts go to email, which I'd prefer not doing.

  • I have no audio what so ever i have seen in one of the tables where it was deleted how can you fix this i tried everything i know

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    i have been trying to get the audio to play for 3 days now i did see where it had been deleted this is a used comp i haven't had it long can you fix this i'm at my wits end
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows NT 5.0
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Default Plug-in
    *Adobe Acrobat Plug-In Version 5.10 for Netscape
    *Java(TM) Platform SE binary
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Network Object Plugin
    *Windows Multimedia Services DRM Store Plug-In
    *Npdsplay dll

    Hello Virginia.
    You may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?

  • I have Photoshop CS4,on how many computers can you install this program ?

    Hello,
    I got Photoshop CS4. On how many computers can you install this program ?
    Sonste

    The license and activation rights are for a single user on two computers that are not used simultaneously—such as your desktop machine and your laptop.

  • Is there anyone there? I hope there is someone who can you understand this problem and have the common sense to respond?  I open gmail. I want to save an email to one of my folders. I position my cursor over the appropriate Folder icon or by choice, to th

    Is there anyone there? I hope there is someone who can you understand this problem and have the common sense to respond?
    I open gmail. I want to save an email to one of my folders.
    I position my cursor over the appropriate Folder icon or by choice, to the Trash.
    The friendly finger pointing cursor icon changes to an arrow icon.
    The hand icon allows me flawless access to opening and/or moving emails.
    The arrow, however does not open the link.
    On the Google menu bar the cursor hand with finger opens the links to Everett (my name), Search, Images, Maps and Play.
    When I attempt to open the remaining links in the menu bar (YouTube, News, Gmail, Drive, Calendar and More) the arrow icon replaces the hand. The arrow icon does not work. It will not activate these links.  Nor does it open email messages in the Inbox.
    Usually I reset, even reboot Safire and sometimes the problem goes away, then reappears.
    Can you imagine if this condition should it happen to a tech savvy Google Support person? Perhaps one can share and make my problem go away.
    I am considering dropping Google as my mail source. Unfortunate!
    Everett Halvorsen
    [email protected]
    718.490.3824

    I have uninstalled my Access Connection, but this problem seems to persist. IBM technician have changed the wireless card of my T60, the first few days after it was changed was very fine, no problem at all. About a week later, the problem occured again, and it happened quite frequently after that occurence. Now i really have no idea what is the cause and how to solve it. Will be greatful if there is anyone that can help me.

  • I have a lenovo S410 Touch laptop -with windows 8.1 -Itunes 11.1.1 ,i am trying to connect my iphone 4s but does not connect , it shows that it wants to connect , how can you connect this?

    I have a lenovo S410 Touch laptop -with windows 8.1 -Itunes 11.1.1 ,i am trying to connect my iphone 4s by USB cable but does not connect , it shows that it wants to connect , how can you connect this?

    http://support.apple.com/kb/ts1538

  • Hello I Download Adobe Photoshop CC 2014 Last Night i INSTALLED it But it Crashes in 30-40 Sec After i Launch the Product Without Any Error Message I Need Help Can You Resolve This Problem i Tried Creative Cloud Sign Out Nd Sign iN But iT DidnT ReSolve My

    Hello I Download Adobe Photoshop CC 2014 Last Night
     i INSTALLED it But it Crashes in 30-40 Sec After i Launch the Product Without Any Error Message
    I Need Help Can You Resolve This Problem

    Lotfi are you receiving any error messages during the installation?  I would recommend reviewing your installation logs for errors.  Please see Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html for information on how to locate and interpret your installation log files.  You are welcome to post any specific errors you discover to this discussion.

  • In v.4 fonts look blurry. Can you solve this shortcoming ?

    Fonts look blurry in the overall menu in this new version of browser (v.4). I tried all the options that you specified with the ClearType an so on... It seems that the problem is not from Windows 7 because the old version looks ok. Can you solve this shortcoming ?
    Until you resolve it I'll stay with the previous version (3.6.16) which it looks really good.

    Yea, when I actually install my applications and launch them from GNOME Shell's menu or launcher the fonts look as blurry as they do when I launch them from Anjuta. Other applications look fine and with the workarounds I described above, my own applications display nicely too when launched from either GNOME Shell or Anjuta.

  • How can you search this forum without searching all the other forums

    how can you search this forum without searching all the other forums at the same time which is a big fat waste of time.

    Follow this tip to create a bookmark to a search page that searches only the forum you want or...
    Browse with Firefox and enable this Greasemonkey script, which forces all searches from a sub-forum to be local.

  • Can you convert this file into good searchable pdf file: Medical Terminology- A Short Course.azw4

    Can you convert this file into good searchable pdf file: Medical Terminology- A Short Course.azw4

    I don't think that Adobe offers any software to convert .azw4 files.  Search Google for alternate converters.

  • HT204406 what if i do not want artwork for any song?  they take too long to upload and I personally don't care to retain or see the "artwork".  Can you diable this in itunes match?

    what if i do not want artwork for any song?  they take too long to upload and I personally don't care to retain or see the "artwork".  Can you diable this in itunes match?

    Agreed. I hope they allow this some time soon or iTunes Match will remain a big disappointment for me.

  • GridBagLayout with JPanel, only 3 lines. Can you fix this?

    GridBagLayout gridBagLayout = new GridBagLayout();
    setLayout(gridBagLayout);
    panel1.addComponent(modelLbl,0, 0, 0, 0);
    this is all inside of a JPanel that is inside of a JTabbedPane. I want to use a GridBagLayout to arrange the components inside panel1 (which is a JPanel) but the compiler is telling me addComponent is undefined for JPanel.
    Can you figure this out? How can I use a GridBagLayout in a JPanel?
    If you cant use GridBagLayout is there anything similiar available for JPanel?

    well as helpful as that was.....
    i found the answer myself and it goes more like this...
    panel1.setLayout(new GridBagLayout);
    and then you have to create a GridBagConstraints object to enter the contraints, something like:
    GridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady) ;
    and then you just use
    panel1.add(component, GridBagConstraints object);

  • In FCP, holding Shift when moving a clip from track to track would lock it in position vertically.  Can you do this in Premiere Pro?

    That was pretty much the question right there.

    First reset position and scale. If you insist on doing this in the inspector then in the crop function in the inspector use the Type pop to select Crop. There are three options: Trim, Crop, and Ken Burns. It's easiest to do this in the viewer. After you reset position and scale, the transform function, press Shift-C. You'll see three buttons at the top as well as a keyframe button. Select the middle button and press the keyframe button when the playhead is at the start position. It'll look like this.
    Go to the end position and change the crop value. It'll look like this or something like it.
    Click Done.
    Can you do this step-by-step and see what happens?

  • Hello.I can`t buy applications in my apple id.Then i buy in applications writes error contact support.Can you fix this problem?Thaks

    Hello.I can`t buy applications in my apple id.Then i buy in applications writes error contact support.Can you fix this problem?Thaks

    We are all itunes users just like you.
    You need to contact itunes support.
    http://www.apple.com/support/itunes/contact/

  • I am using Toast 11 to burn dvd's. With FCP10.1.3  I could go into the FCP shared folder grab the encoded .m2v file and drag it into Toast 11 and author dvd and burn.  How can you do this with FCP 10.1.4?

    I am using Toast 11 to burn dvd's. With FCP10.1.3  I used to go into the FCP shared folder grab the encoded .m2v file and drag it into Toast 11 and author dvd and burn.  How can you do this with FCP 10.1.4? 

    BenB it creates a disc image only and it's not in .m2v. I think it saved it as an Apple Pro Res 422 format instead. The disc image file format will not allow
    Toast 11 to create menus etc.  Thanks for your help.

  • Can you do this with AE?

    I have an old highschool video where I look terrible, I was wondering since I know you can use photoshop to edit the photos (eg: remove bags from undereyes, change eye color ect..) can you do this type of stuff with after effects, and if so how? I'm thinking about purchasing it as long as it can do that type of thing.If it cant, is there any software out there that will?
    Thank you so much,
    Rachel

    Yes, you can change eye color and remove blemishes from skin with After Effects.
    There are many ways to do this sort of thing in After Effects. Here are a couple of suggestions:
    To change eye color, use the
    Change Color effect. You can use masks on an adjustment layer to isolate the areas that the effect affects. You'll probably end up playing with blending modes to blend the result in with the original.
    To remove blemishes, you can use the
    Clone Stamp tool to sample a patch of clear skin and use it over the blemish, or you might just end up changing the colors of the blemishes.
    I recommend starting by going to the
    After Effects Community Help and Support page. Work your way through the material in the "Getting started" section. Then, after you've gone through those basic materials, come back here with detailed questions.

Maybe you are looking for

  • Pages 5.5 different first page template

    Hello, In Pages 4.3 I was able to create a template with different first page header and footer (just create 2 page document, manage headers and footers, then delete body text and save as template). Well, in Pages 5.5 I have problem with that. OK, it

  • How to create Business System

    Hi I have created a Business System in SLD... But in  Configuration time when i am trying to Assign Business System in my scenaro i am not getting the Business System which i have created in SLD... How can solve this problem... Pls help me Best Regar

  • How to use a custom servlet in iFS?

    Hi, I'm creating a custom servlet to download files from iFS to local drive. My question is where should I put the servlet class file, and how do I invoke this servlet from a ifs jsp file? I'm running iFS 1.1.9, with JWS web server. Thanx. [email pro

  • Audigy (1) - install nightm

    For friend and LAN party, I need quickly setup machine for Warcraft III play. I use my Audigy2zs mainly, but I still have the old Audigy (), so I used it to the machine I build. And the problem is driver instaling, clearly. I headed out for drivers t

  • Error creating datasouse using MySQL 5.1.11

    When I try to create a datasourse using Coldfusion MX7 to a MySQL database, I get the following error: Connection verification failed for data source: Nascar java.sql.SQLException: Communication failure during handshake. Is there a server running on