Docsity

CS 101 Summer Section 5 Lecture Notes: Creating and Modifying Databases, Study notes of Microcomputers

Toggle sidebar
bg1
CS 101 Summer Section 5
Friday, June 05, 2009
Lecture Notes
Announcements
oExam Grades will be posted later today.
We Will Go Over the Exam on Monday
oSecond Number is Current Grade in Class
oFinish MyITLab 1 & 2 if You Haven’t Yet
oHomework 3 Due Monday
oUltimate Steal – Office Ultimate for $59.95
Creating Own Database
oMake a New File
oMake the Students, Courses, Instructors, & Buildings Tables
Start with Buildings Table
Modify Properties of Cells
Use Lookup for Academic Status in Students Table
Have Building Number in Students Table Indexed
Index – Easier Memory Access to Field
oLike an Index in a Book
Notice that Name was Broken into First & Last Names
oNow Create the Registrations Table
Make Both the StudentID and CourseID Primary Keys
Modify Properties of Cells
oIndex Building Number and StaffID
oEstablish One-to-Many Relationships for the Following Tables
Buildings to Students: Building Number
Buildings to Registration: Building Number
Students to Registration: StudentID
Courses to Registration: CourseID
Instructors to Registration: StaffID
oMake Sure Referential Integrity is Checked
Ensures that Data Stored is Consistent Across Tables
Review Table Construction
oDifferences between Datasheet & Design View
Design View – Create Fields and Set Up Field Properties
Datasheet View – Enter Data
oDesign View
Create All Fields Needed
Establish Primary Key
Unique Field That Identifies Each Record in Table
Usually an Identification Record
pf2

Partial preview of the text

Download CS 101 Summer Section 5 Lecture Notes: Creating and Modifying Databases and more Study notes Microcomputers in PDF only on Docsity!

CS 101 Summer Section 5

Friday, June 05, 2009

Lecture Notes

 Announcements o Exam Grades will be posted later today.  We Will Go Over the Exam on Monday o Second Number is Current Grade in Class o Finish MyITLab 1 & 2 if You Haven’t Yet o Homework 3 Due Monday o Ultimate Steal – Office Ultimate for $59.  Creating Own Database o Make a New File o Make the Students, Courses, Instructors, & Buildings Tables  Start with Buildings Table  Modify Properties of Cells  Use Lookup for Academic Status in Students Table  Have Building Number in Students Table Indexed  Index – Easier Memory Access to Field o Like an Index in a Book  Notice that Name was Broken into First & Last Names o Now Create the Registrations Table  Make Both the StudentID and CourseID Primary Keys  Modify Properties of Cells o Index Building Number and StaffID o Establish One-to-Many Relationships for the Following Tables  Buildings to Students: Building Number  Buildings to Registration: Building Number  Students to Registration: StudentID  Courses to Registration: CourseID  Instructors to Registration: StaffID o Make Sure Referential Integrity is Checked  Ensures that Data Stored is Consistent Across Tables  Review Table Construction o Differences between Datasheet & Design View  Design View – Create Fields and Set Up Field Properties  Datasheet View – Enter Data o Design View  Create All Fields Needed  Establish Primary Key  Unique Field That Identifies Each Record in Table  Usually an Identification Record

 Primary Key can be Combination of Fields  Data Types  Number – Simply a Number Type  Text – Contains Words  Memo – Can Hold More Words (Good for Analysis Answers)  Date/Time – Date Format  Yes/No – Can Only be Yes or No  AutoNumber – Automatically Increments Number by One for Each new Field o Cannot Modify Data in Field  Lookup Wizard – Create Drop-Down Menu of Possible Options for Data o Can Either Come From Table or Create Own Options  Table Properties – Characteristics for Each Field to Determine How They Will Behave o Field Size – Limits Size of Text  With Numbers, You’ll Use Either Integer or Double  Use Double when dealing with Decimals o Format – Changes How Field is Displayed o Input Mask – How to Input Data  Ex. Phone Number or Social Security Number o Caption – Places Label for Field  Will Appear in Place of Field Name in Datasheet View o Default Value – Initial Data in Field o Validation Rule – Only Allow Data that Meets Particular Rule o Validation Text – Error Message Displayed if Rule is Broken o Required – Fields Must have a Value o Indexed – Makes Searching Easier for Memory Purposes  Good for Primary Keys and Foreign Keys o Review Lookup Wizard  Can create own list  Can create list from another table