Title: Feb 110:50 AM (1 of...
Transcript of Title: Feb 110:50 AM (1 of...
![Page 1: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/1.jpg)
When doing anew databaseclick here.
To open an existing fileselect from the list orclcik on Open Other Filesand find it.
Title: Feb 110:50 AM (1 of 41)
![Page 2: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/2.jpg)
Be sure to give the database a name and tell where it is stored.
Title: Feb 111:05 AM (2 of 41)
![Page 3: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/3.jpg)
I am calling the databaseSecondDB.accdb and I amstoring it on the root of theE drive.Note the extension is .accdb
Title: Feb 111:06 AM (3 of 41)
![Page 4: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/4.jpg)
I want to use a different way of entering data so I click onthe tools icon and save the table. Then the prefered wayof entering data comes up.
Title: Feb 111:07 AM (4 of 41)
![Page 5: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/5.jpg)
Title: Feb 111:08 AM (5 of 41)
![Page 6: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/6.jpg)
Now I am laying out the structure of the table.The first field is stuid that is short text and thefield size I established as 5.This field also has the primary key next to itwhich means that every record will need tohave a unique stuid. If you try to enter a stuidthat already exists you will get an error.
Title: Feb 111:10 AM (6 of 41)
![Page 7: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/7.jpg)
The second field is stuname which is alsoshort text and the field size is set at 50.
Title: Feb 111:10 AM (7 of 41)
![Page 8: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/8.jpg)
Now I am adding major. It is also short text with field size 2.
Title: Feb 111:11 AM (8 of 41)
![Page 9: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/9.jpg)
The gpa is a numeric field. The field size is setat single for a small decimal number.
Title: Feb 111:12 AM (9 of 41)
![Page 10: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/10.jpg)
The numCredits field is also numeric and it has Integer as the field size.
Title: Feb 111:12 AM (10 of 41)
![Page 11: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/11.jpg)
I entered a variety of data.
Title: Feb 111:17 AM (11 of 41)
![Page 12: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/12.jpg)
I closed the table. Then I clicked on Create followed by Query Wizard toset up a query. A query is something I can set up to extract a list ofinformation that meets the criteria I establish.
Title: Feb 111:21 AM (12 of 41)
![Page 13: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/13.jpg)
I select the stu table and clickon Add at the bottom of the screen.
Title: Feb 111:21 AM (13 of 41)
![Page 14: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/14.jpg)
I bring down the fields the I want to showin the output from the query.
I accidently clicked on something tobring up this sheet ignore it!
Title: Feb 111:22 AM (14 of 41)
![Page 15: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/15.jpg)
Title: Feb 111:22 AM (15 of 41)
![Page 16: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/16.jpg)
I brought down all the fields except gpa.
Title: Feb 111:23 AM (16 of 41)
![Page 17: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/17.jpg)
Title: Feb 111:24 AM (17 of 41)
![Page 18: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/18.jpg)
I am putting CI in quotes on the criteria under the majorfield. That means that the only records display will be oneswith a CI in the major field.
Title: Feb 111:27 AM (18 of 41)
![Page 19: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/19.jpg)
I am saving the query.
Title: Feb 111:29 AM (19 of 41)
![Page 20: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/20.jpg)
Now I am adding > 3 under the gpa so I am asking to displayall records that havae a CI in major and >3 in gpa.Note that these two things are in an AND relationship.
Title: Feb 111:31 AM (20 of 41)
![Page 21: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/21.jpg)
Title: Feb 111:32 AM (21 of 41)
![Page 22: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/22.jpg)
Logic flowchart for two things inan AND relationship.Diamond for decisions and parallelogram for input or output.
Title: Feb 111:35 AM (22 of 41)
![Page 23: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/23.jpg)
Now I have moved the >3 from the criteria lineto the OR line. I now have major has to be CI OR gpa has to be > 3. This is an ORrelationship.
Title: Feb 111:37 AM (23 of 41)
![Page 24: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/24.jpg)
The one record without CI inthe major has a gap > 3 so it isdisplayed.
Title: Feb 111:38 AM (24 of 41)
![Page 25: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/25.jpg)
Title: Feb 111:41 AM (25 of 41)
![Page 26: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/26.jpg)
Now I have three things in an OR relationship.The line below the or line can also be used asan OR line. I have >15 under numCredits.So I have major of CI or gpa > 3 or numCredits > 15.
Title: Feb 111:43 AM (26 of 41)
![Page 27: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/27.jpg)
Title: Feb 111:44 AM (27 of 41)
![Page 28: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/28.jpg)
If the > 15 was on the same line as the > 3then we have CI or both gpa > 3 and numCredits > 15
Title: Feb 111:45 AM (28 of 41)
![Page 29: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/29.jpg)
Title: Feb 111:45 AM (29 of 41)
![Page 30: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/30.jpg)
Title: Feb 111:46 AM (30 of 41)
![Page 31: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/31.jpg)
This shows CI or gpa > 3 ornumCredits > 15
Title: Feb 111:48 AM (31 of 41)
![Page 32: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/32.jpg)
The flowchart forCI OR both gpa > 2 andnumCredits > 15
Title: Feb 111:51 AM (32 of 41)
![Page 33: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/33.jpg)
Now I want the major of CI and in additioneither the gpa is > 3 OR numCredits > 25.
Title: Feb 111:54 AM (33 of 41)
![Page 34: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/34.jpg)
To make this work the CI is on both thecriteria line and the OR line so this readsmajor CI and gpa > 3 ORmajor CI and numCredits > 25
So CI is true in both which is a requirement.
Title: Feb 112:00 PM (34 of 41)
![Page 35: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/35.jpg)
Title: Feb 112:02 PM (35 of 41)
![Page 36: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/36.jpg)
CI is true which it has to beand then either gpa is > 3 OR numCredits > 25
Title: Feb 112:04 PM (36 of 41)
![Page 37: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/37.jpg)
Now try this
Title: Feb 112:10 PM (37 of 41)
![Page 38: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/38.jpg)
Title: Feb 112:10 PM (38 of 41)
![Page 39: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/39.jpg)
Title: Feb 112:11 PM (39 of 41)
![Page 40: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/40.jpg)
Title: Feb 112:11 PM (40 of 41)
![Page 41: Title: Feb 110:50 AM (1 of 41)cisweb.bristolcc.edu/~pgrocer/audio_smartboardS18/CIS120/c120Feb118.pdfTitle: Feb 112:00 PM (34 of 41) Title: Feb 112:02 PM (35 of 41) CI is true which](https://reader034.fdocuments.us/reader034/viewer/2022050405/5f8282e3ad8d107b9c3aaf42/html5/thumbnails/41.jpg)
Title: Feb 112:14 PM (41 of 41)