Download presentation
Presentation is loading. Please wait.
1
week 3. criteria must be true.
3
This is because in logic ANDs are resolved before ORs meaning the things around the AND get grouped.
4
it drops to the second and tests to see if either of the other condtions are true.
5
questions.
6
question first.
7
separately.
9
This is the table I am going to use to introduce SQL (also called sequel).
10
Now I will go to view, click the arrow beneath and select the SQL view.
11
In SQL I wrote the code. SQL is the language behind the user interface
In SQL I wrote the code. SQL is the language behind the user interface. It is what always gets executed. You can also write the SQL directly. I need a semi-colon at the end of the SQL. show better in class. Notepad is not involved in what I am doing in Access.
12
Shows the results.
13
Here I want to show only these fields
Here I want to show only these fields. Note the field names must be names I defined when I created stu.
14
Shows the data that was retrieved and displayed.
15
Note that I am using the same type for comparison
Note that I am using the same type for comparison. The field gpa was defined as numeric and I am comparing to the number 3.
17
Shows results but since I forgot to put major in the select I am not seeing it here.
18
I added numcr to the select so I will see it and I am now testing two conditions in an AND relationship.
20
Now I am testing two things in an OR relationship.
22
Now I want major CI and either of the other two.
25
Major and gpa will be asked as a group and numcr > 20 will stand alone.
31
I can simplify this a lot.
32
I started to simplify, but in fact I only want major = "CI" once.
34
gpa > 3.2
36
This is the simplified version.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.