Hello all,
Created a query based on one table, this table has few 1-many relationships.
Query works as it should be until I replace FK numbers with texts from related table. It works for all table but one. When I add table T_area query starts to duplicate records, but only in the query, doesn't make any changes to tables.
This is my relationship layout:
This is my SQL:
So far I tried: Grouping and changing INNER JOIN to any other possible but no luck.
Can you advice please.
Thank you.
Created a query based on one table, this table has few 1-many relationships.
Query works as it should be until I replace FK numbers with texts from related table. It works for all table but one. When I add table T_area query starts to duplicate records, but only in the query, doesn't make any changes to tables.
This is my relationship layout:

This is my SQL:
Code:
SELECT
T_task.tTaskPK
, T_task.tTaskToDo
, T_task.tQAFK
, T_TaskType.ttName
, T_task.tTaskCompleted
, T_task.tTaskDueDate
, T_task.tTaskComplDate
, T_user.userName
, T_task.tUser2
, T_department.dDeptName
, T_area.aAreaPK
, T_task.tPriority
, T_task.tExecuteTime
, T_task.tMSP
, T_PartSourcing.psName
, T_task.tPMcard
FROM ((T_department
INNER JOIN T_user ON T_department.dDeptPK = T_user.udeptFK)
INNER JOIN (T_TaskType
INNER JOIN (T_PartSourcing
INNER JOIN T_task ON T_PartSourcing.psPK = T_task.tPartSourcing) ON T_TaskType.ttPK = T_task.tTaskTypeFK) ON T_user.uUserPK = T_task.tUserFK)
INNER JOIN T_area ON T_department.dDeptPK = T_area.aDeptFK;
So far I tried: Grouping and changing INNER JOIN to any other possible but no luck.
Can you advice please.
Thank you.