Retrieve Values

  • [font="Verdana"]Hi all

    I am kind of stuck trying to find this out. Could some one please shed some light on this. I have a Table with the following structure please see attached

    I need to extract a table which checks and produces a result in one row for each staff member with the staffno, camins and cagrpmins. so the result should be in one row (please refer attached)

    I am kind of stuck doing this bit. any hints is greatly appreciated.

    Thanks

    Vani

    [/font]

  • Hi all

    Its working now...

    if any one needs it below is the code

    select staffno, sum(camins), sum(cagrpmins) from Tablename groupby staffno

    cheers

    Vani

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply