I have two tables. They’re in a 1:N relationship.
Tasks – Id
– Name
Report – Id
– Time
– TaskId -FK
I’d like to create a query which will sum the report time by a task.
I tried this,but its not working
SELECT NAME,SUM (TIME) FROM TASKS LEFT JOIN REPORT ON TASKS.ID = REPORT.TASKID
GROUP BY TASKS.NAME
Its Oracle and with this query the time column is null in the result.
1 Answer