©www.teach-ict.com Relational Databases. ©www.teach-ict.com Entities Data is stored in tables. Each table is concerned with one entity An entity is a.

Slides:



Advertisements
Similar presentations
Relational Database Systems Higher Information Systems Advanced Implementation in Microsoft Access.
Advertisements

Build a database I: Design tables for a new Access database
Organisation Of Data (1) Database Theory
Relational Database Systems Higher Information Systems Advanced Implementation in Filemaker Pro.
Creating Tables Unit 9 - Databases.
1 Information Systems: Higher Database Systems. 2 AdamsAndrea D64 Carluke Street,JamestownGlasgow BairdHamish J7 Cedar Walk,Aberdeen01224.
WHAT D IS RAW, UNPROCESSED FACTS AND FIGURES COLLECTED, STORED AND PROCESSED BY COMPUTERS.
UNIVERSITY OF PALESTINE business computer application College of Business Instructor: Mr. Ahmed Abumosameh.
Database Modeling IT Key Ideas, Dynamic Database Systems, 2002 Chapter 8.
Table design screen Field name Data type Field size Other properties.
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.
Table design screen Field name Data type Field size Other properties.
Access Lecture 1 Database Overview and Creating Tables Create an Employee Table.
Database – Part 2a Dr. V.T. Raja Oregon State University.
Data Types and Field Properties 5.01 Understand database tables used in business.
Entity/Relationship Modelling
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.
1 AQA ICT AS Level © Nelson Thornes Types of data.
Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database.
Database terms Mr. Brunton.
Microsoft Access 2000 Creating Tables and Relationships.
 Database ◦ A place where data can be stored and retrieved.  Objects ◦ An option you can manipulate. Eg. Tables, forms, queries.  Tables ◦ Tables are.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
WJEC Applied ICT Databases – Terminology and Notation DEFINITION A database is a collection of data or information which is held together in an organised.
CREATE THE DIFFERENCE Normalisation (special thanks to Janet Francis for this presentation)
CSE 441: Systems Analysis & Design
Relational databases and third normal form As always click on speaker notes under view when executing to get more information!
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
University of Manitoba Asper School of Business 3500 DBMS Bob Travica
CSC 240 (Blum)1 Introduction to Database. CSC 240 (Blum)2 Data versus Information When people distinguish between data and information, –Data is simply.
DBSYSTEMS Chapter 3 Data Normalization Get data properly tabled! Based on G. Post, DBMS: Designing & Building Business Applications University of Manitoba.
G045 Lecture 09 ERD Diagrams (Entity Relationship Diagrams) Mr C Johnston ICT Teacher
System Development Lifecycle Verification and Validation.
DAY 22: MICROSOFT ACCESS – REVIEW Akhila Kondai November 04, 2013.
Some Facts about Databases Key WordsData TypesCoding.
Entity-Relationship (ER) Modelling ER modelling - Identify entities - Identify relationships - Construct ER diagram - Collect attributes for entities &
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
Microsoft Access 2010 Crash Course Part 1 Academic Health Center Training (352)
Entity – Relationship Model (E-R Model)
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
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 Design Normalisation. Last Session Looked at: –What databases were –Where they are used –How they are used.
Databases.  A database is simply a collection of information stored in an orderly manner.  A database can be as simple as a birthday book, address book.
Introduction to Access Chapter 13 pages 1-4. What is a database??? Related information is stored in databases  All SC student information is stored in.
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.
CSC 240 (Blum)1 Introduction to Access CSC 240 (Blum)2 Click on the Access desktop icon or go to Start/All Programs/Microsoft Office/Microsoft Office.
Study Opportunities1 Database table quiz What is your name?
Flat Files Relational Databases
Mr C Johnston ICT Teacher
* 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.
Tutorial 2 Data Modelling. 3 Terminology & Notation(1) An entity is an object about which the system needs to hold information –Customer, Student, Course.
Sample Table Standard Notation Entity name in uppercase
Howard Paul. Sequential Access Index Files and Data File Random Access.
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,
Normalisation Unit 6: Databases. Just to recap  What is an Entity  What is an Attribute?
Data Base Design Steps 1.Define Entity Classes (Relations/Tables) and Keys. 2.Define Relationships between Entity Classes. Normalization Steps Eliminate.
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
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.
IGCSE 4 Cambridge Designing a database table Computer Science
Databases Chapter 9 Asfia Rahman.
Unit 16 – Database Systems
Types of data This presentation differentiates between ICT professional and end users.
Database Theory.
ICT Database Lesson 2 Designing a Database.
Presentation transcript:

© Relational Databases

© Entities Data is stored in tables. Each table is concerned with one entity An entity is a person/object/event on which data can be held. In a hospital database the following would all be entities: Patient, nurse, treatment, ward, appointment, medical test, doctor.

© Attributes Each entity has a series of attributes. These describe different properties of the entity. The attributes of a patient would include: Name, address, age, weight, dietary needs etc

© Relationships Relationships exist between the different entities. For example the Doctor will treat many patients but a patient will only see one doctor.

© Entities, Attributes and Relationships A Video company wants to set up a database to keep accurate records on which videos have been rented by their customers. From the list on the next slide, decide which items are: Entities Attributes Any relationship between the entities.

© Task Length of film First Name Year released Video title Date rented RatingAddress Rental price AgeLast Name Date returned Phone number Film Genre Gender

© Entity: Customer Attributes First Name Surname Address Telephone Number Age Gender

© Entity: Video Attributes Video Title Rating Film Genre Date Released Length of film Rental price

© Entity: Video Rentals Attributes Date Rented Date Returned

© Tables Customer Table First Name Surname Address Telephone number Age Gender Video Table Video title Rating Film Genre Date Released Length of film Rental price Video Rentals Table Date Rented Date Returned

© Relationships Customer Table Customer ID First Name Surname Address Telephone number Age Gender Video Table Video ID Video title Rating Film Genre Date Released Length of film Rental price Video Rentals Table Video_Rental ID Customer ID Video ID Date Rented Date Returned

© Primary and Foreign Key Customer Table Customer ID First Name Surname Address Telephone number Age Gender Video Table Video ID Video title Rating Film Genre Date Released Length of film Rental price Video Rentals Table Video_Rental ID Customer ID Video ID Date Rented Date Returned

© Primary Keys This is a field that is used to uniquely define a particular record or line in a table. Since text fields e.g. surname can be repeated, primary keys are nearly always numeric fields. They can include: Membership number, product number, employee number, catalogue number, account number. If there is no logical number that can be used, then most databases will create one automatically (called auto number)

© Foreign Keys This is a field in one table which is also the primary key of another table. Foreign keys are used to establish a relationship between the main table and other subsidiary tables. Customer Table Customer ID First Name Surname Address Telephone number Age Gender Video Table Video ID Video title Rating Film Genre Date Released Length of film Rental price Video Rentals Table Video_Rent al ID Customer ID Video ID Date Rented Date Returned

© Standard database notation The tables we have looked at can be described as follows: CUSTOMER (CustomerID, Firstname, Surname, Address, TelephoneNumber, , Age, Gender) VIDEO (VideoID, VideoTitle, Rating, FilmGenre, DateReleased, LengthOfFilm, RentalPrice) VIDEORENTALS (VideoRentalID, CustomerID, VideoID, DateRented, DateReturned)

© Field Types Alphanumeric (text) Numeric. Currency Date Picture (bitmap) Logical/Boolean Autonumber Memo (for writing notes)

© Field Types It is important that when you create tables in Access, that you choose the correct field types right at the beginning. Similarly, if a field is defined as currency or numeric, text cannot be entered by mistake. Certain fields are automatically validated when data is entered e.g. dates. If you chose text for a date field, there will be no validation.

© Field Types Numeric fields are held differently from text fields. Calculations can only be performed on numeric, date or currency fields. Field length should be carefully chosen whilst creating the table to ensure that the size of the database is reasonable.