here's the actual query
but wont that just return the job_id. in my example job_id 2. i want to sum the rows where job_id=2 and crew_id=2 , then job_id=2 and crew_id=7
SELECT *
FROM [SELECT jobs.id, jobs.name, jobs.size, jobs.roof_crew_rate, jobs.size*jobs.roof_crew_rate AS roof_pays...