WJEC Applied ICT Databases – Terminology and Notation DEFINITION A database is a collection of data or information which is held together in an organised.

Slides:



Advertisements
Similar presentations
How data is stored. Data can be stored in paper-based systems including: Reference books Dictionaries Encyclopaedias Directories Index Files Filing systems.
Advertisements

Build a database I: Design tables for a new Access database
Organisation Of Data (1) Database Theory
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
UNIVERSITY OF PALESTINE business computer application College of Business Instructor: Mr. Ahmed Abumosameh.
Computer Science & Engineering 2111 Introduction to Database Systems 1CSE 2111-Introduction to Database Systems.
ISP 121 Access Normalization and Relationships. Normalization Say we’re operating a pet day-care and we need to keep information on our pets/customers.
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 Info 1408 Lecture 2 An Introduction to Data Storage.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
2.3 Organising Data for Effective Retrieval
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Driving School Database
PHP meets MySQL.
G057 - Lecture 02 Introduction To Database System Concepts Mr C Johnston ICT Teacher
Microsoft ® Office Access ® 2007 Training Build a database I: Design tables for a new Access database ICT Staff Development presents:
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
G045 Lecture 09 ERD Diagrams (Entity Relationship Diagrams) Mr C Johnston ICT Teacher
Normalisation. NoKats Dog Club A club formed since Keeps records of members and their dogs on index cards. Cards are managed by the secretary and.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Information Systems & Databases 2.2) Organisation methods.
ATADESAB. BATLE CORDER DLEIF Lesson objectives In this lesson you will learn some basic database terms and learn how a database is created.
Databases ©
© Relational Databases. © Entities Data is stored in tables. Each table is concerned with one entity An entity is a.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
M1G Introduction to Database Development 2. Creating a Database.
Data and information. Information and data By the end of this, you should be able to state the difference between DATE and INFORMAITON.
Databases. What is a database?  A database is used to store data. The word DATA is actually Latin for FACTS. A database is, therefore, a place, or thing.
M1G Introduction to Database Development 5. Doing more with queries.
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
Version: 2.0. Forenam e of parent Surname of parent Address 1 Address 2 Name of child Age of child School database example. Try adding a few rows for.
Unit 4 Normalisationand Relational Database Management Systems.
ITGS Databases.
Database revision.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Database Management Systems (DBMS)
Chapter 56 Relational Database Design Compiled by Eddie Moorcroft.
Databases 101 © Dolinski What you will learn How relational databases work What are the components that make up a database How to create each component.
Sample Table Standard Notation Entity name in uppercase
Database Relationships Objective 5.01 Understand database tables used in business.
Databases Flat Files & Relational Databases. Learning Objectives Describe flat files and databases. Explain the advantages that using a relational database.
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,
GCSE ICT How data is stored. How is data stored? Data can be stored in paper-based systems including: –Reference books –Dictionaries –Encyclopaedias –Directories.
Normalisation Unit 6: Databases. Just to recap  What is an Entity  What is an Attribute?
1 Files and databases Suppose a school stores information about its students on record cards. Each student has their own card; this is their record. Record.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
Lesson Objectives By the end of this lesson you will be able to: 1.Assign appropriate primary keys/key fields 2.Identify foreign keys in different tables/files.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Database Relationships
Our world depends on databases
Lesson 10 Databases.
Databases Chapter 9 Asfia Rahman.
Databases Key Revision Points.
Databases Chapter 16.
Database Relationships
Introduction to Database Systems
Database Design and Development
Databases.
Databases Software This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Database Relationships
Database Theory.
Flat Files & Relational Databases
Databases.
Spreadsheets, Modelling & Databases
Relational Databases.
Presentation transcript:

WJEC Applied ICT Databases – Terminology and Notation DEFINITION A database is a collection of data or information which is held together in an organised or logical way. Paper based databases These can be as simple as a notebook which contains addresses sorted by surname or a birthday book with birthday reminders by month. Other paper based databases can be much larger, for example, the Yellow Pages directory. The directory is organised by business type e.g. architects builders florists plumbers taxies

WJEC Applied ICT Databases – Terminology and Notation Under each category are listed all of the local builders, sorted again alphabetically e.g. Bob the Builder Daffy Duck's driveways Mickey Mouse extensions Road Runner and son. Computerised databases You will come across computerised databases in every aspect of your life. Here are some examples with which you will be familiar: Search engines e.g. Google, Ask, Bing School electronic registers Library database Shop stock control system DVLC - stores details of all driver licences and car registrations Task: can you think of at least three other examples?

WJEC Applied ICT Databases – Terminology and Notation Why use a database? Vast amounts of information can be stored. Queries can be run to search for specific records or groups of records. Reports can be produced from the data stored or queries run Information can be extracted from the database and exported into a word processing package for mail merging Validation can be used to reduce errors

WJEC Applied ICT Databases – Terminology and Notation Tables Databases store data or information in tables, just like the one below: The table allows you to see all of the records stored in the database. Tables can store many records, from a few dozen for a small database up to millions for a large company database. A database can contain many tables.

WJEC Applied ICT Databases – Terminology and Notation 5. Record DEFINITION: A record is all of the data or information about one person or one thing. In the table below, all of the information about each cartoon character is stored in a 'row' or 'record'.

WJEC Applied ICT Databases – Terminology and Notation 5. Record Each table can contain anything from a few up to millions of records A record is made up of lots of individual pieces of information. For example, look at Wonder Woman's record. It stores her first name, her last name, her address, city and her age. Each of these individual pieces of information in a record is called a 'field'

WJEC Applied ICT Databases – Terminology and Notation Fields Each table contains a lot of records. A record is made up of lots of individual pieces of information. Look at Wonder Woman's record: it stores her first name, last name, address, city and age. Each of these individual pieces of information in a record is called a 'field'. DEFINITION: a 'field' is one piece of data or information about a person or thing.

WJEC Applied ICT Databases – Terminology and Notation Flat file database When you first set up your database, you can choose to make a 'flat-file' database or a 'relational' database.With a flat file database, all of your data is stored in one large table. Take a database that a vet might use. In our example below, there is data about the owner of the pet i.e. name, address, phone number, there is data about the pet - name, type of animal, date of birth, and there is also data about any appointments the pet has. This might seem pretty logical at first. But think aboutit, is it really as good as it seems? Every single time the pet has an appointment, the customer's title, surname, street, town, county, and phone number have to be entered. Also, the pet's name, type and d.o.b. also have to be entered. That would get fairly tedious having to enter so much data each time and there would be a great risk of making a mistake - remember GIGO. Repeating data unnecessarily like this is called 'data duplication'.

WJEC Applied ICT Databases – Terminology and Notation Relational databases On the previous slide, we saw that a flat file database wasn't always the best choice as it causes a lot of data duplication. The answer to this is called a relational database. In the database below, the data is split up into sensible groups i.e. customer data, pets data andappointments data. Then a separate table is made for each group. Customer Table Pet Table Appointment Table

WJEC Applied ICT Databases – Terminology and Notation Relational databases Once the tables have been set up, a relationship can be created to link them together – as shown by the lines linking the tables below. This is known as a 'relational database'. The main benefit of a relational database is that data doesn't have to be duplicated. When a customer books an appointment for their pet, a new record is created on the 'appointment's table' and the relevant Customer and Pet IDs are chosen. Reducing data duplication reduces the amount of data which needs to be stored, thus making the database smaller. It also reduces the risk of mistakes, because every time you have to type the same data in, there is a risk you could mis-spell it.

WJEC Applied ICT Databases – Terminology and Notation Primary Key DEFINITION: A primary key is a field in a table which is unique and enables you to identify every record in that table.

WJEC Applied ICT Databases – Terminology and Notation Primary Key There are two types of primary keys: 1. Simple 2. Compound or composite Simple primary key DEFINITION: A simple primary key is made up of a single field only. For example, 'customer ID' in the example below would be classed as a 'simple primary key'.

WJEC Applied ICT Databases – Terminology and Notation Primary Key DEFINITION: A compound / composite primary key combines more than one field to make a unique value. Example 1 Sometimes, a single field is not enough to uniquely identify a record. Consider a pack of cards. There are four suits, hearts,diamonds, clubs and spades. A single primary key would not uniquely identify a particular card based just upon the suit. There are also thirteen values from the Ace right through to the King. Again, this would not be sufficient to uniquely identify a card. But, if you made a primary key out of the suit and the value, then every card in the pack could be uniquely identified.

WJEC Applied ICT Databases – Terminology and Notation Secondary Key DEFINITION: A field that can be indexed to speed up the searching of large databases. Usually the fields that are most searched on in a query – for instance the Surname in a customer database.

WJEC Applied ICT Databases – Terminology and Notation Foreign Key DEFINITION: A foreign key is used to link tables together and create a relationship. It is a field in one table that is linked to the primary key in another table. In this database there are three tables: Artists Recordings Genre The primary key in the Artists table is: ArtistID The primary key in the Genre table is: GenreID These primary keys link to identically named fields in the Recordings table. Each of those identically named fields are known as a 'foreign key'

WJEC Applied ICT Databases – Terminology and Notation Referential integrity DEFINITION: Every foreign key value has a matching value in the corresponding primary key. Referential integrity uses these to ensure that there are no orphan records i.e. it prevents you from deleting related records. Referential integrity can also alert you if you try to delete a record which is related to another one. It can also be used to cascade changes made to the database.

WJEC Applied ICT Databases – Terminology and Notation 2. Correct database notation How should table definitions be correctly written? Here are the rules which you should follow: The table name should be in capital letters The attributes (field names) should be placed in brackets following the table name. All of the attributes are listed inside the brackets. The attributes should be seperated by a comma The primary key should be underlined The foreign key should be overlined If an attribute contains two or more words, they should be joined together and the start of each word should have a capital letter e.g. telephone number would become TelephoneNumber

WJEC Applied ICT Databases – Terminology and Notation 2. Correct database notation The following table definition therefore be written as follows Customer ID Title Forename Surname Address line 1 Address line 2 Town County Postcode Telephone number CUSTOMER (CustomerID, Title, Forename, Surname, AddressLine1, AddressLine2, Town, County, Postcode, TelephoneNumber, )

WJEC Applied ICT Databases – Terminology and Notation 3. Database notation example Following the rules from the previous slide, see if you can write the correct database notation for the three tables following PK = primary key FK = foreign key

WJEC Applied ICT Databases – Terminology and Notation 3. Database notation example Employee tableDepartment TableQualifications Table Employee ID (PK)Department ID (PK)Qualification ID (PK) SurnameDepartment Description Qualification Description Forename Date of Birth Address Line 1 Address Line 2 Town Postcode Contact Number Department ID (FK) Qualification ID (FK) Date hired