I'm running a query on the following type of data
EMPLOYEE PROJECT HOURS
G. Smith BB21 15
G. Jones BB21 20
G. Whiz BB60 40
G. Gee BD00 10
I want to sum the hours of the distinct projects selected in the query. For example, if I select all projects that begin with BB, I would expect the total to equal 75 hours.
Is there a way to do a compound statement keying on both the distinct and the hours?
EMPLOYEE PROJECT HOURS
G. Smith BB21 15
G. Jones BB21 20
G. Whiz BB60 40
G. Gee BD00 10
I want to sum the hours of the distinct projects selected in the query. For example, if I select all projects that begin with BB, I would expect the total to equal 75 hours.
Is there a way to do a compound statement keying on both the distinct and the hours?