Fundamentals/ICY: Databases 2012/13 Intro to Some Main Themes John Barnden Professor of Artificial Intelligence School of Computer Science University of.

Slides:



Advertisements
Similar presentations
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Advertisements

INFORMATION TECHNOLOGY Software Applications. WORD PROCESSING WP is the most commonly used package in business. A large number of documents are produced.
Fundamentals/ICY: Databases 2013/14 WEEK 4: Monday Intro to tables, etc. John Barnden Professor of Artificial Intelligence School of Computer Science University.
Chapter 12 – Strategies for Effective Written Reports
Introduction to Databases
Fundamentals/ICY: Databases 2013/14 Week 6: Monday John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Relational Databases Chapter 4.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 10 Managing a Database.
File Systems and Databases
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.
File Systems and Databases Hachim Haddouti
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
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);
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Introduction to Databases and Database Languages
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
Database Design - Lecture 1
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Applications Software. Applications software is designed to perform specific tasks. There are three main types of application software: Applications packages.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe.
Concepts and Terminology Introduction to Database.
Fundamentals/ICY: Databases 2012/13 WEEK 7 John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham, UK.
CSC 240 (Blum)1 Introduction to Database. CSC 240 (Blum)2 Data versus Information When people distinguish between data and information, –Data is simply.
Software. Generic Software  e.g. word processing, spreadsheet and database. – This simply implies that any of the dozens of spreadsheet packages, for.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
IB ITGS Case Study. Introduction: Serving thousands of clients, it is method of environment-friendly green ticketing. User friendly system which minimizes.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Fundamentals/ICY: Databases 2013/14 WEEK 3: Friday Theme intro contd; towards tables John Barnden Professor of Artificial Intelligence School of Computer.
Fundamentals/ICY: Databases 2012/13 WEEK 3 John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham, UK.
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.
C6 Databases. 2 Traditional file environment Data Redundancy and Inconsistency: –Data redundancy: The presence of duplicate data in multiple data files.
Fundamentals/ICY: Databases 2012/13 WEEK 11 – 4 th Normal Form (optional material) John Barnden Professor of Artificial Intelligence School of Computer.
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms – Project 5.
Databases Unit 3_6. Flat File Databases One table containing data Data must be entered as a whole each time e.g. customer name and address each time (data.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
FILES AND DATABASES. A FILE is a collection of records with similar characteristics, e.g: A Sales Ledger Stock Records A Price List Customer Records Files.
Relational Database. I. Relational Database 1. Introduction 2. Database Models 3. Relational Database 4. Entity-Relationship Models 5. RDB Design Principles.
Chapter 9 Database Systems © 2007 Pearson Addison-Wesley. All rights reserved.
CS201: Data Structures and Discrete Mathematics I Hash Table.
Data Structures and Algorithms Dr. Tehseen Zia Assistant Professor Dept. Computer Science and IT University of Sargodha Lecture 1.
Fundamentals/ICY: Databases 2013/14 WEEK 9 –Friday John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Fundamentals/ICY: Databases 2013/14 Initial Orientation John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Integrate, check and share documents Module 3.3. Integrate, check and share documents Module 3.3.
Flat Files Relational Databases
Fundamentals/ICY: Databases 2013/14 Week 11 – Monday – relations, ended. John Barnden Professor of Artificial Intelligence School of Computer Science University.
Fundamentals/ICY: Databases 2013/14 Week 3: Monday Intro to Some Main Themes John Barnden Professor of Artificial Intelligence School of Computer Science.
MS Access. Most A2 projects use MS Access Has sufficient depth to support a significant project. Relational Databases. Fairly easy to develop a good user.
D ATABASE MANAGEMENT SYSTEM By Rubel Biswas. W HAT IS I NFORMATION ? It’s just something you can’t avoid. It is generally referred to as data.
INTRODUCTION TO INFORMATION SYSTEMS LECTURE 9: DATABASE FEATURES, FUNCTIONS AND ARCHITECTURES PART (2) أ/ غدير عاشور 1.
Database Development Lifecycle
Lesson 10 Databases.
BASIC INFORMATION ABOUT DATABASE MANAGEMENT SOFTWARE
Chapter Ten Managing a Database.
Fundamentals/ICY: Databases 2010/11 WEEK 1
Database Management Systems
Basic Concepts in Data Management
File Systems and Databases
Databases Lesson 2.
Relational Database Model
Data Model.
Fundamentals/ICY: Databases 2012/13 Initial Orientation
UNIT-I Introduction to Database Management Systems
Unit Databases.
File Organization.
Geographic Information Systems
Presentation transcript:

Fundamentals/ICY: Databases 2012/13 Intro to Some Main Themes John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham, UK

Let’s Think about Some Data Repository Needs in Ordinary Life... uWhat sorts of data are held in things like the following, and how is it structured? What are the needs for extraction of info, updating data, etc.? How frequent and how easy are such operations? l Address books (in physical form). l Diaries (in physical form). l Train timetables. l Cookery books. l Photo albums. l Dictionaries (monolingual and bilingual). l Records of a student society, voluntary society, etc. l Atlases. l Encyclopaedias. uWhat about the data in your computer files?!

SOME GENERAL THEMES Data redundancy, data anomalies (inconsistencies). Cross-references between places in a data repository. Associative linking versus pointing. Use of tables to represent things. The mathematical underpinnings of the tables.

DATA REDUNDANCY, DATA ANOMALIES, and CROSS-REFERENCING (introduction to themes)

Data Redundancy and Anomalies uData Redundancy = replicating data in different places in a data repository. l E.g., in a recipe book, saying how to fry onions every time fried onions are needed in a recipe. uRedundancy encourages “data anomalies” and lack of “integrity” – basically, inconsistency between the different places. Such problems arise with insertions, deletions, and modifications in general. uRedundancy also causes a type of inefficiency: replicated updates.

Redundancy, etc., contd. 1 uRedundancy implies that if you want to modify/delete a piece of information, you need to l know whether there is replication, or check for possible replications l go to the effort of repeating changes when the item is replicated l avoid errors in such repeated changes.

Redundancy, etc., contd. 2 uAlso, when something has to be repeated in different places, then: the more internally complex it is, the more complex it is to use, and the more likely errors are to arise. l E.g., repeating the tenant’s full name throughout an apartment tenancy agreement. l Better to use a simple term such as “the tenant” and associate it in one place with the full name. l Another example: it’s easier, and safer (in many respects), for a bank to identify customer accounts with special numbers than to use complex identifiers like “David and Samantha Cameron’s lifestyle guru account”.

Referential Integrity uReferential integrity is relevant when one place in a data repository needs to refer to something in another place: cross-references. uReferential integrity is achieved when every such referring place contains a successful reference to another place or place-occupant (or no reference at all). l “Successful” there just means that the reference succeeds in specifying some other place(-occupant). l The reference may not be correct in the sense of being the one that you actually wanted!

Ways of Doing Cross-Reference uNotice distinction above between referring to places or to place- occupants: i.e., where or what, respectively … uPointing or associative linking, respectively. l Your party-attendance plan for the month would use pointing pointing if it referred to the party-givers by page and line number in your address book, associative linking associative linking if it referred by means of party-givers’ names. Labels in a diagram are a means for associative linking between the diagram and the legend (= explanation of the labels, etc.) or other text. uThe notion of “relational” database rests heavily on associative linking, unlike its predecessors (“hierarchical” and “network” database notions).

Redundancy: Upside and More Downside uNotice that associative linkages between different places constitute a specialized sort of needed redundancy. uRedundancy in general does have some advantages, including: l efficiency in some respects (reduce effort of following cross-references) l error or corruption in one place could in principle be corrected or at least circumvented by looking at another place (a type of fault-tolerance). uBut redundancy can also prevent errors being detected: l If the bank keeps detailed information about you (your address etc.) in just one place, associated with your account number, then an error in that detailed information is more likely to come to light precisely because its effects are more widespread.

An Analogy with Programming uAnalogous redundancy/anomaly issues arise in program text. E.g.: l If a constant numerical value such as  or g (gravitational acceleration) needs to be used in several places, best to give it a name and replicate the name, not the value. Aids consistency and maintainability. l If a sequence of operations needs to be invoked in many different places in the program, package it as a named procedure (function, method, …).

TABLES for REPRESENTATION (theme introduction)

NAMEADDRESSPHONESBIRTHDAY Babloop Porkypasta 107 Worm Drive, Hedgebarton, Birmngham, B15 9ZZ January 1969 Coriolanus Zebedee O’Crackpotham The Wellyboots, Boring-under-Mosswood, Berks, HP11 1XX Johnny Next to the Tesco’s in Upper Street H: W: M: ??? Full Monty chip shop Harborne Oct 05 Hilary R. Clinton (grr!) The Old Black House, Aplanalp St., Las Cruces, NM , USA ex-dir16 Sep? (refused to tell me how old she was)

Problems with that Table uAlthough that table illustrates the sort of table used in databases in some sense, it has many tricky features: l Empty entries – what’s the interpretation? l Spelling error (Birmngham) l Names/addresses of different forms (perhaps unavoidably) l Different numbers of alternatives in different cells l Different interpretations of “birthday” field (per year, or when born, or when shop opened) l Vague entries (next to the Tesco’s in Upper St.; Harborne) l Expressed uncertainty (the question marks, alone or attached) l Additional comments (grr!, refused …) l Exceptional entry types (ex-dir, and the contents of the chip-shop row)