Results 1 to 4 of 4

Thread: Combine values?

  1. #1

    Thread Starter
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123

    Combine values?

    Hello,

    I have a data table with these columns in it one for a date, one for Job Numbers and the other for job Hours(among many other columns),

    Example

    Date Job Number Job Hours Blah
    12/25/03......999........................8.0..............Blah
    12/31/03......696.........................7.75...........Blah
    12/25/03......999........................10.0..............Blah


    What I want to do is group all the rows with the same date and the same job number, then add the hours. Does anybody know a way to do this?

    The result of the above would be

    12/25/03..............999............18.0

    Oh by the way this data table is in access 2000

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Select Sum(Job) from table where datefield = 'thedate'
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123

    Thanks

    Sorry to bug you again!


    Is there any way to do this by looking for two values?

    Like date and employee name ?

    Something kinda like this?????

    select sum(job) form table where datefield = ' thedate' and form table where namefield = ' thename'

  4. #4

    Thread Starter
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123
    Anyway to do this?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width