This is the select statement from a (what I thought was simple) query. I have a table tblLogistics that I want to see all records from. I know that some of the lines will be blank from the other table because they don't all have the data I am looking for. I thought if I joined with a left join it would show all the records from the tbllogistics. Am I looking at this wrong?
SELECT tblLogistics.Sort, tblLogistics.[Type-2], tblLogCosts.Actual, tblLogCosts.AOP
FROM tblLogistics LEFT JOIN tblLogCosts ON tblLogistics.Desc = tblLogCosts.Desc
GROUP BY tblLogistics.Sort, tblLogistics.[Type-2], tblLogistics.Country, tblLogCosts.Actual, tblLogCosts.AOP, tblLogCosts.FYPeriod, tblLogCosts.FYYear
HAVING (((tblLogistics.Country)="Venezuela IMC") AND ((tblLogCosts.FYPeriod)=6) AND ((tblLogCosts.FYYear)=2010))
ORDER BY tblLogistics.Sort;
SELECT tblLogistics.Sort, tblLogistics.[Type-2], tblLogCosts.Actual, tblLogCosts.AOP
FROM tblLogistics LEFT JOIN tblLogCosts ON tblLogistics.Desc = tblLogCosts.Desc
GROUP BY tblLogistics.Sort, tblLogistics.[Type-2], tblLogistics.Country, tblLogCosts.Actual, tblLogCosts.AOP, tblLogCosts.FYPeriod, tblLogCosts.FYYear
HAVING (((tblLogistics.Country)="Venezuela IMC") AND ((tblLogCosts.FYPeriod)=6) AND ((tblLogCosts.FYYear)=2010))
ORDER BY tblLogistics.Sort;