IGCSE 4 Cambridge Designing a database table Computer Science

Slides:



Advertisements
Similar presentations
Organisation Of Data (1) Database Theory
Advertisements

MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Database A collection of related information stored on a computer and organized in a manner that allows access, retrieval, and use of that data.
ISP 121 Week 1 Introduction to Databases. ISP 121, Winter Why a database and not a spreadsheet? You have too many separate files or too much data.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Information Storage and Retrieval CS French Chapter 3.
Database Design IST 7-10 Presented by Miss Egan and Miss Richards.
Database terms Mr. Brunton.
 Database ◦ A place where data can be stored and retrieved.  Objects ◦ An option you can manipulate. Eg. Tables, forms, queries.  Tables ◦ Tables are.
BIS121 IT for Business Application Lecture 8 – Database (Part I)
Driving School Database
Step 1:Introduction to a Database Definition: A database is a collection of information held together in an organised manner. For example: A library could.
ICT IGCSE.  Understand a wide range of work-related ICT applications and their effects, including applications in libraries (such as records of books.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
DATABASE. Computer-based filing systems Information in computer-based filing systems are stored in DATA FILES. A FILE is a collection of RELATED RECORDS.
Designing a Database (Part I) -Identify all fields needed to produce the required information -Group related fields into tables -Determine Each Table’s.
Chapter 17 Creating a Database.
What we’ve learnt Doc 5.69 Doc 5.70 Section 1-3. A simple database Related objects Tables hold the data Forms, reports, queries to access the data.
Datafaces Data Base Management Software (DBMS) is a tool used to transform Data into Information. What is Data…? What is Information…? What is a Database…?
Access  Getting Started  Creating Tables  Designing Tables Worksheet #8.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Data Verification and Validation
Mr C Johnston ICT Teacher
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Description and exemplification use of a Data Dictionary. A data dictionary is a catalogue of all data items in a system. The data dictionary stores details.
Information Systems Database Systems (H).
Software. Because databases can get very big, it is important to decide exactly what is going to be stored in each field. Fields can be text, number,
Week 1 Intro to the Course Intro to Databases.  Formerly ISP 121  “Continuation” of LSP 120 concepts  Topics include: ◦ Databases ◦ Basic statistics.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
DATABASES Define Software that can hold large amounts of data and allow users to retrieve specific information quickly. (Access, Oracle, etc.) Data is.
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
The purpose of a CPU is to process data Custom written software is created for a user to meet exact purpose Off the shelf software is developed by a software.
N5 Databases Notes Information Systems Design & Development: Structures and links.
VCE IT Theory Slideshows
DATA TYPES.
Introduction to Database Systems
DATABASE.
Lesson 10 Databases.
Creating a database table
Databases.
Databases Chapter 9 Asfia Rahman.
Databases.
3.5 Databases Relationships.
Databases Chapter 16.
Practical Office 2007 Chapter 10
Database Systems Unit 16.
Unit 16 – Database Systems
Introduction to Database Systems
Database Management  .
Creating a table in Access
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Introduction to Computer Science (CIS 101)
Data Types Quiz.
What is a Database? A collection of data organized in a manner that allows access, retrieval, and use of that data.
Databases Software This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Step 1:Introduction to a Database
Data Types & File Size Calculations
INTRODUCING DATABASES
Databases.
Database Design and Development
Flat Files & Relational Databases
Spreadsheets, Modelling & Databases
ICT Database Lesson 2 Designing a Database.
Databases This topic looks at the basic concept of a database, the key features and benefits of a Database Management System (DBMS) and the basic theory.
G061 - Data Dictionary.
Interactive Powerpoint
Presentation transcript:

IGCSE 4 Cambridge Designing a database table Computer Science Section 2 Designing a database table Unit 8 System design and databases 4

Objectives To discuss some of the many computer systems which may hold data about you or your family on a database To learn how this data is held so that information can be quickly retrieved To learn some database terms: record, field, table, primary key, index To set up a simple table in Access and enter some records

Who holds data about you or your family? From the day you are born, someone holds data about you! What about when you start school? When you go to the doctor or the dentist? When you join a Sports Club or some other organisation? Does your family own a TV, a car, or buy things online?

? What other data types are held? An entity is a category of person or physical thing about which data is held in a database What entities do these organisations hold data about? A supermarket A cinema A Job Centre A secondary school ?

Database structure A database contains one or more tables A table has rows, each row containing one record Columns in the table each contain one field of each record

A Film database The screenshot shows a database about films The database has a single table with rows (records) and columns (fields)

MS Access database software MS Access is a Database Management System (DBMS) The TblFilm table was created using MS Access This software allows you to create new tables, input and validate data, query the database and produce reports Using Access you can create a customised application

Structure of a database table Each field (or attribute) in the table has to be given a name and a data type

Creating and amending a table structure When you create a new database table, you need to specify what type of data is to be stored in each field Data types include: Text, integers, real numbers with a decimal point, dates, currency, and Yes/No fields

Choosing data types Data Example Data Type Age 14 Integer Shoe Size 6.5 Float Price 14.99 Date of Birth Height in CM Quantity in Stock Telephone Number

Choosing data types - Answers Attribute Example Data Type Age 14 Integer Shoe Size 6.5 Float Price 14.99 Currency or Real Date of Birth 20/06/1992 Date Height in CM 192 or 192.5 Integer or Real Quantity in Stock 7 Telephone Number 001 (910) 273-4848 Text

The primary key field One field in the database has to be designated as the primary key Each record in the table must have a different value in the primary key field It uniquely identifies the record Which field is the primary key field in the TblFilm table?

Indexing a field The primary key field is automatically indexed You can specify that other fields are to be indexed For example, you could specify that the field Title is to be indexed In a very large database, this will speed up searches on that field, just like having an index at the back of a book

Worksheet 1 Complete Task 1 to add some records to the Films database Complete Task 2 to change the structure of the database table

Validating fields In order to minimise errors when data is entered into the database, as many fields as possible should be validated This means specifying a rule that the data must obey Validation rules include range checks, type checks, presence checks, format checks, list checks

Types of validation Range check: e.g. price must be between £1 and £25 Type check: e.g. A field must be a number data type Presence check: Data must be entered in the field Format check: e.g. Data must be in the format dd-mm-yy, or be an integer, or a valid postcode List check: Data must be one of the items on a predefined list

Worksheet 1 Now try Task 3 on the Worksheet