Databases.

Slides:



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

Database A collection of related information stored on a computer and organized in a manner that allows access, retrieval, and use of that data.
Database Systems. What is a database? A database is an organised store of data items.
Databases and Database Management Systems
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?
Software Development Unit 2 Databases What is a database? A collection of data organised in a manner that allows access, retrieval and use of that data.
Relational Database Need to Knows. What is a database? Data - is just a pile of numbers or stats. A business "organises" the data to be meaningful and.
Information and Data What’s the difference between two? Information systems = hardware and software working together… It will take DATA that has been put.
Unit 18: Database Modelling
1 Advanced Computer Programming Databases. Overview What is a database? Database Basics Database Components Data Models Normalization Database Design.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
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.
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.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Chapter 5: Data Types (2013) Revision Candidates should be able to know: Identify different data types? Key terms: File, record, field and key field Database.
Presented By: Gail Rose-Innes Camps Bay High School ICT & CAT Department Microsoft Access 2010.
Database What is a database? A database is a collection of information that is typically organized so that it can easily be storing, managing and retrieving.
DataBase Management Systems Introduction to Database Technology EAK 362/2 MIS LECTURE 4 PART 1.
 So far in ICT we’ve covered how data is entered into computers (data capture) and how it’s checked (validation and verification).  In this section.
What have we learned?. What is a database? An organized collection of related data.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Database Management Systems (DBMS)
Introduction to a Database Definition: A database is a collection of information held together in an organised manner. For example: A library could be.
Flat Files Relational Databases
Mr C Johnston ICT Teacher
FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5.
Protecting Data. Privacy Everyone has a right to privacy Data is held by many organisations –Employers –Shops –Banks –Insurance companies –etc.
Network Security Philadelphia UniversitylAhmad Al-Ghoul Module 7 Module 7 Data Base Security  MModified by :Ahmad Al Ghoul  PPhiladelphia.
 A collection of data organized in a way that allows:  Easy access  Easy retrieval of specific data  Easy use of the data.
Normalisation Unit 6: Databases. Just to recap  What is an Entity  What is an Attribute?
Input, Output and Processing.. What data needs to be input into the system? Identify the sources – i.e. where does the data come from? What is the volume.
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.
8 – Protecting Data and Security
Validation and verification 1.2
Choosing Data Types Database Administration Fundamentals
DATA TYPES.
DATABASE.
IGCSE 4 Cambridge Designing a database table Computer Science
Lesson 10 Databases.
Creating a database table
Databases Chapter 9 Asfia Rahman.
Databases.
GO! with Microsoft Office 2016
Handling Personal Data
Unit 16 – Database Systems
Data Types and Storing Data
GO! with Microsoft Access 2016
Chapter Ten Managing a Database.
Week 12 Option 3: Database Design
Database Management Systems
Databases.
Creating a table in Access
What is a Database and Why Use One?
Chapter 9 Database and Information Management.
Data Quality By Suparna Kansakar.
Databases.
LECTURE 34: Database Introduction
Step 1:Introduction to a Database
Data Types & File Size Calculations
Database Theory.
Spreadsheets, Modelling & Databases
Designs for Data Integrity, validations, security and controls
Learning Objectives understand the characteristics of structured and unstructured data understand that data can be decomposed, organised and managed in.
Introducing 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.
LECTURE 33: Database Introduction
Information system analysis and design
Presentation transcript:

Databases

Organise this: Jenny is 17 and studies chemistry and physics. Tom is her best friend, he’s also 17. Her sister Jackie is friends with Sally, who is 18. Jackie is also 18. The oldest is Jim, who is 17 and also has Tom as a best friend. Jenny is engaged to be married to Tim, who is 119 and studies biology and maths. Sally and Jackie study Maths, but Sally also studies Sport, though Jackie studies three subjects, as she also takes French.

Probably the best way: Name Age Best friend Studying Note Jenny 17 Tom Chem & Phys Engaged to Tim, sister of Jackie Jennie No subjects given Sally 18 Jackie Maths and Sport Tim 119 Biology, Maths Age a problem? Maths, Sport, French Sister of Jenny

Note If people are best friends, then they should be connected There is no way to “lock” best friends Some people’s subjects get repeated, so that wastes storage space and typing time There are several ways to write the subjects You could wrongly enter nothing at all if it’s just a simple table No validation has been performed, especially in the case of Tim aged 119 & Jenny/Jennie

A database is A persistent, organised store of data. People depend on databases, many businesses cannot function without them. So, the database must be Accurate (correct) Up-to-date (current) Readily available to whoever needs access Protected from people who shouldn’t have access

Some definitions: Entity – the complete real-world object for which you need to hold data Instance – one of the entities, also called a record Attribute – a characteristic of an entity Values – word or number information about the entity Relationship – a connection between entities Table – the way that most databases hold data DBMS – a database management system – “a computer-based system to manage a database or collection of databases”

Examples: Entities: customers, employees, films, pupils Instance: you, me, “Rain Man”, you Attribute: address, gender, length, age Value: 1 Darwin Lane, start date, 45mins, 15 Relationship: is_customer_of Table: pupils table, teacher table (etc.) DBMS: SIMS

Typical Types of Data: Strings (text) – characters, usually up to 256 or 512 bytes long Numbers – as integers Real numbers – with a decimal point and maybe an displayed in a form of scientific notation Prices – in whichever currency you want Yes/No data (Boolean) Dates Times These are all simple types, you may also see records – a compound data type, consisting of several fields of different simple types

Give examples of each type: Text/string: Integer: Real: Currency Boolean Date Time

What information might you need to store about ….. A CD in a DJ’s record collection? A candidate entering for an exam? The same CD in a record shop like HMV? A part in a car parts database? An item in a supermarket database? A customer buying travel insurance? A pupil in a school database? A patient in a hospital database?

We want to avoid: Errors Lost data Insufficient data Inconsistent data Unauthorised access

Errors can result in: Embarrassment – sending bills to dead people, for example Financial loss – banks need everything correct Life-or-death situations like air traffic control or airport data or navigational data for planes and ships.

Aims of managing a database: Minimising storage requirements Minimising repetition or redundancy Fast entry of valid data Avoidance of some verification Fast and easy searches Prints in neat layouts as reports

Data security Data integrity Not just keeping out intruders, but also minimising the damage from: Natural catastrophes like fire and flood Accidental actions Malicious actions Data integrity Making sure the data is accurate / correct / trustworthy Needs validation Software design that avoids inconsistent data

Validation and verification Validation – checking that the data is valid – that is, it means something for the field it is entered into. You could check for: the right type the right length Right punctuation/syntax Sensible values

How to protect data: Making backups Mirror servers Off site storage Restricted access to buildings Passwords on the computer Audit trails (who did what, when)

Creating a database in Access:

Exercise Start “Access” Create a data table for one or more of these examples: