Database Design - Section...

58
Database Design - Section 17 Student Guide

Transcript of Database Design - Section...

Page 1: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Database Design - Section 17 Student Guide

Page 2: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights
Page 3: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page i

Table of Contents

Database Design - Section 17 ..........................................................................................................................1 Lesson 1 - Working with Columns, Characters, and Rows ...........................................................................1 What Will I Learn? ........................................................................................................................................2 Why Learn It?................................................................................................................................................3 Tell Me / Show Me........................................................................................................................................4 Try It / Solve It ..............................................................................................................................................11 Lesson 2 - Practice Exercises and Quiz .........................................................................................................14 What Will I Learn? ........................................................................................................................................15 Why Learn It?................................................................................................................................................16 Tell Me / Show Me........................................................................................................................................17 Try It / Solve It ..............................................................................................................................................19 Lesson 3 - Work Experience and Community Involvement..........................................................................23 What Will I Learn? ........................................................................................................................................24 Why Learn It?................................................................................................................................................25 Tell Me / Show Me........................................................................................................................................26 Try It / Solve It ..............................................................................................................................................28 Lesson 4 - Limit Rows Selected ....................................................................................................................29 What Will I Learn? ........................................................................................................................................30 Why Learn It?................................................................................................................................................31 Tell Me / Show Me........................................................................................................................................32 Try It / Solve It ..............................................................................................................................................37 Lesson 5 - Comparison Operators .................................................................................................................41 What Will I Learn? ........................................................................................................................................42 Why Learn It?................................................................................................................................................43 Tell Me / Show Me........................................................................................................................................44 Try It / Solve It ..............................................................................................................................................51

Page 4: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights
Page 5: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 1

Lesson 1 - Working with Columns, Characters, and Rows

Lesson 1 - Working with Columns, Characters, and Rows

Page 6: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 2

What Will I Learn?

What Will I Learn?

Page 7: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 3

Why Learn It?

Why Learn It?

Page 8: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 4

Tell Me / Show Me

Tell Me / Show Me

Page 9: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 5

Tell Me / Show Me

Tell Me / Show Me

Page 10: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 6

Tell Me / Show Me

Tell Me / Show Me

Page 11: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 7

Tell Me / Show Me

Tell Me / Show Me

Page 12: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 8

Tell Me / Show Me

Tell Me / Show Me

Page 13: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 9

Tell Me / Show Me

Tell Me / Show Me

Page 14: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 10

Tell Me / Show Me

Tell Me / Show Me

Page 15: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 11

Try It / Solve It

Try It / Solve It

Page 16: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 12

Try It / Solve It

Try It / Solve It

Page 17: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 13

Try It / Solve It

Try It / Solve It

Page 18: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 14

Lesson 2 - Practice Exercises and Quiz

Lesson 2 - Practice Exercises and Quiz

Page 19: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 15

What Will I Learn?

What Will I Learn?

Page 20: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 16

Why Learn It?

Why Learn It?

Page 21: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 17

Tell Me / Show Me

Tell Me / Show Me

Page 22: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 18

Tell Me / Show Me

Tell Me / Show Me

Page 23: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 19

Try It / Solve It

Try It / Solve It

Page 24: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 20

Try It / Solve It

Try It / Solve It

Page 25: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 21

Try It / Solve It

Try It / Solve It

Page 26: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 22

Try It / Solve It

Try It / Solve It

Page 27: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 23

Lesson 3 - Work Experience and Community Involvement

Lesson 3 - Work Experience and Community Involvement

Page 28: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 24

What Will I Learn?

What Will I Learn?

Page 29: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 25

Why Learn It?

Why Learn It?

Page 30: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 26

Tell Me / Show Me

Tell Me / Show Me

Page 31: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 27

Tell Me / Show Me

Tell Me / Show Me

Page 32: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 28

Try It / Solve It

Try It / Solve It

Page 33: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 29

Lesson 4 - Limit Rows Selected

Lesson 4 - Limit Rows Selected

Page 34: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 30

What Will I Learn?

What Will I Learn?

Page 35: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 31

Why Learn It?

Why Learn It?

Page 36: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 32

Tell Me / Show Me

Tell Me / Show Me

Page 37: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 33

Tell Me / Show Me

Tell Me / Show Me

Page 38: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 34

Tell Me / Show Me

Tell Me / Show Me

Page 39: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 35

Tell Me / Show Me

Tell Me / Show Me

Page 40: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 36

Tell Me / Show Me

Tell Me / Show Me

Page 41: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 37

Try It / Solve It

Try It / Solve It

Page 42: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 38

Try It / Solve It

Try It / Solve It

Page 43: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 39

Try It / Solve It

Try It / Solve It

Page 44: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 40

Try It / Solve It

Try It / Solve It

Page 45: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 41

Lesson 5 - Comparison Operators

Lesson 5 - Comparison Operators

Page 46: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 42

What Will I Learn?

What Will I Learn?

Page 47: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 43

Why Learn It?

Why Learn It?

Page 48: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 44

Tell Me / Show Me

Tell Me / Show Me

Page 49: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 45

Tell Me / Show Me

Tell Me / Show Me

Page 50: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 46

Tell Me / Show Me

Tell Me / Show Me

Page 51: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 47

Tell Me / Show Me

Tell Me / Show Me

Page 52: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 48

Tell Me / Show Me

Tell Me / Show Me

Page 53: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 49

Tell Me / Show Me

Tell Me / Show Me

Page 54: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 50

Tell Me / Show Me

Tell Me / Show Me

Page 55: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 51

Try It / Solve It

Try It / Solve It

Page 56: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 52

Try It / Solve It

Try It / Solve It

Page 57: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 53

Try It / Solve It

Try It / Solve It

Page 58: Database Design - Section 17academy.oracle.com/.../Database_Design_-_Section_17_Student_Guide.pdf · Database Design - Section 17 Student Guide . Copyright © Oracle, 2004. All rights

Copyright © Oracle, 2004. All rights reserved.

Database Design - Section 17 Page 54