G
Guest
For some reason I can not get this LEFT JOIN SQL to work. According to the
SQL below I should only see one Ticket# from the TroubleTicket Table, but
when I run this query it shows a Ticket# for every Action#. Can someone tell
me what I am doing wrong? I have done this several times before and it
worked just fine.
SELECT TroubleTicket.[Ticket#] AS [TroubleTicket_Ticket#],
TroubleTicket.RequestDate, TroubleTicket.[RequestDate&Time],
TroubleTicket.RequestedBy, TroubleTicket.Type,
TroubleTicket.DescriptionOfProblem, TroubleTicket.Priority,
TroubleTicket.Status, TroubleTicket.Notes, TroubleTicketActionList.[Action#],
TroubleTicketActionList.[Ticket#] AS [TroubleTicketActionList_Ticket#],
TroubleTicketActionList.Date, TroubleTicketActionList.CompletedBy,
TroubleTicketActionList.ActionTaken
FROM TroubleTicket LEFT JOIN TroubleTicketActionList ON
TroubleTicket.[Ticket#] = TroubleTicketActionList.[Ticket#];
SQL below I should only see one Ticket# from the TroubleTicket Table, but
when I run this query it shows a Ticket# for every Action#. Can someone tell
me what I am doing wrong? I have done this several times before and it
worked just fine.
SELECT TroubleTicket.[Ticket#] AS [TroubleTicket_Ticket#],
TroubleTicket.RequestDate, TroubleTicket.[RequestDate&Time],
TroubleTicket.RequestedBy, TroubleTicket.Type,
TroubleTicket.DescriptionOfProblem, TroubleTicket.Priority,
TroubleTicket.Status, TroubleTicket.Notes, TroubleTicketActionList.[Action#],
TroubleTicketActionList.[Ticket#] AS [TroubleTicketActionList_Ticket#],
TroubleTicketActionList.Date, TroubleTicketActionList.CompletedBy,
TroubleTicketActionList.ActionTaken
FROM TroubleTicket LEFT JOIN TroubleTicketActionList ON
TroubleTicket.[Ticket#] = TroubleTicketActionList.[Ticket#];