SELECT FirstName, LastName, Email
FROM PATIENT
WHERE [LastName] LIKE 'K%' OR 'Ma%' AND [FirstName] LIKE 'K%' OR 'Ma%';
I need to display patients' first name, last name, and email whose last or first name starts with 'K' or 'Ma.'
This is my code and I am confused because MS Access does not recognize my SQL code. I tried to do it in this way as well but it doesn't work:
SELECT FirstName, LastName, Email
FROM PATIENT
WHERE [LastName] LIKE 'K%' AND 'Ma%' OR [FirstName] LIKE 'K%' AND 'Ma%';
How can I make my code be recognized by Access and print the correct results?