Unit 18: Database Modelling

Slides:



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

Introduction to Databases
Accounting System Design
Dr Gordon Russell, Napier University Unit Data Dictionary 1 Data Dictionary Unit 5.3.
File Systems and Databases
Database Management: Getting Data Together Chapter 14.
3-1 Chapter 3 Data and Knowledge Management
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
BUSINESS DRIVEN TECHNOLOGY
Databases and Database Management Systems
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?
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
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.
Microsoft Access Ervin Ha.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 5 Database Processing.
Using MIS 4e 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
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2012 (September 5, 2012)
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
1 Advanced Computer Programming Databases. Overview What is a database? Database Basics Database Components Data Models Normalization Database Design.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Storing Organizational Information - Databases
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
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.
Chapter 4c, Database H Definition H Structure H Parts H Types.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Database collection of related information stored in an organized form Database program software tool for storage & retrieval of that information.
ITGS Databases.
Database revision.
+ Information Systems and Databases 2.2 Organisation.
Unit 5 Advanced Databases The Purpose and features of a relational database.
Database Management Systems (DBMS)
Lesson 2: Designing a Database and Creating Tables.
Lection №4 Development of the Relational Databases.
Flat Files Relational Databases
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
SQL Basics Review Reviewing what we’ve learned so far…….
Databases and Information Management
Basic Concepts in Data Management
Databases and Information Management
Spreadsheets, Modelling & Databases
The ultimate in data organization
DATABASE TECHNOLOGIES
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

Unit 18: Database Modelling Session One Part One

Aims: Discuss unit content and assessment Discuss what is a database Research who uses a database and why? Discuss purpose and features of a relational database Learn some terminology focused around databases

What is covered? Understand the features of relational databases Features: entities; attributes; relationships; benefits Entities: key fields eg primary keys, foreign keys; referential integrity; auto incremented keys; field attributes; data redundancy Attributes: field properties eg data types, size, validation rules Relationships: one-to-many; one-to-one; many-to-many; normalisation Benefits: reduced data redundancy; other eg reduced data storage, faster access, efficient updating, searching, sorting, reporting

What is covered? Be able to design, create and populate a relational database Design: relationships; tables; queries; data entry forms; reports; design documentation eg DFds, ERDs, data dictionaries, structured English Creating relationships: normalisation (first, second and third normal forms); modifying; cascading updates; cascading deletes Query design: selection of data types; use of logical operators eg AND, NOR, NOT Data entry forms: verification routines; validation routines eg input masking, checks for completeness, data consistency; data redundancy; visual prompts; dropdown; combo boxes Populate: data entry; importing data from external sources eg other databases, spreadsheets, text files Exporting data: query results; report results; destination eg spreadsheet, database Advanced features: creating styles for fields, tables, forms, reports; creating styles to match user need; consistency eg using tool box; customising: menus and toolbars eg use show/hide functionality, add buttons; automated functions eg macros, scripts, program code Errors: reasons eg different data types, poor design, inconsistent normalisation; rectification

What is covered? Be able to test a relational database Testing: test plan; functionality; against user requirements; customer acceptance Evaluation criteria: fit for purpose; justification of features used; suggestions for improvements

How will you be assessed? One Assignment Practical observations

What is a database? Store information efficiently and reliably so that the information can be retrieved on demand in the form and structure required. A database is a structured collection of records or data that is stored in a computer system. The structure is achieved by organizing the data according to a database model. http://en.wikipedia.org/wiki/Database A collection of information organized in such a way that a computer program can quickly select desired pieces of data. You can think of a database as an electronic filing system. http://www.webopedia.com/TERM/d/database.html

Who uses a database? When a database holds details about people, it's likely to include their first name, surname and their date of birth. In addition to this, specialist information is stored depending on the database's intended use. The police have details of all known criminals in a database, e.g. crimes they've committed. Schools use a database to store details about their pupils, e.g. how many days they've been off school sick. A hospital will store details of all its patients in a database, e.g. a history of their health issues. The Government uses a database to store records of people's income tax payments. A database is used to keep track of all the drivers in central London who have (or haven't) paid the Congestion Charge. In the case of the Congestion Charge database, if someone hasn't paid the congestion charge, a fine will be issued. The database would play an integral part in automating the process. Information stored in the other databases listed above could be used in similar ways. http://www.bbc.co.uk/schools/gcsebitesize/ict/databases/2databasesrev4.shtml

Why use a database? Databases can store very large numbers of records efficiently (they take up little space). It is very quick and easy to find information. It is easy to add new data and to edit or delete old data. Data can be searched easily, eg. 'find all Ford cars‘ Data can be sorted easily, for example into 'date first registered' order. Data can be imported into other applications, for example a mail-merge letter to a customer saying that an MOT test is due. More than one person can access the same database at the same time - multi-access Security may be better than in paper files. http://www.bbc.co.uk/schools/gcsebitesize/ict/databases/2databasesrev4.shtml http://www.bbc.co.uk/schools/gcsebitesize/ict/databases/2databasesrev4.shtml

Why use a database? Minimise unnecessary data redundancy (duplications) Ease of modification Simple design Keep data consistent, data is only stored once Can represent real world entities http://www.bbc.co.uk/schools/gcsebitesize/ict/databases/2databasesrev4.shtml

What is a DBMS? Database Management System The DBMS is a software provided by the database vendor. Software products such as Ms Access, Oracle, MS SQL Server; are all DBMS The DBMS provides all the basic services required to organise and maintain the database, these include: Moving data to and from data files as needed Managing data when access is required by multiple users Managing transactions so that each transaction’s database change are an all- or- nothing unit of work Support for a query language in order to retrieve data Provisions for backing up the database and recovering from failures Security to prevent unauthorised data access and modification

How does it work? Database Management System By using layers of data abstraction databases have the unique capability of presenting multiple users of the data with their own distinct view, while storing the underlying data only once. Users can then access an application with the purpose of storing and retrieving data. The Physical Layer – contains the data files, e.g. the tables in access The Logical Layer – also called the schema. It transforms the data in the data files into a common structure The External Layer – the user’s views.

Layers of data abstraction View 1 View 2 View 3 Internal Schema Database file 1 2 3 4 External Layer Logical Layer Physical Layer

Types of database Using the internet find out about the following types of databases: Flat file – A flat file database is a database designed around a single table. Relational database – Incorporates multiple tables that are related together using keys. 10 minutes

Common Terms Using the internet find out what the following terms mean? Field Column Row Primary Key Foreign Key Atomic Entity Table Data redundancy 25 minutes Extra Task: Normalisation

Terminology Table The data values held are stored in the tables Column Table The data values held are stored in the tables A table has rows and columns. Each column represents a particular data value, e.g. Author. Each row represents a record of a “thing”, e.g. Order Order ID CustomerID OrderDate Paid 0001 C1 01/11/2010 Yes 0002 C45 No 0003 05/11/2010 Row CustomerID FirstName Surname C1 Mike Lee C45 Eva Johnson C53 Mohammed Ahmed Give other examples i.e. primary / foreign keys etc.

Terminology Entity An entity is a name of some part of the data chosen so that it can be referenced by a name. In this example the entities are the same as the tables. For example: Customer, Order, Item etc.

Terminology Attribute / Field An item of data relating to an entity e.g. FirstName. CustomerID FirstName Surname C1 Mike Lee C45 Eva Johnson Mohammed Armed What are the other attributes in this example?

Conclusion: Discussed unit content and assessment Discussed what is a database Researched who uses a database and why? Discussed purpose and features of a relational database Learnt some terminology focused around databases