More about Databases. Topics. More Taxonomy. And more Taxonomy. Computer Literacy 1 Lecture 18 30/10/2008

Similar documents
Relational Databases. Charles Severance

CS317 File and Database Systems

Unit 10 Databases. Computer Concepts Unit Contents. 10 Operational and Analytical Databases. 10 Section A: Database Basics

Chapter 6. Foundations of Business Intelligence: Databases and Information Management VIDEO CASES

CS313D: ADVANCED PROGRAMMING LANGUAGE

Data and Knowledge Management Dr. Rick Jerz

Data and Knowledge Management. Goals. Big Data. Dr. Rick Jerz

MTA Database Administrator Fundamentals Course

Managing the Database

Basic operators: selection, projection, cross product, union, difference,

Final Exam Review Sheet INFO/CSE 100 Spring 2006

Lecture #14 Optimizer Implementation (Part I)

Technology In Action, Complete, 14e (Evans et al.) Chapter 11 Behind the Scenes: Databases and Information Systems

Homework 4: Query Processing, Query Optimization (due March 21 st, 2016, 4:00pm, in class hard-copy please)

Module 9: Managing Schema Objects

CSCI-UA: Database Design & Web Implementation. Professor Evan Sandhaus

CS 200. Lecture 06. Database Introduction. Database Introduction. CS 200 Winter 2018

Chapter Five Physical Database Design

Relational Databases. Relational Databases. SQLite Manager For Firefox.

TIM 50 - Business Information Systems

CHAPTER 6 SUMMARY. Objective 1: Identify Good Database Design

8) A top-to-bottom relationship among the items in a database is established by a

Databases = Categories

CS 200. Lecture 05. Database Introduction. Database Introduction. CS 200 Spring Monday, June 3, 2013

CS 4320/5320 Homework 2

CS 200. Lecture 09 FileMaker vs SQL & Reports. FileMaker vs SQL + Reports. CS 200 Spring 2018

DB tutorial using Database.NET dbforge Studio Express and SQLiteSpy

Database Management Concepts I

Management Information Systems Review Questions. Chapter 6 Foundations of Business Intelligence: Databases and Information Management

WTF with SQL. It s just not right! Kennie Nybo Pontoppidan Dublin, June 18th 2016

Concepts of Database Management Seventh Edition. Chapter 4 The Relational Model 3: Advanced Topics

Data Base Concepts. Course Guide 2

Database Processing. Fundamentals, Design, and Implementation. Global Edition

Mobile MOUSe MTA DATABASE ADMINISTRATOR FUNDAMENTALS ONLINE COURSE OUTLINE

Fundamentals of Database Systems (INSY2061)

Inputs. Decisions. Leads to

Data, Information, and Databases

Solved MCQ on fundamental of DBMS. Set-1

EE221 Databases Practicals Manual

Chapter 11: Data Management Layer Design

Management Information Systems

Introduction to Databases

Fundamentals of Information Systems, Seventh Edition

Information Systems Development COMM005 (CSM03) Autumn Semester 2009

CompSci 516 Data Intensive Computing Systems

Chapter 1 SQL and Data

Teaching Scheme BIT/MMC/BCS Database Systems 1

Information Retrieval and Knowledge Organisation

SI Networked Computing: Storage, Communication, and Processing, Winter 2009

CS143: Relational Model

Introducing the SAS ODBC Driver

Guidance on the appropriateness of the information technology solution

ADVANCED DATABASE SYSTEMS. Lecture #15. Optimizer Implementation (Part // // Spring 2018

9. Introduction to MS Access

Database Design. A Bottom-Up Approach

EASTERN ARIZONA COLLEGE Database Design and Development

CS317 File and Database Systems

Relational Model. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

CHAPTER 11. Data Normalization

Oracle Database 10g: Introduction to SQL

Final Exam Review 2. Kathleen Durant CS 3200 Northeastern University Lecture 23

Lecture 8. Database Management and Queries

Review for Exam 1 CS474 (Norton)

Information & Communications Technology (ICT) Essentials 2 (2017/2018)

DATABASE DEVELOPMENT (H4)

CHAPTER 6 DATABASE MANAGEMENT SYSTEMS

LORD P.C.A.A Lions Mat.Hr.Sec School, Lions Nagar, Reserve Line, Sivakasi. 7.Data Base. PART A I. Choose the correct Answer : 15 X 1 = 15

2.2.2.Relational Database concept

TIM 50 - Business Information Systems

Announcement. Reading Material. Overview of Query Evaluation. Overview of Query Evaluation. Overview of Query Evaluation 9/26/17

Language. f SQL. Larry Rockoff COURSE TECHNOLOGY. Kingdom United States. Course Technology PTR. A part ofcenqaqe Learninq

Database Management System 9

RELATIONAL OPERATORS #1

Chapter 3B Objectives. Relational Set Operators. Relational Set Operators. Relational Algebra Operations

Introduction to Queries, Outputs, and Scheduling. Introduction to Queries, Outputs and Scheduling

Data Strategies for Efficiency and Growth

CSE 544 Data Models. Lecture #3. CSE544 - Spring,

Chapter 3. Foundations of Business Intelligence: Databases and Information Management

INFORMATION TECHNOLOGY NOTES

Informatics 1: Data & Analysis

Relational Model & Algebra. Announcements (Tue. Sep. 3) Relational data model. CompSci 316 Introduction to Database Systems

IT1105 Information Systems and Technology. BIT 1 ST YEAR SEMESTER 1 University of Colombo School of Computing. Student Manual

Chapter 6 The Relational Algebra and Relational Calculus

Introduction Database Technology [DBTECO601]

6) The technique allows managers to view data in a data warehouse on a global level and on successively lower levels.

CSE 344 MAY 7 TH EXAM REVIEW

LIBREOFFICE TRAINING PROTOCOL

Introduction to Data Management CSE 344. Lectures 8: Relational Algebra

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 8 Advanced SQL

Database Systems, CSCI Exam #2 Thursday November 4, 2010 at 2 pm

Topics covered 10/12/2015. Pengantar Teknologi Informasi dan Teknologi Hijau. Suryo Widiantoro, ST, MMSI, M.Com(IS)

Course Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course:

CS 4604: Introduction to Database Management Systems. B. Aditya Prakash Lecture #10: Query Processing

16/06/56. Databases. Databases. Databases The McGraw-Hill Companies, Inc. All rights reserved.

Part I What are Databases?

CompSci 516: Database Systems. Lecture 20. Parallel DBMS. Instructor: Sudeepa Roy

Databases The McGraw-Hill Companies, Inc. All rights reserved.

Chapter 11 Databases. Computer Concepts 2013

SECTION 1 DBMS LAB 1.0 INTRODUCTION 1.1 OBJECTIVES 1.2 INTRODUCTION TO MS-ACCESS. Structure Page No.

CS698F Advanced Data Management. Instructor: Medha Atre. Aug 04, 2017 CS698F Adv Data Mgmt 1

Transcription:

Topics More about Databases Computer Literacy Lecture 8 30/0/008 Terminology What s a database for again? Relational Database Model Samples Database Integrity Data mining More Taxonomy According to more orthodox database terminology a file is a collection of recordings A record is the information relating to a single item of the relevant type, e.g. person, product, event In an address book database, a record contains information about person, a CD catalogue would have record per CD And more Taxonomy Each discrete chunk of information in a record is called a field The type of information a field can hold is determined by its field type or data type For example the author in a library database would be a text field, the field for specifying the number of copies would be a numeric field

Other fields A date of purchase field might be a date field that only allows dates to be entered Many database programs allow fields to contain graphics, photographs, sounds, video clips Computed fields contain formulas similar to spreadsheet formulas: They display values calculated from other numeric fields Layers Recall layers of abstraction architecture: Physical, logical, external The abstract logical layer is the heart of the database since this is where the data structures live What is a database for Ultimately, the point of a database is to model part of the real world So we want the data structures to represent the corresponding area/realm of facts The realm of facts is a complex place: objects have many different attributes and bear many different relationships with each other The model should accurately express these attributes and relationships Different Types There are various methods for structuring the data to represent the facts, e.g. flat files, hierarchies, networks, object oriented models Our focus will be on relational model - currently most wide spread

Different Types The DBMS transforms data in the physical data files into a common structure in the logical layer (schema) Different data structures are generated by different DBMSs What s a database again? Structure - Schema Data Within the structure we can define classes of items, their properties and the relationship between them Data is then entered into the database to conform the schema You can have a schema with no data Database vs. DBMS A database is a schema plus data The program that lets you work with the data is a Data Base Management System (DBMS) MS Access are DBMSs, not databases Relational Database Model Developed by E.F. Codd, 970 Only one basic structure in RDB: the relation The relation is a table of objects of the same type With properties: Every relation must have a unique name Every column in it must have a unique name Duplicate rows are not allowed Enforced by a requiring a unique primary key Each cell must contain a single value 3

Example - Structure Example Data Schema: Media catalogue Instance: My Music Collection Classes: Artists, Work Relationship: Artists record work etc Attributes: Artists have names, category, nationality, Works have titles, dates, media, Artists: Eels Kings of Leon Works Beautiful Freak Only by the night Relationships The Eels recorded Beautiful Freak Attributes Beautiful Freak was recorded in 996 on CD Database Integrity Consider: Only by the night Kings of Leon Only by the night King of Leon Aha Shake Heartbreak King of Leon Variations produce inauthentic duplication and lack of association (a search on Kings of Leon would miss Aha Shake Heartbreak) This database is not an accurate reflection of the world it represents: it lacks integrity Relational Database Database comprises a set of tables, where all the data on one topic is stored in a table A record is the data for a for a single item in a table, e.g. the details relating to one artist A field is a piece of data within a record, e.g. album title A relationship links detail in one table with detail in another, e.g. through a ArtistID number 4

Tables Each record in a table is presented in a row Each field in a record is in a column Each field has a field name at the top of the column The type of information a field can hold is determined by its field type, e.g. text field, numeric field, etc Keys Most records will have a unique identifier - a field that holds different information in every record The field that must be unique in each record is the Primary Key - you can t enter duplicate information in a primary key field A Foreign Key refers to a Primary Key in another table Sample Relations Primary Key AlbumID Album Title ArtistID Foreign Key Join Albums with Artists (Natural) join of Album and Artists 3 Beatiful Freak Only by the night Aha Shake Heartbreak AlbumID Title Beautiful Freak ArtistID ArtistName Eels ArtistType ArtistID ArtistName Eels ArtistType 3 Only by the Night Aha Shake Heartbreak Kings of Leon Kings of Leon Kings of Leon 5

A Few Relational Operators The External Layer Restrict Returns selected rows according to criteria Project Returns selected columns according to criteria Join Returns one relation from (more columns) Union Merge compatible relations (more rows) Intersection Returns rows common to relations Uses a query language, e.g. SQL (also handles schema definition) based on relational operators Input via direct entry into a table or via a form Query as text enquiry or via GUI Output as response to a query A user view Data Mining Discovery of hidden/unexpected patterns of data A.K.A. Knowledge Discovery Involves large volumes of data Process of sorting through large amount of data and picking out relevant information Useful in making organisational decisions Data Mining Techniques Predictive modelling Test model against real data Or train your model on a sample data set Segmentation Look for clustering in data Buying patterns 6

Key points Terms: Schema, relations, DBMS Relational Model and how it is applied Database integrity Selected operators and what they do Data mining 7