hello i have this query i want it to also return rows from table j(jobcard) where j.articleId,j.statusId,j.hcwsId,j.gpId are null any help plz?
SELECT jobcardId,createDateTime,jobNo,companyId,
customerId,serialNo,rsvdDate,model,promiseDate,
readyDate,deliveryDate,cashMemoNo,dealer,
dop,status,warrantyCardno,batchNo,
employeeId,hcws,gp,cdId,
collectionDate,remarks,article
FROM jobcard j, articles a, statuses s, hcws h, gp g
WHERE j.articleId=a.articleId AND
j.statusId = s.statusId AND
j.hcwsId = h.hcwsId AND
j.gpId=g.gpId"
jobcardhas actual NULL values, or do you mean that there are no matches for the row in the other tables?LEFT JOIN. here: Visual Representation of SQL Joinsarticles, not likely what he wants.