Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.

Similar presentations


Presentation on theme: "1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric."— Presentation transcript:

1 1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric Cameron, Rebecca Lawson Chapter 2 Tables and Queries in Relational Databases

2 Design a table Create and modify tables Share data Establish table relationships Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 2

3 Create a single-table query Specify query criteria for different data types Understand query sort order Run, copy, and modify a query Use the Query Wizard Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 3

4 Create a multitable query Modify a multitable query Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 4

5 Must have a good database design Systematic approach List all of the tables needed List all of the fields needed 5 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

6 Include the necessary data Design for now and future Store data in smallest parts Add calculated fields Design to accommodate date arithmetic Link tables using common fields 6 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

7 7

8 8 Organizations evolve over time Anticipate future needs of the organization

9 – Creating a customer name as one field is limiting Lack of flexibility Cannot be easily alphabetically displayed 9 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

10 Produces a value from an expression or function References one or more existing fields Calculated fields are stored in a table Enables adding data to: – Queries – Forms – Reports 10 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

11 11 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Calculated fields created with numeric data Calculated fields created using date/time data

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

13 Tables can be created by: – Typing field name in Design view – Entering table data in Datasheet view – Importing data from another database or application 13 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

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

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

16 16

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

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

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

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

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 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

28 Can be created two ways: – Query Design tool – Simple Query Wizard 28

29 29

30 30

31 Field Row Table Row Sort Row Show Row Criteria Row 31

32 Delimiter might be needed Delimiter automatically added by Access for some data types 32

33 33

34 34

35 35

36 36

37 Determines the order of records Sort order can be specified Determined from left to right 37

38 Click Run in Design view Double-click in the Navigation Pane 38

39 39

40 40

41 41

42 42

43 43

44 Contains two or more tables Uses related tables Similar to creating single-table query 44

45 Table and query design Queries answer questions Query Wizard Criteria for queries Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 45

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

47 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 47 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. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric."

Similar presentations


Ads by Google