Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 2 Tables, Keys, and Relationships Series Editor Amy Kinser.

Similar presentations


Presentation on theme: "1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 2 Tables, Keys, and Relationships Series Editor Amy Kinser."— Presentation transcript:

1 1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 2 Tables, Keys, and Relationships Series Editor Amy Kinser by Hammerle, Kinser, Lending, and Nightingale

2 Understand database design Import data from other sources Enter data manually Create a table in Design view Understand masks and formatting Understand and designate keys Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 2

3 Understand basic principles of normalization Understand relationships between tables Create a one-to-many relationship Create a many-to-many relationship Understand referential integrity Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 3

4 4 Three-step database design process: 1.Identify entities, which become tables 2.Identify attributes, which become fields 3.Specify relationships between tables Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

5 5

6 6

7 7 Obtaining data from an outside source: Copy and paste selected worksheet cells Import a worksheet Import a named range Import text Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

8 8

9 9

10 10 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

11 11 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

12 12 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. !\(999") "000\-0000;0;_

13 13 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

14 14 Keys: Primary—uniquely identifies each record in a table record Foreign—a value in a table that is the primary key of another table Composite—combination of two fields Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

15 15 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

16 16 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

17 17 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

18 18 Normalization: Minimizes the duplication of information Redundancy is reduced Multiple smaller tables are used Foreign keys may be redundant Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

19 19 Relationships: One-to-many Many-to-many One-to-one Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

20 20 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

21 21 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

22 22 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

23 23 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

24 24 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

25 25 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

26 26 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

27 27 Enforcing referential integrity: Values in the field on the one side are unique A foreign key value cannot be added in the many side without having a matching primary key value on the one side Matching fields on both sides of the relationship have the same data type Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

28 28 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

29 29 Well-functioning database requires: – Investment of time: Planning Design – Identifying the needed tables and fields, and how these tables are related to each other. Data can be imported: – Excel – Word

30 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 30 Manually entry Two views – Datasheet – Forms Masked and formatted – ensures information is entered, stored, and displayed correctly

31 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 31 Keys: – Primary – Foreign – Composite Normalizing — minimizes duplication Relationships: – One-to-many – Many-to-many – One-to-one

32 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 32 Referential integrity ensures relationships remain consistent Edit Relationship dialog box selections: – Enforce Referential Integrity – Cascade Update Related Fields – Cascade Delete Related Records

33 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 33

34 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 34 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America.


Download ppt "1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 2 Tables, Keys, and Relationships Series Editor Amy Kinser."

Similar presentations


Ads by Google