Create and Edit Databases Module 7 Lesson 2
Steps to Design a Database <ul><li>Plan and design the database according to needs and requirements </li></ul><ul><li>Dete...
Step 1: Plan and Design  What Data? Last Name First Name Employee Number Hours of Work Rate of Pay Gross Pay
Step 2:  Determine the Fields Fields Last Name First Name Employee Number Hurs Worked Rate of Pay Gross Pay
Step 3:  Determine Field Properties <ul><li>Currency ($) </li></ul><ul><li>Date (03/03/03) </li></ul><ul><li>Numeric (450)...
Example of a Database File Last Name First Name Employee Number Hours Worked Rate of Pay Gross Pay Smith Stacy 001 40 $5.0...
First of all you need to understand how Microsoft Access breaks down a database.  Some keywords involved in this process a...
Tables Tables  A table is a collection of data about a specific topic, such as students or contacts. Using a separate tabl...
Primary Key <ul><li>Primary Key  </li></ul><ul><li>One field (column) whose value or values  uniquely  identify each recor...
Views in a Database <ul><li>Switching Views  </li></ul><ul><li>To switch views between the datasheet (spreadsheet view) an...
Video Demonstration:  Editing  and  More Editing Click the button for a brief video.  A new website will open, be sure to ...
 
Upcoming SlideShare
Loading in …5
×

Creating and editing a database

1,998 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,998
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
29
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Creating and editing a database

  1. 1. Create and Edit Databases Module 7 Lesson 2
  2. 2. Steps to Design a Database <ul><li>Plan and design the database according to needs and requirements </li></ul><ul><li>Determine the fields or categories that will be used in the database </li></ul><ul><li>Determine field properties to include size and type </li></ul>
  3. 3. Step 1: Plan and Design What Data? Last Name First Name Employee Number Hours of Work Rate of Pay Gross Pay
  4. 4. Step 2: Determine the Fields Fields Last Name First Name Employee Number Hurs Worked Rate of Pay Gross Pay
  5. 5. Step 3: Determine Field Properties <ul><li>Currency ($) </li></ul><ul><li>Date (03/03/03) </li></ul><ul><li>Numeric (450) </li></ul><ul><ul><li>These numbers can be used in calculations </li></ul></ul><ul><ul><ul><li>I.E. Gross pay, basketball statistics, etc. </li></ul></ul></ul><ul><li>Text/General (Smith) </li></ul><ul><ul><li>Numbers may used, but would not be computed </li></ul></ul><ul><ul><ul><li>I.E. Social security numbers, telephone numbers, etc. </li></ul></ul></ul>
  6. 6. Example of a Database File Last Name First Name Employee Number Hours Worked Rate of Pay Gross Pay Smith Stacy 001 40 $5.00 $200.00 Carter Sherrell 002 30 $7.00 $210.00 Allen Donald 003 25 $10.00 $250.00
  7. 7. First of all you need to understand how Microsoft Access breaks down a database. Some keywords involved in this process are: Database File, Table, Record, Field, Data-type . Here is the Hierarchy that Microsoft Access uses in breaking down a database. Database File: This is your main file that encompasses the entire database and that is saved to your hard-drive or floppy disk. (Example--StudentDatabase.mdb) Table: A table is a collection of data about a specific topic. There can be multiple tables in a database. (Example #1—Students) (Example #2—Teachers) Field: Fields are the different categories within a Table. Tables usually contain multiple fields. (Example #1--Student LastName) (Example #2--Student FirstName) Datatypes: Datatypes are the properties of each field. A field only has 1 datatype. (Example: LastName; Datatype=Text)
  8. 8. Tables Tables A table is a collection of data about a specific topic, such as students or contacts. Using a separate table for each topic means that you store that data only once, which makes your database more efficient, and reduces data-entry errors. Therefore, you may have multiple tables in a database. Tables organize data into columns (called fields ) and rows (called records ).
  9. 9. Primary Key <ul><li>Primary Key </li></ul><ul><li>One field (column) whose value or values uniquely identify each record in a table. A primary key does not allow Null values and must always have a unique value. A primary key is used to relate a table to foreign keys in other tables. </li></ul><ul><li>NOTE: You do not have to define a primary key, but it's usually a good idea. If you don't define a primary key, Microsoft Access asks you if you would like to create one when you save the table. </li></ul>
  10. 10. Views in a Database <ul><li>Switching Views </li></ul><ul><li>To switch views between the datasheet (spreadsheet view) and the design view, simply click the button in the top-left hand corner of the Access program. </li></ul>Datasheet View Design View Displays the view, which allows you to enter raw data into your database table. Displays the view, which allows you to enter fields, data-types, and descriptions into your database table.
  11. 11. Video Demonstration: Editing and More Editing Click the button for a brief video. A new website will open, be sure to return to this presentation.

×