Massachusetts Institute of Technology Department of Urban Studies and Planning

Similar documents
Unit 18 Database Design Extended Diploma in ICT DATA DICTIONARIES

INTRODUCING. Access. R. Kumar

Massachusetts Institute of Technology Department of Urban Studies and Planning

What is a database? Lesson - 1

COMM 391. Objectives. Introduction to Microsoft Access. What is in an Access database file? Introduction to Microsoft Access 2010

What is a database? A database is any collection of data that is organized for quick retrieval. Databases can be computer based or paper based

DATABASE PART 2. Components and Functions

MS-Access Programming. Assit.Prof. Dr. Anantakul Intarapadung

HKTA TANG HIN MEMORIAL SECONDARY SCHOOL SECONDARY 3 COMPUTER LITERACY. Name: ( ) Class: Date: Databases and Microsoft Access

Course: US02EBCA02 (Working with RDBMS for Small Scale Organizations) Effective from June

9. Introduction to MS Access

Index. B backing up 76 7

Microsoft Office Access 2013: Part 01. Lesson 01 - Getting Started with Access

Database Concepts Using Microsoft Access

CHAPTER 6 SUMMARY. Objective 1: Identify Good Database Design

Exploring Microsoft Office Access Chapter 2: Relational Databases and Multi-Table Queries

Full file at

Bangladesh Open University

Getting started with Ms Access Getting Started. Primary Key Composite Key Foreign Key

MIS 2502 Access 2007 Tutorial

Rapid Application Development

Introduction to Microsoft Access 2016

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

IFF 1414 Intro to Database. Notes

Microsoft Access - Using Relational Database Data Queries (Stored Procedures) Paul A. Harris, Ph.D. Director, GCRC Informatics.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Very Short Answer Type Questions [1 Mark each]

Database. Ed Milne. Theme An introduction to databases Using the Base component of LibreOffice

Using 2001 Census Data in ArcView 3.3 with Census Data from the CHASS Census Analyzer and Statistics Canada Digital Cartographic Files

DEC Computer Technology LESSON 6: DATABASES AND WEB SEARCH ENGINES

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

Nutzen Sie die Dettmer-Seminarunterlagen für Access bei einmaligem Kauf über Jahre hinaus für Ihre eigenen Schulungen

Level 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards C30147 RELATIONAL DATABASE

2. In Video #6, we used Power Query to append multiple Text Files into a single Proper Data Set:

GO! with Microsoft Access 2016 Comprehensive

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

The specific steps to build Wooden Crafts database are here: 1. Create New Database. i. After opening Access, click Blank Desktop Database :


By: Access 2007 Table

Microsoft Office Excel 2007

Microsoft Access Illustrated. Unit B: Building and Using Queries

Intermediate Microsoft Access 2010

Microsoft Access 2007 Module 1

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Sloan School of Management

Introduction to Computer Applications. CISY 1225 Chapter 10. Zahoor Khan, PhD

Discovering Computers Fundamentals, 2011 Edition. Living in a Digital World

Course Outline. Writing Reports with Report Builder and SSRS Level 1 Course 55123: 2 days Instructor Led. About this course

ArcMap - EXPLORING THE DATABASE Part I. SPATIAL DATA FORMATS Part II

Use mail merge to create and print letters and other documents

CS313D: ADVANCED PROGRAMMING LANGUAGE

Access 2003 Introduction

MS-Access : Objective Questions (MCQs) Set 1

Geographical Information Systems Institute. Center for Geographic Analysis, Harvard University

3 장. Access Object - Tables are for storing data. - Queries are for retrieving data - Forms are for entering and displaying data on screen.

Year 8 Computing Science End of Term 3 Revision Guide

Writing Reports with Report Designer and SSRS 2014 Level 1

Microsoft Access Description

Databases vs. Spreadsheets

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Chapter Five Physical Database Design

Fundamentals of Information Systems, Seventh Edition

INFORMATION TECHNOLOGY NOTES

MS Access Let s begin by looking at the toolbar and menu of Access.

Microsoft Office Illustrated Introductory, Building and Using Queries

Lecture 8. Database vs. Files SQL (I) Introduction to SQL database management systems (DBMS)

Hot Tech Tips for using SPSS Statistics Part 1. Laura Watts Mitya Moitra Wednesday October 11 th 2017, 11AM

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

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

Chapter 1: Introduction to Microsoft Access 2003

Introduction. Example Databases

What is a Database? CMPSCI 105: Lecture #15 Introduction to Databases. Spreadsheets vs. Databases. One Skill You Will Develop

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

ENGG1811: Databases 1

ENGRG 59910: Introduction to GIS

Chapter 10 Managing a Database. Discovering Computers Your Interactive Guide to the Digital World

Database Management System Fall Introduction to Information and Communication Technologies CSD 102

Chapter 1 SQL and Data

DATA Data and information are used in our daily life. Each type of data has its own importance that contribute toward useful information.

Data Base Concepts. Course Guide 2

Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept]

Microsoft Certified Application Specialist Exam Objectives Map

Relational Model History. COSC 416 NoSQL Databases. Relational Model (Review) Relation Example. Relational Model Definitions. Relational Integrity

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one

Lesson 7 Software Fundamentals

K Hinds Page 1. Information Communication Technology Microsoft Access

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

Word Module 5: Creating and Formatting Tables

Links to Activities ACTIVITY 2.1. Links to Activities

U1. Data Base Management System (DBMS) Unit -1. MCA 203, Data Base Management System

Introduction. Who wants to study databases?

Microsoft Excel Microsoft Excel

Skills and Tools Using Access 2007

MOBILEDATABASE USER GUIDE PRODUCT VERSION: 1.0

Office of Geographic Information Systems

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

Access 2007 Introduction

Geodatabases. Dr. Zhang SPRING 2016 GISC /03/2016

DATABASE MANAGEMENT SYSTEMS PREPARED BY: ENGR. MOBEEN NAZAR

Beginning Tutorials. BT004 Enterprise Guide Version 2.0 NESUG 2003 James Blaha, Pace University, Briarcliff Manor, NY ABSTRACT: INTRODUCTION:

TIM 50 - Business Information Systems

Transcription:

Massachusetts Institute of Technology Department of Urban Studies and Planning 11.204: Planning, Communication, and Digital Media Fall 2004 Recitation 6: Using Access to Query Multiple Data Sets 1. What is database? Remember stack cards in libraries? Management of students, or employees... Gift registry for wedding My literature database Various definitions of a database (http://www.google.com/search?hl=en&lr=&oi=defmore&q=define:database): an organized body of related information A collection of data: part numbers, product codes, customer information, etc. It usually refers to data organized and stored on a computer that can be searched and retrieved by a computer program. A collection of information organized and presented to serve a specific purpose. (A telephone book is a common database.) A computerized database is an updated, organized file of machine readable information that is rapidly searched and retrieved by computer. A collection of related information about a subject organized in a useful manner that provides a base or foundation for procedures such as retrieving information, drawing conclusions, and making decisions. A shared collection of logically related data, designed to meet the information needs of multiple users in an organization. The term database is often erroneously referred to as a synonym for a database management system (DBMS). They are not equivalent. A database is a store of data that describe entities and the relationships between the entities. A database management system is the software mechanism for managing that data. A collection of related types of data in a single file or set of files for sorting, analysing, and reporting. 2. What are the advantages of computer-based database? Imagine what you did (or would have done) in the libraries before computer-based systems (like OPAC) were introduced. Less work (searching for data/matching two different sets of data) Cross-referencing Accessibility/Portability 3. Why do we need Access? In lab 4, from where is the population density field? (Look in ArcMap) Area--ESRI shape file Population--Census 2000 How do we use Census 2000? Free from the Census Bureau: Method 1 or Method 2 Private vendors (like Geolytics) sell Census CDs, but they are expensive. 3.1 What's the difference between MS Excel and MS Access? Excel--non-structured or free structured; flat file Access--strictly structured based on a general standard

4. Input -- System (Core Function) -- Output --User Control Core Function of Access Data collection, manipulation, integration--generate new datasets with more information or more specific information User Control Interface MS Access Interface and Elements Data come from different resources in different formats. Excel, Text, Lotus, dbase, Oracle, StarOffice... Population (Census Bureau), Crime Record (Police Department), Zoning and Parcels (BRA), Traffic Flow (Transportation Statistics Bureau), Fire Loss (Fire Department), Tax Data (Internal Revenue Service) Data can be used for different purpose and further analysis. Regression or Cluster analysis (SPSS), Make graphs and charts (Excel), Create Maps (ArcView, ArcGIS), Web Publish (HTML)... 5. MS Access Operation 5.1. Framework of MS-Access database Table: database part. operates like Excel. Design View: Definition of columns Primary Key: ID# for each record (e.g. call number at the library) Datasheet View: Real data Composed of records (rows), columns (fields), and cells. Query: tool (1) to select specific data under criteria, and (2) to integrate multiple database. Form: tool/interface to view the contents of the database Report: tool to print out the contents of the database 5.2 Creating Our Own Database by Importing Data (Input) Several ways to create a database--importing and designing the structure, then inputting data Create a new empty database. Save the database. Import Tables Which worksheet to use First row contains column headings Store the data in a new table or an existing table Field Name, Type, Index or not, Setup a primary key Type: 1. Text Use for text or combinations of text and numbers, such as addresses, or for numbers that do not require calculations, such as phone numbers, part numbers, or postal codes. Stores up to 255 characters. The FieldSize property controls the maximum number of characters that can be entered. 2. Memo Use for lengthy text and numbers, such as notes or descriptions. Stores up to 65,536 characters. 3. Number Use for data to be included in mathematical calculations, except calculations involving money (use Currency type). Stores 1, 2, 4, or 8 bytes; stores 16 bytes for Replication ID (GUID). The FieldSize property defines the specific Number type. 4. Date/Time Use for dates and times. Stores 8 bytes. 5. Currency Use for currency values and to prevent rounding off during calculations. Stores 8 bytes.

Index 6. AutoNumber Use for unique sequential (incrementing by 1) or random numbers that are automatically inserted when a record is added. Stores 4 bytes; stores 16 bytes for Replication ID (GUID). 7. Yes/No Use for data that can be only one of two possible values, such as Yes/No, True/False, On/Off. Null values are not allowed. Stores 1 bit. 8. OLE (Object Linking and Embedding) Object Use for OLE objects (such as Microsoft Word documents, Microsoft Excel spreadsheets, pictures, sounds, or other binary data) that were created in other programs using the OLE protocol. Stores up to 1 gigabyte (limited by disk space). 9. Hyperlink Use for hyperlinks. A hyperlink can be a UNC path or a URL. Stores up to 64,000 characters. Primary Key An index helps Microsoft Access find and sort records faster. Access uses indexes in a table as you use an index in a book: to find data, it looks up the location of the data in the index. You can create indexes based on a single field or on multiple fields. Multiple-field indexes enable you to distinguish between records in which the first field may have the same value. You should consider indexing a field if all the following apply: The field's data type is Text, Number, Currency, or Date/Time. You anticipate searching for values stored in the field. You anticipate sorting values in the field. You anticipate storing many different values in the field. If many of the values in the field are the same, the index may not significantly speed up queries. Name the table Each table should include a field or set of fields that uniquely identifies each record stored in the table. This information is called the primary key of the table. Tables will vary in size based on the number of records that you are importing. 5.3 Working with Tables Modifying tables Changing a Cell Value Adding/Deleting Records Sorting tables Simple Filtering tables Simple Advanced Filtering with a logical operator 5.4 Select Queries Simple query based on one table Construct a select query that tells you how many census tracts in the Commonwealth of Massachusetts have more Black people than White people. Query based on table join Construct a select query that tells you how many census tracts in the City of Cambridge have more Black people than White people. Query based on table join, sort, calculation by using query, expression

Build a select query to calculate the population density (number of people per square mile) for each of tract in the City of Cambridge. Sort the records in ascending order. Which tract has the greatest density? 5.5 Export Query Result (Output) Excel, dbase, text, html, Lotus, Word 6. Introduction to Relational Database 6.1 Something behind the queries--sql (structured query language) Three-tier model: Client--Web Server--Data Server e.g. Online Application, Online Shopping, Plaza, WebSIS SQL vs. HTML SQL vs. Java, C++ Procedural vs. Non-procedural 6.2 One to one, one-many, many-many Relationship A one-to-many relationship A one-to-many relationship is the most common type of relationship. In a one-to-many relationship, a record in Table A can have many matching records in Table B, but a record in Table B has only one matching record in Table A. Ex: One supplier... can supply more than one product... but each product has only one supplier. A many-to-many relationship In a many-to-many relationship, a record in Table A can have many matching records in Table B, and a record in Table B can have many matching records in Table A. This type of relationship is only possible by defining a third table (called a junction table) whose primary key consists of two fields the foreign keys from both Tables A and B. A many-to-many relationship is really two one-to-many relationships with a third table. For example, the Orders table and the Products table have a many-tomany relationship that's defined by creating two one-to-many relationships to the Order Details table. One order can have many products, and each product can appear on many orders. Ex: One order can have many products... and each product can appear on many orders. A one-to-one relationship In a one-to-one relationship, each record in Table A can have only one matching record in Table B, and each record in Table B can have only one matching record in Table A. This type of relationship is not common, because most information related in this way would be in one table. You might use a one-to-one relationship to divide a table with many fields, to isolate part of a table for security reasons, or to store information that applies only to a subset of the main table. For example, you might want to create a table to track employees participating in a fundraising soccer game. Each soccer player in the Soccer Players table has one matching record in the Employees table. Ex: Each soccer player has one matching record in the Employees table. About defining relationships The kind of relationship that Microsoft Access creates depends on how the related fields are defined: A one-to-many relationship is created if only one of the related fields is a primary key or has a unique index. A one-to-one relationship is created if both of the related fields are primary keys or have unique indexes. A many-to-many relationship is really two one-to-many relationships with a third table whose primary key consists of two fields the foreign keys from the two other tables.

7. Database Vendors and Products VENDORS PRODUCTS ORACLE ORACLE Giant, Mainstream IBM DB2 Microsoft SQL Server Powerful MySQL AB Filemaker COMMENTS Open Source, Free, MySQL Plaza Filemaker Pro User friendly Created October 2002 by Jinhua Zhao. Updated October 2003 by Jinhua Zhao. Updated October 2004 by Shannon McKay.