done with SQL.
table I am using.
I added the table and the I clicked on SQL view.
Since I added a table prior to using SQL it tells that I am using students. If I had not done that, I would only see SELECT and I would need to write the FROM clause.
SELECT * means select everything. All records and all fields will show.
Here I am specifying what fields to select Here I am specifying what fields to select. The names are the names I used when I set up the table.
This shows the three fields from all of the records.
Here I only want records where the stumajor = "CI".
The results of showing all records where the stumajor is CI.
I went back to the user interface I went back to the user interface. For some reason it puts stumajor twice but notice one is not checked so it only displays once. On earlier versions you do not see this, you would see CI under the original stumajor field.
When I first use the user interface and then ask to see the SQL, I see a much more complex version. I want you to write the basic code, not the complex code generated by Access.
If I were in the user interface, these would both be on the criteria line.
Query results.
In the user interface, one of these would be on the criteria line and one on the or line.
Remember, this is an OR relationship so Linda got on the list because her stugpa > 3 and Jane go on the list because she was a CI major. As it turns out the other people on the list meet both criteria.
Note this is the pervious query, I have not copied and pasted the new one here yet. or line.
I copied and pasted the SELECT to the SQL and executed and this is the result.
This shows what it would have looked like if I had done it in the user interface.
If I do not use the parenthesis, it is a very different situation. Since ANDs get resolved before ORs, I group the two things around the AND and the OR stands alone.