the following sql doesnt quite do what I am tryinh to achieve
so when its run I get a table like so
the problem is that you will see the Inbound.tblRRound is duplicated because there is 2 outbound dates how do I stop it from duplicate fields?
PHP:
SELECT DISTINCT Employees.tblInitials, Inbound.tblDate_Review AS Inbound, Inbound.tblRRound, Outbound.tblDate_Review AS Outbound, Outbound.tblRRound, Critical_Criteria.tblDate_Review AS [Critical Criteria], Mandatory_Skills_Data.tblDate_Review AS Data, Mandatory_Skills_Helpdesk.tblDate_Review AS Helpdesk, Mandatory_Skills_IRO.tblDate_Review AS IRO
FROM (((((Employees LEFT JOIN Inbound ON Employees.tblInitials = Inbound.tblInitials) LEFT JOIN Outbound ON Employees.tblInitials = Outbound.tblInitials) LEFT JOIN Critical_Criteria ON Employees.tblInitials = Critical_Criteria.tblInitials) LEFT JOIN Mandatory_Skills_Data ON Employees.tblInitials = Mandatory_Skills_Data.tblInitials) LEFT JOIN Mandatory_Skills_Helpdesk ON Employees.tblInitials = Mandatory_Skills_Helpdesk.tblInitials) LEFT JOIN Mandatory_Skills_IRO ON Employees.tblInitials = Mandatory_Skills_IRO.tblInitials;
so when its run I get a table like so
Code:
tblInitials Inbound Inbound.tblRRound Outbound Outbound.tblRRound Critical Criteria Data Helpdesk IRO
AAS 2/10/2004 1 3/23/2004 2
AAS 2/10/2004 1 6/29/2004 3
the problem is that you will see the Inbound.tblRRound is duplicated because there is 2 outbound dates how do I stop it from duplicate fields?
Last edited: