DATABASE MANAGERS. Basic database queries. Open the file Pfizer vs FDA.mdb, then double click to open the table Pfizer payments.

Similar documents
STOP DROWNING IN DATA. START MAKING SENSE! An Introduction To SQLite Databases. (Data for this tutorial at

SPREADSHEETS. (Data for this tutorial at

Microsoft Access 2010

Microsoft Access 2013

Microsoft Access 2013

Microsoft Access Illustrated. Unit B: Building and Using Queries

Microsoft Office Illustrated Introductory, Building and Using Queries

Crystal Reports Compiled by Christopher Dairion

Working with Data in Microsoft Excel 2010

Microsoft Office 2010: Introductory Q&As Access Chapter 2

Consider the following to determine which data and fields to include in your report:

Service Line Export and Pivot Table Report (Windows Excel 2010)

Introduction to PeopleSoft Query. The University of British Columbia

Excel Tables and Pivot Tables

Welcome to Cole On-line Help system!

Excel Intermediate. Click in the name column of our Range of Data. (Do not highlight the column) Click on the Data Tab in the Ribbon

Access - Introduction to Queries

Microsoft Excel 2010

Access Objects. Tables Queries Forms Reports Relationships

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Sloan School of Management

Simple sets of data can be expressed in a simple table, much like a

Copyright 2012 Pulse Systems, Inc. Page 1 of 64

Basic tasks in Excel 2013

Englische Access 2016-Trainingsskripte für IT Seminare und EDV Schulungen als Word-Dokument zum Ausdrucken und fürs Intranet

PowerPoint Presentation to Accompany GO! All In One. Chapter 13

User Manual Mail Merge

SedonaOffice Users Conference. San Francisco, CA January 21 24, Query Builders. Presented by: Matt Howe

MS Office 2016 Excel Pivot Tables - notes

Quick Guide for Excel 2015 Data Management November 2015 Training:

Microsoft Excel Pivot Tables & Pivot Table Charts

Filter and PivotTables in Excel

Google Sheets: Spreadsheet basics

Chapter 7 Notes Chapter 7 Level 1

Getting Started With. A Step-by-Step Guide to Using WorldAPP Analytics to Analyze Survey Data, Create Charts, & Share Results Online

Activant FASPAC. FasData Exchange

Creating a Check Register by Vendor Name

MIS Cases: Decision Making With Application Software, Second Edition. Database Glossary

OBIEE. Oracle Business Intelligence Enterprise Edition. Rensselaer Business Intelligence Finance Author Training

Patricia Andrada Quick Guide Excel 2010 Data Management-July 2011 Page 1

KNACK TRAINING. MICROSOFT OFFICE: TIPS & TRICKS FOR EFFICIENCY

Access Intermediate

STIDistrict Query (Basic)

Quick guide. Quick guide. Search & report

Atlas 5.0 for Microsoft Dynamics AX Advanced reporting system.

COMM 391 Winter 2014 Term 1. Tutorial 1: Microsoft Excel - Creating Pivot Table

PIVOT TABLES IN MICROSOFT EXCEL 2016

Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet

The Compliance Monitoring Data Portal (CMDP) Module 4: Chemical, Radionuclide and Microbial Samples and Results For lab users

Book IX. Developing Applications Rapidly

How-To Efficiently Create Section Groups in a Merged Bb Course Page In the merged Parent course, click into the Full Grade Center.

Access Intermediate

Report Fundamentals An introduction to basic report functionality in SAP.

Timecard history can be queried for a number of valuable reports. Begin by accessing the his_timecard table in a query.

QW5 -QWSQLWizard Overview

Microsoft Access 2007 Module 2

1-Step Appraisals Personal Property Appraisal Software

You can use Dreamweaver to build master and detail Web pages, which

Lession #5: Adding a New Salary Using Batch Uploads

Reporting. Guide: Variable. nightly.

Mathematical Operators for Excel

Microsoft Access 2013 Lab #01 Part #01

Table of Contents. Section Title Page

Public-Private Dialogue

QUERY USER MANUAL Chapter 7

Using Microsoft Excel

New Perspectives on Microsoft Excel Module 5: Working with Excel Tables, PivotTables, and PivotCharts

Relativity. User s Guide. Contents are the exclusive property of Municipal Software, Inc. Copyright All Rights Reserved.

Pivot Tables in Excel Contents. Updated 5/19/2016

MicroStrategy Analytics Desktop

Finding and Adding Payees in Payment Entry - Best Practices

Advanced Excel Skills

Access Intermediate

Press on the button to search for the query. In our example, we will search for the value NDU.

Using Mail Merge with Word

Searching and Favorites in Datatel Web UI 4.3

Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts. Microsoft Excel 2013 Enhanced

Introduction to Microsoft Excel

Tableau Tutorial Using Canadian Arms Sales Data

Contents. Tutorials Section 1. About SAS Enterprise Guide ix About This Book xi Acknowledgments xiii

Introduction to Microsoft Excel 2010

I T Skills Summary Booklet

ADD AND NAME WORKSHEETS

Access 2007: Advanced Instructor s Edition

Microsoft Office 2010: Introductory Q&As Access Chapter 3

Using the CRM Pivot Tables

Building Sustainable Customized Reports In your Practice

How to Create and Use a Pivot Table in Excel

Graded Project. Excel 2016

Using pivot tables in Excel (live exercise with data)

SAS Enterprise Guide and Add-In for Microsoft Office Hands-on Workshop

Finding and Adding Payees in Payment Entry - Best Practices

Shopping Cart: Queries, Personalizations, Filters, and Settings

IBMSPSSSTATL1P: IBM SPSS Statistics Level 1

More on MS Access queries

Creating a Custom Report

SAP Standard Reporting Quick Reference Guide

Enforce Referential. dialog box, click to mark the. Enforce Referential. Integrity, Cascade Update Related Fields, and. Cascade Delete Related

Advanced Excel Reporting

I. Overview... 2 A. Users and User Roles... 2 B. System Information... 2 C. Help Menu... 3 D. Changing Your Password... 3 E. Logging In... 3 F.

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL

Transcription:

DATABASE MANAGERS We ve already seen how spreadsheets can filter data and calculate subtotals. But spreadsheets are limited by the amount of data they can handle (about 65,000 rows for Excel 2003). Database managers, such as Access, can handle much larger datasets, and with practice are more flexible and nimble for filtering, grouping and making calculations on subsets of data. They also allow you to join multiple data tables into one, or match records across different datasets, if they have common fields which can be a powerful tool. Basic database queries Open the file Pfizer vs FDA.mdb, then double click to open the table Pfizer payments. See that it looks much the same as a spreadsheet, except there is no co-ordinate system. Instead, the column names are fixed, and each row has an ID number, created by Access

as a Primary Key when the data was imported. (We ll do this with a new table in a few minutes.) 1. Filtering queries Let s repeat our spreadsheet task of making a list of all doctors in California who were paid $10,000 or more to run expert-led forums. Click on Queries, then double click on Create query in Design view. Then Add the table and the screen should look like this: Click on Field in the first column of the grid, and select First name plus. Carry along across the grid, until the following fields have all been selected:

Now we will filter using Criteria: type CA in the column for State and Like Expert* under Category, and >=10000 under Total. Also in this column, click on Sort and select Descending. Tip! Like Expert* tells Access to look for entries that begin with Expert. In this case it s just saving us some typing, but filtering using this wildcard function can be helpful to return records that may have been entered into a database slightly differently. The wildcard * can be inserted anywhere.) The screen should now look like this:

Hit the! button to run the query, and we should obtain the same list of 31 doctors we had before. File>Save to save the query, giving it an appropriate name. TIP! If you are running several related queries, you don t need to laboriously fill in the grid in Design view each time. You can open a previously saved query, and click on View>SQL View to see how Access actually interprets the query, in Structured Query Language: Select and copy this text, Create a new query in Design view, then switch to SQL view and paste in your copied text. Switch back to Design view and edit your new query from there.

2. Grouping and running calculations on the data First, let s subtotal the payments by state, as before. Create a new Query in Design view, Add the table and click the button, which adds Total to the grid. This is where we will group records together and perform calculations on them. Select State in the first column of the grid, and accept the default function of Group By. Then add Total in the second column, this time change the function to Sum. Also in this column, click on Sort and select Descending. The screen should now look like this:

Hit the! button to run the query, and this should be the result: Save the query as before. TIP! To export a saved query, right click on it in the Queries panel, and you will get an option to save as a spreadsheet

Now let s repeat the Excel pivot chart, totaling the payments by state and category simultaneously. Set up the query as before, but this time Grouping by Category as well as by State, as follows: Then select View>Pivot Table View, and the screen should look like this:

Drag State to the Column Fields, Category to the Row Fields and SumOfTotal to the Totals or Details Fields, and this should be the result:

Matching and searching across multiple data tables 1. Importing a new data table To import data, File>Get External Data>Import Browse for the file FDA warning letters clinical investigators.xls, click Next and at the next dialog box make sure to check First Row Contains Column Headings

Click Next twice, then at the dialog box illustrated below, make sure that Let Access Add Primary Key is selected, then click Finish. Matching across data tables Now we re going to create a query across the two data tables, having linked them together in the right way, so we select doctors paid by Pfizer to run Expert-led forums who had also received a warning letter from the FDA for problems in their conduct of clinical research. To link the tables, select Tools>Relationships, select and Add both tables, then close the dialog box.

Now click on First_name in the FDA warning letters tables and drag it across to First name in the Pfizer payments table. When the dialog box pops up, click on Create: Repeat the process for the Last name fields, clicking No when you see this dialog box:

The screen should now look like this: Save and close the new Relationship using File>Save then File>Close. Create a new Query in Design view, Add both tables. The screen should now look something like this:

Fill in the grid with fields from both of the tables. Select the Table first, then the Field, making sure to filter by Category from the Pfizer table using Criteria: Like Expert* The screen should now look something like this: Hit the! button to run the query, and this should be the result: