Presentation is loading. Please wait.

Presentation is loading. Please wait.

Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database.

Similar presentations


Presentation on theme: "Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database."— Presentation transcript:

1 Databases

2 Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database using tables

3 Database definition A database is a collection of information that is organized so that it can easily be accessed, managed, and updated. Example: A telephone book Write down three other examples of databases (they do not have to be computer based)

4 Example of a database

5 Database terms Table A group of records Example: Class 11AB student details Record A group of fields containing data about a person, item etc. Example: Name and Address and Date of Birth Field One piece of information you want to use in your database Example: Name, Date of Birth Value An entry for a field Example: Paul, 07/02/1990

6

7 Flat database A flat database is represented by a table which is made up of fields and records. Flat databases are used to store limited amounts of information such as personal details.

8 Examples of Flat databases

9 Data types in Access Data TypeDescription AutoNumber This filed is automatically created for each record in your database. The AutoNumber field is primarily used for Primary Keys in Access. For example 1, 2, 3 Text A Text field can contain values that are text, numbers or both. For example, Fname, LName NumberThe Number field can store numeric values up to 16 bytes of data. Date/Time The Date/Time field allows storage of date and time information. For example, 10/11/2012 Yes/NoBoolean data storage of true/false values. EG YES/NO

10 Field names and Datatypes

11 Primary Key The primary key of a table uniquely identifies each record in the table. This number can be given by Access or can be chosen by you. What number could be used to uniquely identify you?

12 A relational database A relational database stores data in a collection of related tables. Each table contains one specific type of information. This makes sure that data is stored only once, reducing the amount of duplicate data that is stored.

13 Example of a relational database

14 Create a database Use the manual given to start designing and creating your database.

15 The database design process consists of several steps 1. Determine the purpose of your database. 2. Gather existing data and make a list of required fields. 3. Arrange the data into tables. 4. Use sample data to troubleshoot for possible problems such as reducing redundant data. 5. Identify primary keys and specify foreign keys used to relate tables. 6. Determine table relationships and revise the table design as necessary.


Download ppt "Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database."

Similar presentations


Ads by Google