Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students...

18
Module 5 Part 2 Introduction To Database

Transcript of Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students...

Page 1: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

Module 5 Part 2Module 5 Part 2

Introduction To DatabaseIntroduction To Database

Page 2: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

Module ObjectivesModule Objectives

• At the end of the module, students should be able to:– Describe the process of creating a database

in general terms– Compare and contrast relational and object-

oriented databases– Explain what a data warehouse is and how it

differs from a database

Page 3: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

Creating and Using a DatabaseCreating and Using a Database

1. Creating the database

2. Determining the table structure

3. Setting up the file structure

4. Entering the data

5. Using the database

Page 4: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

1. Creating the Database1. Creating the Database

• Consider your needs– Reports you will need– Inquiries you will want to make

• consider possible future needs and the needs of other user.

• it is better to design carefully and minimize the need to modify the database structure.

Page 5: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

2. Determining the Table Structure2. Determining the Table Structure

• Sketch the table structure – what kind of data is needed in each column

• Determine characteristics of field– Field name

• Each field must have a unique field name

– Field type– Field width

• The maximum number of characters, including decimal places

Page 6: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

Field TypesField Types

• Character fields – contain descriptive data

• Numeric fields – contain numbers used for calculation– Specify the number of decimal places

• Date fields

• Logical fields – keep track of true/false or yes/no conditions

Page 7: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

3. Setting Up the File Structure3. Setting Up the File Structure

• Design the structure for each table– Define the table– Define each field in

the table– Define primary key

• Set up the table in design view

Page 8: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

4. Entering the Data4. Entering the Data

• Enter data into the tables in datasheet view

• Enter data into the tables by using a graphical form

Page 9: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

5. Using the Database5. Using the Database

• Many operations can be performed to view and modify the datai. List the records

ii. List specific fields

iii. Make a query

iv. Modify the data

Page 10: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

i. List the Recordsi. List the Records

• Displays the table in datasheet view– Displays all rows

and all columns

• Can be displayed on monitor or printed

Page 11: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

ii. List Specific Fieldsii. List Specific Fields

• Displays only the fields you want to view

• Use SQL to select the desired fields

Page 12: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

iii. Make a Queryiii. Make a Query

• Use SQL or query-by-example to produce a query– Use relational operator

to define criteria– Can be displayed on

monitor or printed– Can be formatted into a

report

Page 13: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

iv. Modify the Dataiv. Modify the Data

• Add new records

• Update (make changes to) an existing record

• Delete records

Page 14: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

The Object-Oriented Database ModelThe Object-Oriented Database Model

• Designed to manipulate complex data types– Examples include maps and audio and video

files

• The object object is the main focus

• Designed to incorporate object-oriented programming with large amounts of complex data

Page 15: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

An ObjectAn Object

• Represents a real-world entity (person, place, or thing)

• Includes both the entity and any actions that work with that entity– Includes characteristics (properties) of entity– Includes actions the entity can perform– Includes actions that can be performed on the

entity

Page 16: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

Data WarehousesData Warehouses

• Contain data that has been captured in company databases– Can contain data that has been gathered from

external sources

• Use a variety of analytical tools

Page 17: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

Analytical ToolsAnalytical Tools

• Online Analytical Processing (OLAP) software – Analyzes data from all databases in the data

warehouse– Provides different “views” of the same data

• Data mining uses sophisticated statistical and artificial intelligence techniques– Looks for previously unrecognized patterns,

relationships, and trends among the data

Page 18: Module 5 Part 2 Introduction To Database. Module Objectives At the end of the module, students should be able to: –Describe the process of creating a.

Where to Get More InformationWhere to Get More Information

• H.L. Capron, J.A. Johnson. 2004. Computers: Tools for an Information

Age. Eighth Edition. Prentice-Hall. -- Chap 13

• Kroenke, D.M. 1998. Database Processing: Fundamentals, Design and

Implementation. Prentice-Hall. London.

• McFadden, F.R., Hoffer, J. A., Prescott, M. B. 1999, Modern Database

Management. Addison Wesley. Massachusetts.

• O’Leary, T.J., O’Leary, L.I. 1997. Computing Essentials. New York.

McGraw-Hill Companies, Inc.