Show Null Values (1 Viewer)

cybersardinha

New member
Local time
Today, 13:46
Joined
Mar 24, 2022
Messages
24
Hi,

I have made a query:

Code:
SELECT tblPerson.PersonName AS Name, Last(tblPersonCert.CertDate) AS Datum
FROM tblPerson INNER JOIN (tblCert INNER JOIN tblPersonCert ON tblCert.CertID = tblPersonCert.CertID) ON tblPerson.PersonID = tblPersonCert.PersonID
GROUP BY tblPerson.PersonName, tblCert.CertName, tblPerson.StartDate
HAVING (((tblCert.CertName)="Hygiene"))
ORDER BY tblPerson.PersonName;

I wanted this query to show all entries on tblPerson.PersonName, also when there isn't any Value on CertDate.

Is this possible?

Thanks
 

CJ_London

Super Moderator
Staff member
Local time
Today, 12:46
Joined
Feb 19, 2013
Messages
16,629
change INNER JOIN to LEFT JOIN

not sure why you have aliased here

tblPerson.PersonName AS Name

but Name is a reserved word and should not be used for field names
 

cybersardinha

New member
Local time
Today, 13:46
Joined
Mar 24, 2022
Messages
24
Thanks, I've changed the field name.

I did that command with the query assistant.

When I change to LEFT JOIN i get an error that says something like JOIN-expression not used (I don't have access in English so I just translated)
 

Users who are viewing this thread

Top Bottom