Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Newbie Help
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
-- ------------------ ------------------------- ---------------
C3 1433 Results 9 C3 1433 Results 4 A1 2179 Student Tracking System 3 A1 2179 Student Tracking System 7 B2 2265 Staff Time Tabling 7 B2 2265 Staff Time Tabling 5 B2 2265 Staff Time Tabling 6 B2 3144 Room Time Tabling 6 A1 4134 Computerised Registers 5 A1 4134 Computerised Registers 8 A1 4134 Computerised Registers 9 AS PROJECT_IDENTIFIER DESCRIPTION HOURS_ALLOCATED
-- ------------------ ------------------------- ---------------
C3 6588 Course Developments 10 C3 6588 Course Developments 8
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 - 08:12:35 CST
![]() |
![]() |