Digital Media Technology Week 10: Introduction to Relational Databases Peter Verhaar.

Slides:



Advertisements
Similar presentations
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Advertisements

Introduction to Database ISYS 363. File Concepts File consists of a group of records. Each record contains a group of fields. Example: Student file –SIDSnameMajorSexGPA.
3-1 Chapter 3 Data and Knowledge Management
1004INT Information Systems Week 10 Databases as Business Tools.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 3: Data Modeling
Databases and Database Management Systems
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Compe 301 ER - Model. Today DBMS Overview Data Modeling Going from conceptual requirements of a application to a concrete data model E/R Model.
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.
APPENDIX C DESIGNING DATABASES
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.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Database Design Concepts
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
2.3 Organising Data for Effective Retrieval
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
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 /
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Digital Media Technology Week 9. The import of books from Britain into the Netherlands between 1850 and 1879 increased from f 21,085 to f 161,925, or.
Digital Media Technology Week 11. Stylesheet languages vs. Querying languages.
Digital Media Technology Week 10. foreign key primary key TREASURE_IDTITLECREATORLIBRARYSUBJECTYEAR 1Sidereus Nuncius77SCI1610 2Requiem KV 62621MUS1791.
MICROSOFT ACCESS 2007 BTA – Spring What is Access?  Microsoft Access is a database management system…this means that it contains database information.
Chapter 1Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
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:
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 2 This material was developed by Oregon Health & Science.
CSC 240 (Blum)1 Introduction to Database. CSC 240 (Blum)2 Data versus Information When people distinguish between data and information, –Data is simply.
Information Systems Today (©2006 Prentice Hall) 3-1 CS3754 Class Note 12 Summery of Relational Database.
SQL Structured Query Language Programming Course.
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
CS 1308 Computer Literacy and the Internet
Database Fundamentals Lecture 4 Useful website for MySQL download language.com/workshops/Default.asp ?workshop=21.
Fanny Widadie, S.P, M.Agr 1 Database Management Systems.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
Introduction to Database Tonga Institute of Higher Education NOS 215.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Database revision.
+ Information Systems and Databases 2.2 Organisation.
Relational Database. I. Relational Database 1. Introduction 2. Database Models 3. Relational Database 4. Entity-Relationship Models 5. RDB Design Principles.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Lesson 2: Designing a Database and Creating Tables.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Introduction to Databases CISC Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Sample Table Standard Notation Entity name in uppercase
Data Modeling AND ER MODELS.
DAY 9: DATABASES Rohit February 17,
1 Management Information Systems M Agung Ali Fikri, SE. MM.
Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Databases A brief introduction….
Database Design Hacettepe University
Presentation transcript:

Digital Media Technology Week 10: Introduction to Relational Databases Peter Verhaar

“Critical Digital Humanities” □ Tools criticism and software studies □ Theorising computational approaches □ Social and cultural implications of software, cf. research in STS; Langdon Winner □ Effects on the research agenda

A series of counts: number of titles per decade

List of all subjects Deduplication and counts in, for example, Excel

Strengths □ Creation of lists □ Filtering a list □ Counting the number of items in a list Weaknesses □ Find the unique values in a list □ Count the number of items for all these unique values XSLT and data processing

Stylesheet languages vs. Querying languages

□ Design □ Implementation □ Data entry □ Analysis Creating a database: Phases

The import of books from Britain into the Netherlands between 1850 and 1879 increased from f 21,085 to f 161,925, or some 760% in a 29-year period. By comparison, overall book imports in the same period went from f 341,449 to f 1,509,732 or almost 440%. In other words, if import of foreign books was booming generally, the British share in this import grew even faster. In 1850 it amounted to just over 6% of all book imports, growing to a full 10% in By 1939 the figure for books and periodicals are separate. British books by then account for 18% of all book imports; British periodicals for 43% of all periodical imports. Thus, the average of books and periodicals is 23%.We can put this remarkable growth in perspective by comparing it with the book title production within the Netherlands itself, which went up from 1732 titles in 1850 to almost 3000 (2948) in 1900: an increase of less than 200% over a 50-year period, compared to the 760% over a 29-year period in the case of British imports. Linearity

Date,Author last name,Author first name,Title,Vols,No. printed,No. sold,Mudie's subs,Mudie's % Jan. 1858,Eliot,George,Scenes of Clerical Life,2,1050,1006,350,35 Dec. 1858,Lytton,Edward Bulwer,What Will He Do With It?,4,4200,3801,1725,45 Jan. 1859,Eliot,George,Adam Bede,3,3416,3304,1500,45 June 1863,Speke,John Hanning,What Led to the Discovery of the Nile,1,1575,922,100,11 Structure

Data redundancy

□ A database is a collection of structured and related data which □ is organised in a structured way □ allows for random access because of its non-linear nature □ ideally maximises storage and retrieval efficiency □ Database management system (DBMS): computer program that enables users to store, modify, and extract information from a database

Interpretation continuum Data Information Source: Obrst and Liu, Knowledge representation, Ontological Engineering and Topic Maps, in: XML Topic Maps, 2003 DIKW Pyramid

Tables, Rows, Columns Records (rows) Fields (columns)

Flat File Database AUTHOR_ ID LAST_NAMEFIRST_NAME YEAR_OF_ BIRTH YEAR_OF_ DEATH NATIONALITY 1AustenJane uk 2GoldsmithOliver ie 3BeckettSamuel ie 4ShawGeorge Bernard ie 5PinterHarold uk 6O'NeillEugene us

LAST_NAMEFIRST_NAME YEAR_OF_ BIRTH YEAR_OF _DEATH NATIONAL ITY TITLEPUBLISHERYEAREXTENT AustenJane ukMansfield ParkCambridge University Press p. AustenJane ukPersuasionCambridge University Press p. BeckettSamuel ieEndgame : a play in one act Faber and Faber p. BeckettSamuel ieMolloyCalder p. BeckettSamuel ieWattCalder p. GoldsmithOliver ieShe stoops to conquer Oxford University Press p. GoldsmithOliver ieThe vicar of Wakefield George Routlede and Sons p. O'NeillEugene usStrange interlude : a play Cape p. O'NeillEugene usLong day’s journey into night Cape p. HeaneySeamus1939ieDeath of a Naturalist Faber and Faber p. HeaneySeamus1939ieSeeing ThingsFaber and Faber p. ShawGeorge Bernard ieMajor BarbaraPenguin p. Create, Retrieve, Update, Delete

AUTHOR_ ID LAST_NAMEFIRST_NAME YEAR_OF_ BIRTH YEAR_OF_ DEATH NATIONALITY 1AustenJane uk 2GoldsmithOliver ie 3BeckettSamuel ie 4ShawGeorge Bernard ie 5PinterHarold1930uk 6O'NeillEugene us BOOK_IDTITLE AUTHOR_ ID PUBLISHERYEAREXTENT 1Mansfield Park1Cambridge University Press p. 2Persuasion1Cambridge University Press p. 3Long day’s journey into night 6Cape p. 4Strange interlude : a play 6Cape p. 5Molloy3Calder p. 6The caretaker5Methuen p. 7She stoops to conquer2Oxford University Press p. 8The vicar of Wakefield2George Routlede and Sons p. 9Endgame : a play in one act 3Faber and Faber p. 10Watt3Calder p. 11The homecoming5Methuen p. 12Major Barbara4Penguin p. Shared column foreign key primary key

Primary Key

Seminal publications: □ E.F. Codd, “A Relational Model of Data for Large Shared Data Banks” (1970) □ Peter Chen, “The Entity-Relationship Model: Toward a Unified View of Data” (1976)

□ Technique to visualise the various relationships between the entities in a database □ Steps: □ (1) Identify entities □ (2) Identify attributes □ (3) Establish relationships and cardinalities □ (4) Remove many-to-many relationships Entity-Relationship Modelling

AUTHOR BOOK PUBLISHER

AUTHOR P_ID FIRST_NAME LAST_NAME DATE_OF_BIRTH DATE_OF_DEATH NATIONALITY Attributes PK is underlined

AUTHOR BOOK STUDENT COURSE EMPLOYEE COMPANY LIBRARY BOOK writes is enrolled in works for owns

cardinality □ How many instances of the entity can be related to how many instance of another entity? □ The answer to this question should be one of the following: one-to-one, one-to-many, many-to-one, many-to-many.

AUTHOR CAPITAL STUDENT COURSE COUNTRY BOOK one-to-one one-to-many many-to-many

Many-to-many relationships Person1Company1 Person2Company1 Person1Company2 Person3Company2 Person2Company3 Person3Company3

PERSON COMPANY (employee) (employer) ? many EMPLOYMENT P_IDC_ID P_ID C_ID E_ID [ DETAILS ]

Important Principles □ There must always be a one-to-one relationship between an entity’s primary key and its descriptive attributes. □ There can only be one-to-many relationships between different entities. □ In the case of many-to-many relationships, a separate table must be created (a linking table) in order to record information about this relationship.