How to add values from a column and show the total result into another column?

  • Hello Everyone,

    I have a table 'employee' with 3 columns, EMPNO, HRS_WRKD, PAYCODE_NAME

    I run the following query to get totals on worked paycode

    select EMPNO, sum(HRS_WRKD), PAYCODE_NAME

    I get the following result

    EMPNO HRS_WRKD PAYCODE_NAME

    1234 32

  • select EMPNO, sum(HRS_WRKD), PAYCODE_NAME

    from tablename

    group by EMPNO, PAYCODE_NAME

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

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