Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SUM based on field contents in SQL
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SUM based on field contents in SQL
Miscellaneous
Thread ID:
00148204
Message ID:
00148204
Views:
77
I have a table contains a project code, job code and quantity. I need to generate a result set that will show, uniquely, job codes that are used in any project and the total quantity of that job code across all projects. i.e.

projectcode jobcode quantity
AAAAAAAA A1 5
BBBBBBBB A1 4
CCCCCCCC A1 1

This would generate a result set of: A1 10

Any suggestions greatly appreciated.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Next
Reply
Map
View

Click here to load this message in the networking platform