I am joining 3 tables together although when there are no matching results in the contributor table nothing is retuned for the whole record set.
I would like the firstname and lastname to just say null if there is nothing in them. Can anyone help?
I would like the firstname and lastname to just say null if there is nothing in them. Can anyone help?
Code:
SELECT
E.EventID,
E.Title,
E.BriefDescription,
E.Description,
E.ThumbnailImageID,
E.ImageID,
E.StartDateTime,
E.EndDateTime,
E.Cost,
E.EventTypeID,
E.isAdults,
E.isChildren,
E.InsertedBy,
E.InsertedDate,
C.FirstName,
C.LastName
FROM
Event AS E
LEFT JOIN
EventContributor AS EC
ON EC.EventID = E.EventID
LEFT JOIN
Contributor AS C
ON EC.ContributorID = C.ContributorID
WHERE EC.EventID = 3