0

Hi i created a database in Microsoft Access and i have been trying to find specific stuff through query's but when i try to test my query i keep getting a syntax error saying i miss an operator this is my query:

SELECT student.name
FROM institution 
    INNER JOIN major on major.institutionID = institution.institutionID
    INNER JOIN class on class.majorID = major.majorID
    INNER JOIN student on student.classID = class.classID 
WHERE institution.institutionName == CMI && student.gender == boy;
2

2 Answers 2

3

Try changing the where clause to this:

WHERE institution.institutionName = "CMI" AND student.gender = "boy";

In MS Access, & is for string concatenation. I assume the error is because a string is expected between the two &s.

Sign up to request clarification or add additional context in comments.

Comments

0

use the word AND instead of && in your where clause

1 Comment

Also, string literals should be enclosed in quotes, and the == is not a valid operator.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.