databases. what is a database? a database is an organized collection of related information. an...

16
Databases

Upload: louise-benson

Post on 19-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Databases

Page 2: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

What is a Database?

•A database is an organized collection of related information.

•An electronic database is an efficient means of storing and retrieving data and printing reports from the stored data.

Page 3: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Commonly used databases

Address books Dictionaries Encyclopedias Library card catalogs Patient data Student data Telephone directories

Page 4: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Advantages of an electronic database

Accurate, quick and efficient arrangement of data in alphabetical or numerical order

Ability to find and retrieve data Ability to generate reports on the database Ease of editing existing data

Page 5: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Steps to design a database

1. Plan and design the database according to needs and requirements

2. Determine the fields or categories that will be used in the database

3. Determine field properties to include size and type

Page 6: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Techniques/Devices to input data

Keyboard Mouse PDA’s Scanners Speech Recognition Software Web forms

Page 7: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Terminology

An entry is data that is in a field

A field is one category of information

A field name is the title that is assigned to a field

A record is a group of related fields of one item of information in the database

A file is the collection of related records.

Page 8: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Example of an entry

Last Name First Name Address City State Zip

Adams Tom 33 East Street Silas NC 22558

Goins Juan 76 Liberty Rd Bogard NC 55987

Sawyer Sarah 26 Main Street Oakwood NC 44897

Page 9: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Examples of fields

Last Name First Name Address City State Zip

Adams Tom 33 East Street Silas NC 22558

Goins Juan 76 Liberty Rd Bogard NC 55987

Sawyer Sarah 26 Main Street Oakwood NC 44897

Page 10: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Examples of records

Last Name First Name Address City State Zip

Adams Tom 33 East Street Silas NC 22558

Goins Juan 76 Liberty Rd Bogard NC 55987

Sawyer Sarah 26 Main Street Oakwood NC 44897

Page 11: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Example of database file

Last Name First Name Address City State Zip

Adams Tom 33 East Street Silas NC 22558

Goins Juan 76 Liberty Rd Bogard NC 55987

Sawyer Sarah 26 Main Street Oakwood NC 44897

Page 12: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Typical views of a database

List view– Displays several records on the screen at a time

Form view– Displays one record on the screen at a time.– Commonly used in data entry.

Page 13: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

General data types

Currency ($) Date (03/03/03) Numeric (450)

– These numbers can be used in calculations I.E. Gross pay, basketball statistics, etc.

Text/General (Smith)– Numbers may used, but would not be computed

I.E. Social security numbers, telephone numbers, etc.

Page 14: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Sortingto arrange data in alphabetical or numerical order

Ascending order (1-10 or A-Z)– 1,2,3,4,5– Adams, Petteway, Rodriquez

Descending order (10-1 or Z-A)– 5,4,3,2,1– Rodriquez, Petteway, Adams

Page 15: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Primary/Secondary Sorts

Primary key: The field selected as the unique identifier for the database.(i.e. Student number)

Primary sort: The first field that a database is sorted on.

Secondary sort: The second field that a database is sorted on.

Student No.

Last Name

Age Grade

001 Pate 12 6

005 Brown 14 8

010 Brown 16 10

Primary Sort:Last name (in Descending order)

Secondary Sort:Age (in ascendingorder)

Primary Key:Student No.

Page 16: Databases. What is a Database? A database is an organized collection of related information. An electronic database is an efficient means of storing and

Searching/Querying/Filteringto find specific data based upon a given criteria or condition

Queries/Filters use connectors and comparison operators to define the search criteria– Connectors (AND, OR, NOT)– Comparison operators (<, >, <=, >=, =, <>)