Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Newbie Help

Re: Newbie Help

From: Rocky <peawet08_at_hotmail.com>
Date: Tue, 5 Nov 2002 15:30:16 -0000
Message-ID: <3dc7e406$0$28313$fa0fcedb@lovejoy.zen.co.uk>


You would be right of course it is homework. However I have been trying to solve this problem for 4 days now and am getting a little stressed out.

I have tried SUM and GROUP BY but keep getting errors in the combinations that I have used.

Cheers

Rocky

  "Alan Mills" <Alan.Mills_at_nospamservices.fujitsu.com> wrote in message news:aq8kbb$d13$1_at_news.icl.se...   Working onthe assumption that this is a homework assignment, I'm not going to answer it directly.

  However, indirectly, think in terms of SUM and GROUP BY.

  Alan
    "Rocky" <peawet08_at_hotmail.com> wrote in message news:3dc7d1d1$0$28312$fa0fcedb_at_lovejoy.zen.co.uk...     I am just starting to learn SQL and am stuck on a question in my tutorial.

    I have used the following:

    select assignment_type, assignments.project_identifier, description, hours_allocated     from assignments, projects
    where assignments.project_identifier = projects.project_identifier;

    to retreive the following:

    AS PROJECT_IDENTIFIER DESCRIPTION HOURS_ALLOCATED

    AS PROJECT_IDENTIFIER DESCRIPTION HOURS_ALLOCATED

    My problem is that I need to display in another colunm, the total hours for each assignment type.

    Can anybody please show me the easiest way to do this.

    Thanks

    Rocky Received on Tue Nov 05 2002 - 09:30:16 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US