HO 1 & 2 - Check Have you: Created a new Access database –Hands-on 1 Created a Suppliers table in design view –Hands-on 2 Downloaded and unzipped the two Excel files containing data for your tables –D1resources.zip
Have you: Used Paste Append to copy data from an Excel spreadsheet into the suppliers table Created a Products table by importing data from an Excel spreadsheet HO 3 - Check
Reminders Give your objects meaningful names and use the Use the sample Northwind database as a learning resource –But note it doesn’t adhere to the naming convention! naming convention
Naming Convention [prefix][tag][BaseName][Suffix] tblSuppliers frmSuppliersAndProducts sfrmProducts tblCountryLookup
Relationships... Three types One-to-One One-to-Many Many-to-Many create links between tables in a database
One to One One record in Table A is related to one record in Table B TutID Name RoomNumber... tblTutorsPublic TutID Salary BankAccount... tblTutorsPersonal Table ATable B 11
One to Many One record in Table A may be related to one or more records in Table B TutID Name RoomNumber... tblTutorsPublic ModID TutID Day Room... tblModules Table ATable B 1 8
Many to Many One record in either table can relate to many records in the other table ModID TutID Day Room... tblModules StuID Fname Sname... tblStudents ModID StuID Grade... tblStudentModules Table ATable B Linking table Composite Primary key
Terminology Primary or Parent Table Related or Child Table Primary Key Foreign Key Referential Integrity Entity
Review Tables and relationships are the foundation of your database Each table should have a primary key Enforce referential integrity to maintain consistency The fields that link the child table to the parent table are called foreign keys