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?

Slides:



Advertisements
Similar presentations
Database Relationships in Access As you recall, the data in a database is stored in tables. In a relational database like Access, you can have multiple.
Advertisements

Organisation Of Data (1) Database Theory
Prentice Hall, Database Systems Week 1 Introduction By Zekrullah Popal.
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.
Data modelling uses two main techniques Entity relationship (E-R) modelling: a top- down approach Normalisation: a bottom-up approach.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Attribute databases. GIS Definition Diagram Output Query Results.
Databases and Database Management Systems
Unit  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Chapter 1: The Database Environment
Database Relationships Objective 5.01 Understand database tables used in business.
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.
Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Chapter 5 Database Processing.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
2.3 Organising Data for Effective Retrieval
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 /
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 /
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Driving School Database
FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Management Information Systems By Effy Oz & Andy Jones
Concepts and Terminology Introduction to Database.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Data Modelling. ICT5 Introduction Historical development with most organisations Small-scale origins Individual computers bought for particular applications.
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.
1 Database Concepts 2 Definition of a Database An organized Collection Of related records.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
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.
Fanny Widadie, S.P, M.Agr 1 Database Management Systems.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
DAY 14: MICROSOFT ACCESS – CHAPTER 1 Madhuri Siddula October 1, 2015.
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.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
1 Introduction to Oracle Chapter 1. 2 Before Databases Information was kept in files: Each field describes one piece of information about student Fields.
Data resource management
Database revision.
Computers in the Library A database application. Input and Output Devices Input Keyboard Mouse Scanner / light pen Output VDU / screen / monitor Printer.
CPSC 603 Database Systems Lecturer: Laurie Webster II, M.S.S.E., M.S.E.E., M.S.BME, Ph.D., P.E. Lecture 2 Introduction to a First Course in Database Systems.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Database Management Systems (DBMS)
Lesson 2: Designing a Database and Creating Tables.
Chapter 56 Relational Database Design Compiled by Eddie Moorcroft.
Information Systems Today: Managing in the Digital World TB3-1 3 Technology Briefing Database Management “Modern organizations are said to be drowning.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Sample Table Standard Notation Entity name in uppercase
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
Database Relationships Objective 5.01 Understand database tables used in business.
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,
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
Databases A brief introduction….
Databases.
Presentation transcript:

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?

Relational Database A relational database is a collection of data items organised as a set of formally-described tables from which data can be accessed or reassembled in many different ways without having to reorganise the database tables (whatis.com definition) Or, in other words, a relational database is a database that consists of multiple tables joined together by relationships

Meaningful Information Data are stored in databases so that they can be sorted and searched – you could just store data in Word! You can use the data in the database to derive meaningful information – for example, there isn’t any data in a library database to tell us which books are overdue, but we can create a query to tell us Relational databases also allow things called aggregate functions that work on groups of records and can be used for statistical analysis

Entities and Tables When you are designing a database for a particular situation, you need to think about what entities are involved Entities are usually things, but could also be an action or process, such as a loan. Information for each entity will be stored in its own table in the database A table is made up of fields, and each field will have a data type Each table also has a primary key – something about the entity that is unique, such as registration number for a car or National Insurance number for a person

There is a standard form for describing tables: The NAME of the table appears in upper case A list of the fields, separated by commas, appears in brackets after the table name The key fields are underlined For example: CAR (registration, make, model, colour) Standard Database Notation

Tables are joined together by relationships A field that is linked to another table is called a foreign key Relationships have a degree: One-to-One One-to-Many Many-to-Many We can show these on an entity-relationship diagram... Relationships

ER diagrams show entities and relationships: The entities are shown as rectangles. They are named, and will probably represent the tables you will have in your database The relationships are shown as lines, with text above them to describe the relationship The degree of the relationship is indicated by the end of the line – plain for “1” and forked for “many”. Entity-Relationship Diagrams

For example: Entity-Relationship Diagrams Book ISBN title author publisher Borrower borrower_id forename surname address telephone date of birth Loan borrower book date taken date due date returned

Advantages of Relational Databases Data about each of the entities is only entered once: –There is therefore less duplication (also known as redundancy) of data –There will be no inconsistencies across the duplicates (as they won’t exist!) –Less disc space will be required for storing the data It can actually make searching easier.

A databases management system, such as Access should be able to: Store, retrieve and update information in the database in a transparent manner and display it to multiple users Implement file and/or record locking to prevent conflicts when data are changed. Look after security - at field, table, form, query, etc., level, to prevent unauthorised access Database Management Systems

The DBMS will: Perform back-up and recovery procedures - e.g. repairing or copying database structure Allow control of the user interface through forms, reports, buttons and macros Queries - “query by example” (e.g. Access queries) or “query language” (e.g. SQL - structured query language) DBMS continued…