Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 1 – Introduction to Databases.

Slides:



Advertisements
Similar presentations
Computer Concepts BASICS 4th Edition
Advertisements

Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Introduction to Access. What is Access? Database tool Creates a database Good data query (lookup and analysis) ability Good entry forms Good reports Multi-user.
The Relational Database Model:
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.
Designing a Database Unleashing the Power of Relational Database Design.
Microsoft Access 2002 By Ian Cole Lecturer in ICT.
MS Access 2007 IT User Services - University of Delaware.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
LESSON 17 PREPARED BY MANJU. database A database is a collection of related information Access is the Microsoft Office database program that enables you.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Lesson 28: Exploring Access Learning Objectives After studying this lesson, you will be able to:  Define database and key terms associated with.
Attribute Data in GIS Data in GIS are stored as features AND tabular info Tabular information can be associated with features OR Tabular data may NOT be.
Modelling Techniques - Normalisation Description and exemplification of normalisation.Description and exemplification of normalisation. Creation of un-normalised.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
 A databases is a collection of data organized to make it easy to search and easy to retrieve in a useful, usable form.
MICROSOFT ACCESS 2007 BTA – Spring What is Access?  Microsoft Access is a database management system…this means that it contains database information.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Relational databases and third normal form As always click on speaker notes under view when executing to get more information!
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
CTFS Workshop Shameema Esufali Suzanne Lao Data coordinators and technical resources for the network
Lesson 17 Getting Started with Access Essentials
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Database Normalization Lynne Weldon July 17, 2000.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Copyright © 2005 Ed Lance Fundamentals of Relational Database Design By Ed Lance.
More about Databases. Data Entry through Forms Table View (Data sheet view) is useful for data entry of new records But sometimes customization would.
Databases. Not All Tables Are Created Equal Spreadsheets use tables to store data and formulas associated with that data The “meaning” of data is implicit.
Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 3 – Queries and Reports.
Microsoft Access Designing and creating tables and populating data.
Grade 11 Computer Science. Relational Databases  Using the link below, answer questions in your notebooks  Look at Kites.accdb database to refresh your.
DATABASE What exactly is a database How do databases work? What's the difference between a spreadsheet database and a "real" database?
Component 4: Introduction to Information and Computer Science Unit 6a Databases and SQL.
Databases.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Databases and Speadsheets
Lesson 2: Designing a Database and Creating Tables.
DAY 9: DATABASES Rohit September 21,
Planning & Creating a Database By Ms. Naira Microsoft Access.
CTFS Workshop Shameema Esufali Asian data coordinator and technical resource for the network
A table is a set of data elements (values) that is organized using a model of vertical columns (which are identified by their name) and horizontal rows.
Flat Files Relational Databases
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Plan the progression for the databases topic.
Sample Table Standard Notation Entity name in uppercase
DAY 9: DATABASES Rohit February 17,
ACCESS LESSON 1 DATABASE BASICS VOCABULARY. BACKSTAGE VIEW A menu of options and commands that allows you to access various screens to perform common.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
Copyright © it’sLearning 365. All rights reserved. DATABASE CONCEPTS Understanding Databases Start …
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
Database Presentation BIM, Mrs. Bailey. **Database Notes** Use new sheet of paper! Microsoft Access - known as a database management system or DBMS Database.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
IT 5433 LM4 Physical Design. Learning Objectives: Describe the physical database design process Explain how attributes transpose from the logical to physical.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Databases – Exam questions
GO! with Microsoft Office 2016
CIS 155 Table Relationship
GO! with Microsoft Access 2016
Databases A brief introduction….
CTFS Asia Region Workshop 2014
Spreadsheets, Modelling & Databases
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.
Microsoft Access Date.
BTEC ICT – Unit 18 With Mr Griffiths.
Presentation transcript:

Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 1 – Introduction to Databases

Introduction to Databases What is a database? Types of databases. Differences between them. What is normalisation? What are primary and foreign keys?

What is a database? “Organised collection of data” Wikipedia ( Using a database you can: Access data in an organised fashion. Filter data for analysis. Record and change data.

Types of databases (1) Flat file: Each line is a single entry. Each column is necessary, each row is unique. Simple structure. Should be non-repetitive data. eg. text file, spreadsheet, table of data.

Working example: a good flat file Date of BirthAge(years)% Fat 05/07/ /09/ /11/ /03/ /01/ /04/ /08/ /05/ /12/ /10/ /03/ /02/ /02/ /02/ Questionnaire results. Experiment results. Data that cannot be merged or split.

Flat files – the pro’s Good for non-repetitive data. Good for data in a simple structure. Good for describing single instances. Should be easy to analyse. Simple to create and maintain.

Flat files – the con’s Difficult to store complex or repetitive data. Difficult to analyse complex data stored in single lines. Can be time-consuming to maintain if data is complex.

Working example: a bad flat file Patient ID Date of BirthGender Patient AgeOperation Operation DateHospitalConsultant 104-Feb-69Female30 Nephrectomy - (any)25/02/1999 Southmead Hospital, BristolVadanan 220-Jun-80Female19 Cadaver donor nephrectomy14/01/1999 Southmead Hospital, BristolHolland 305-May-76Male23 Upper polar partial nephrectomy06/08/1999 Southmead Hospital, BristolRoysam 504-Dec-53Female46 Nephro- ureterectomy - (any)25/02/1999 Southmead Hospital, BristolSanderson 1401-Feb-83Female15 Nephrectomy - (any)18/10/1998 Frimley Park Hospital, CamberleyJones 1607-Jun-85Male13 Enucleation of renal tumour10/09/1998 Southmead Hospital, BristolWhiteaway 1607-Jun-85Male13 Upper polar partial nephrectomy17/10/1998 Frimley Park Hospital, CamberleyJones O Blue: Multiple fields of repeated data. O Green and Grey: Closely related data. O If this is true then…

Types of databases (2) Relational databases: Made of several tables. Each table should relate to another. Complex data is broken down into simple tables. Each entry in each table has a unique identifier. Based on Set Theory in Maths where members have shared characteristics. eg. Database.

Working example: a good database Performed on Host BelongsBelongs Responsible for ID

What is normalisation? Process of applying design rules to a database. 3 normal forms are necessary (NF), although 5 normal forms exist. First normal form: No duplicated rows, each cell has a single value and each table has a designated primary key. Second normal form: PLUS each table is dependent entirely on the primary key. Third normal form: PLUS each column must depend directly on the primary key.

What are Primary and Foreign Keys? A Primary Key uniquely identifies each record in a database table. E.g. Patient hospital number, NI numbers, Student IDs etc. A Foreign Key is a linked field to a primary key field in another table to indicate that the two records have matching values.

Working example: requires complex front end Record ID Operation Date Patient ID Patient Age Operation ID Hospital ID Consultant ID 110/09/ /10/ /01/ A complex front end is required to make sense of this data and allow easy input of data: Who is patient number ‘16’ or consultant number ‘5’? What operation is number ‘3’?

Relational databases – the pro’s Excellent for storing complex data. Excellent if data becomes difficult to manage or analyse in flat file form. Excellent if data becomes repetitive. Excellent if you have multiple questions to ask in your study.

Relational databases – the con’s Difficult to create. Often difficult to separate data properly: ‘normalisation’. Require complex ‘front ends’ to manage them easily and make sense of data. Requires a greater level of knowledge and skill to use.

So how do you decide? Is your data repetitive? Do you have complex queries to run? Are you unsure of what queries you might want to ask of your data? Do you have complex groupings and relationships between data fields? Are you able to put the time and effort in to create one? Do you have the confidence to do so? If YES to any, use a Relational DB.

To conclude Flat file: Single lines of data. Unrelated to each other. Relational database: Many tables of single lines. Relationships between tables. Shared characteristics. Choose most suitable for your data and you.