Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need SUM Formula

Status
Not open for further replies.

Crystalfire

Programmer
Jan 29, 2002
315
0
0
US
I have a Centura Report that list the Hours of assembly of a work order. The report shows these hours by by each part number used for that particular work ordr. I need a formula that would sum up the hours for the total work order. Thanks!
 
Not sure what the exact SQLBase syntax is but I assume it is similar to Oracle:

SELECT WORK_ORDER_ID,
SUM(HOURS)
FROM WORK_TABLE
GROUP BY WORK_ORDER_ID

would do it in Oracle assuming that WORK_ORDER_ID is repeated in the WORK_TABLE for each assembly.

Jm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top