Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 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

2 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

3 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

4 Naming Convention [prefix][tag][BaseName][Suffix] tblSuppliers frmSuppliersAndProducts sfrmProducts tblCountryLookup

5 Relationships... Three types One-to-One One-to-Many Many-to-Many create links between tables in a database

6 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

7 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

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 1 1 8 8 Table ATable B Linking table Composite Primary key

9 Terminology Primary or Parent Table Related or Child Table Primary Key Foreign Key Referential Integrity Entity

10 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


Download ppt "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."

Similar presentations


Ads by Google