41
When doing a new database click here. To open an existing file select from the list or clcik on Open Other Files and find it. Title: Feb 110:50 AM (1 of 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

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

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

When doing anew databaseclick here.

To open an existing fileselect from the list orclcik on Open Other Filesand find it.

Title: Feb 1­10: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

Be sure to give the database a name and tell where it is stored.

Title: Feb 1­11: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

I am calling the databaseSecondDB.accdb and I amstoring it on the root of theE drive.Note the extension is .accdb

Title: Feb 1­11: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

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 1­11: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

Title: Feb 1­11: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

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 1­11: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

The second field is stuname which is alsoshort text and the field size is set at 50.

Title: Feb 1­11: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

Now I am adding major.  It is also short text with field size 2.

Title: Feb 1­11: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

The gpa is a numeric field.  The field size is setat single for a small decimal number.

Title: Feb 1­11: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

The numCredits field is also numeric and it has Integer as the field size.

Title: Feb 1­11: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

I entered a variety of data.

Title: Feb 1­11: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

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 1­11: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

I select the stu table and clickon Add at the bottom of the screen.

Title: Feb 1­11: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

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 1­11: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

Title: Feb 1­11: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

I brought down all the fields except gpa.

Title: Feb 1­11: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

Title: Feb 1­11: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

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 1­11: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

I am saving the query.

Title: Feb 1­11: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

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 1­11: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

Title: Feb 1­11: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

Logic flowchart for two things inan AND relationship.Diamond for decisions and parallelogram for input or output.

Title: Feb 1­11: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

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 1­11: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

The one record without CI inthe major has a gap > 3 so it isdisplayed.

Title: Feb 1­11: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

Title: Feb 1­11: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

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 1­11: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

Title: Feb 1­11: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

If the > 15 was on the same line as the > 3then we have CI or both gpa > 3 and numCredits > 15

Title: Feb 1­11: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

Title: Feb 1­11: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

Title: Feb 1­11: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

This shows CI or gpa > 3 ornumCredits > 15

Title: Feb 1­11: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

The flowchart forCI OR both gpa > 2 andnumCredits > 15

Title: Feb 1­11: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

Now I want the major of CI and in additioneither the gpa is > 3 OR numCredits > 25.

Title: Feb 1­11: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

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 1­12: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

Title: Feb 1­12: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

CI is true which it has to beand then either gpa is > 3 OR numCredits > 25

Title: Feb 1­12: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

Now try this

Title: Feb 1­12: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

Title: Feb 1­12: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

Title: Feb 1­12: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

Title: Feb 1­12: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

Title: Feb 1­12:14 PM (41 of 41)