I have the following tables:
Student Data
- Student ID (primary key)
Prior Education
- Student ID (foreign key)
- Prior Education Code
At the moment I have a query that displays various data from Student Data with one record per student. I want to add an additional column to this query that shows “Y” if there is at least one matching record in Prior Education and “N” is there is no matching record. Basically I want an answer to the question “Does this student have any prior education?”.
I want one record per student in the query regardless of how many records they have in Prior Education.
I’m working in MS Access and have little experience with SQL so solutions that don’t require much SQL knowledge are preferable, but not necessary.
You may use
LEFT JOINandIIF.EDIT: