Using MS Access for your research 12 steps (give or take a few) to giving up the excel habit Steven Citron-Pousty

Slides:



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

Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
The Ribbon Standard to all Office 2007 applications Organized by feature and functionality Navigation Pane Access to all objects in the current database.
Database Ed Milne. Theme An introduction to databases Using the Base component of LibreOffice LibreOffice.
Introduction to Microsoft Access
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
A structured collection of related data
Crystal Reports In Depth Session XII. Crystal Reports - In Depth Reports outside of halFILE Selecting an ODBC Datasource Selecting a second table and.
Templates and Styles Excel Advanced. Templates are pre- designed and formatted spreadsheets –They provide consistency of layout/structure –They.
ACCESS PART 2. Objectives Database Tables Table Parts Key Field Query and Reports Import from Excel Link to Excel.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
Lecture Microsoft Access and Relational Database Basics.
Querying a Database Microsoft Office Access 2003.
Chapter 2 Querying a Database
Attribute databases. GIS Definition Diagram Output Query Results.
Access Lecture 1 Database Overview and Creating Tables Create an Employee Table.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Microsoft Access Ervin Ha.
Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Microsoft Access Intro Class 1 Database Concepts.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
ASP.NET Programming with C# and SQL Server First Edition
Crystal And Elliott Edward M. Kwang President. Crystal Version Standard - $145 Professional - $350 Developer - $450.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
1 MySQL and phpMyAdmin. 2 Navigate to and log on (username: pmadmin)
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
IE 423 – Design of Decision Support Systems Data modeling and database development.
PHP meets MySQL.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
INFO 344 Web Tools And Development CK Wang University of Washington Spring 2014.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
Analyzing Data For Effective Decision Making Chapter 3.
1 Working with MS SQL Server Textbook Chapter 14.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Database Fred Durao What is a database? A database is any organized collection of data. Some examples of databases you may encounter in.
DataMart - Advanced Presenter: Dave Bennett.  Advanced use of Datamart  Review - Datamart and its tools  Review - Finding data  Review -Connecting.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
Key Applications Module Lesson 21 — Access Essentials
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
Microsoft Access Designing and creating tables and populating data.
Microsoft Access 2007 Tutorial (Part II) CIS*1000*DE.
Crystal And Elliott Edward M. Kwang President. Objective A brief demo of Crystal Report to entice you –People spend thousand of dollars to attend Crystal.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Aliya Farheen October 29,2015.
Microsoft Access Database Creation and Management.
USING ACCESS TO SEGMENT SURVEY DATA. OPEN ACCESS You May Need to Search for the Program You May Need to Search for the Program Access is a Database Access.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 1: Introduction to IS2803 Rob Gleasure
Querying Databases A query is a program that allows us to VIEW the data or operate on the data Several types of queries –Select query –Merge query –Summary.
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
Lesson 4: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Set query.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Objectives Create an action query to create a table
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Tutorial 9 Using Action Queries and Advanced Table Relationships
New Perspectives on Microsoft
Presentation transcript:

Using MS Access for your research 12 steps (give or take a few) to giving up the excel habit Steven Citron-Pousty

Excel Good for calculations You are very familiar with it SOMETHING ELSE But just because you know how to use a hammer the whole world is NOT a nail

Examples of problems Select all the people with brown hair, high blood pressure, and younger than 37 Match all survey information with voting history for 400,000 people Show all the purchases on a given day and add on personal information for any people where we have the information More than 1 person needs to enter data at the same time You need to give certain people access to one view of the data and other people to a different view

Solution to these Problems The basic solution is to use an RDBMS (Relational Database Management System) Many examples – Oracle, DB2, PostgreSQL, MySQL, FileMaker, and MS AccessOracleDB2 PostgreSQLMySQLFileMakerAccess We are going to cover using Access today

Why use Access Easy to install and run All over campus and the world Lots-o-reading with my favorite being the biblereadingbible Good for people just getting started with DBs I am familiar with it

Example for today Invasive Species Database Person went around to different Herbariums (plant museums) and collected information on specimens from invasive species Analogous to collecting survey data on people in different schools OR patients at different clinical centers There is a data problem in one of the tables but otherwise there is a lot or relational structure Its in the c:\temp directory and called Example.mdb

Goals for today Teach you some DB terms and ideas Play with the existing DB for a bit Show you how to start creating your own DB Sum up Golden rule: You must ask me questions!!

Table Table – Like a spreadsheet yet not really a spreadsheet. –The data should be as atomic as possible/repeating fields – example Student/teacher –Each table can also be thought of as a person, place, or thing –Observation - same as row in a spreadsheet –No way to do calculations in a spreadsheet fashion, i.e. =a1+b1

What does it look like in Access

Big Difference – Columns Access calls the columns fields we might call them variables They have unique names They have to be defined as a type (boolean, floating point, string…) You have to say if you are going to allow blanks

Lets start Access and take a look around Go to C:\temp Double click on example.mdb and you should see this:

Areas in a DB view Tables Queries Forms Wizards at the top of each area to help you with common tasks

Lets open the species table

Primary Keys Primary Key is a variable/attribute that uniquely identifies each row Can also be a combination of columns You may be tempted to use things like last name+first name – DON’T Autoincrements are a good idea

Foreign Key When two tables are related you need a way to show that they are related Foreign key is a primary key from another table in your table. It shows that the two tables are related and how one row in one table related to another table Look at specimen table

Make our own table Lets make a table for people that view a specimen Columns –Id column –Foreign key from Specimen –First name –Last name –Age –Weight –Date of birth –Novella –Female

Relationships between tables One to one –one row in one table goes to only one row in another table One to Many – one row in one table (parent) goes to multiple rows in another table (child) –Parent primary key is a foreign key in the child table Many to Many – not allowed in relational databases. –Solve by putting an intermediate table which has foreign keys from both the tables you are linking –Look at Collectors and specimens

Access Relationship view You must manually add in the PK and FK relationships Open relationships view Then you drag from parent and drop in child fields In our case we need to add the new field and then make the relationship Usually you do this after making all your tables and they all appear

Queries Now we have all this nice data how do we get out what we want You create a subset of the data set based upon criteria you specify You can do calculation in your queries Access makes this easy – cheesy You can save the queries and use them as tables –Add to a query –Edit data directly in the query –Update all values in a column according to criteria

Using Design View Click on Create query in design view Add the tables that have the information you want Drag columns to the data area * is code for all columns Let just add the specimen table and see what happens –And vs Or –Sorting –= vs Like and Wildcards

SQL This is the actual language used to query database tables I am not going to go into it today. Access lets you see and tweak the SQL if you want to. Lets peek at the SQL behind the query

Indices Helps your queries go faster Makes inserts and updates go slower If you know you are going to query on a column consistently (last name, SS#) then you might make an index Primary key fields are almost always indexed Set in your table view Add index to species in the species table

Joins Need matching columns Usually your primary key/foreign key relationship You can create joins in the query area You can also change the properties on the join

Lets try out a join We are going to use the table specimen and species in a new query I will show you some of the tweaks we can do on a join What happens if you remove the join? –Cartesian product

Calculations in queries You can change the names of columns You can have a column be a formula Example: gen spp: [genus]+' '+[species]

Crosstab query Lets you do a crosstab within the DB Count of the # of specimens per species by state New Query in design and add the tables Change the query type

Importing Data You can create a new table by importing You can cut and paste data –Works pretty well from excel –Queries can help make the data look “similar” You can also link to a table –Data isn’t in the DB, its in the other file –Good allows other people to work on that data without needing access to your db –Bad need to have that file around when you use those tables You can import excel, dbase, lotus, and text files

Export Usually you will want to export from a query You can actually export the table You can also cut and paste Export to a lot of different formats –All the import formats –HTML –RTF

Not touched on Forms Reports Multi-user access Some useful wizards

Advanced Features Programming in Visual Basic Password protected databases ODBC connections to large databases or other files Replication

Resources Go this web page

Conclusion Access is good for –Beginners –Small to medium size DBs < 200mbs –1 to 2 concurrent users –Windows only teams (for the most part) –Front ends to more complicated DBs