Learning Objective Marketers frequently have occasion to focus on data in one or several tables that is most relevant to the problem they are trying to.

Slides:



Advertisements
Similar presentations
Microsoft Access 3 Database Creation and Management.
Advertisements

Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
Querying a Database Using the Select Query Window
Querying a Database Microsoft Office Access 2003.
Access Tutorial 3 Maintaining and Querying a Database
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Access 2010 © 2011 The McGraw-Hill Companies,
Maintaining and Querying a Database Microsoft Access 2010.
Database Applications – Microsoft Access Lesson 9 Designing Special Queries Updated 4/11.
Database Applications – Microsoft Access Lesson 9 Designing Special Queries.
You can use a query to view a subset of your data or to answer questions about your data. For example, if you want to view a list of student names and.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access Committed to Shaping the Next Generation.
Microsoft Access 3 Database Creation and Management.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
Microsoft ® Office Access ® 2007 Training Datasheets II: Sum, sort, filter, and find your data ICT Staff Development presents:
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 6 – Designing.
Examining data using Microsoft Access Queries Using Criteria and Calculations SESSION 3.2 This section covers specifying an exact match condition in a.
Concepts of Database Management Seventh Edition
SESSION 3.1 This section covers using the query window in design view to create a query and sorting & filtering data while in a datasheet view. Microsoft.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
McGraw-Hill/Irwin The O’Leary Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Access 2002 Lab 3 Analyzing Tables and Creating.
1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007.
Chapter 6 Creating, Sorting, and Querying a Table
1 Chapter 4: Creating Simple Queries 4.1 Introduction to the Query Task 4.2 Selecting Columns and Filtering Rows 4.3 Creating New Columns with an Expression.
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
The Advantage Series © 2004 The McGraw-Hill Companies, Inc. All rights reserved Creating Select Queries Chapter 6 Microsoft Office Access 2003.
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
Lecture Access – Queries. What’s a Query? A question you ask a database –ie: “Who are my Stockton customers?” –ie: “How much did Bob sell on the 14th?”
Chapter 10: Working with Large Data Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
QUERY CONSTRUCTION CS1100: Data, Databases, and Queries CS1100Microsoft Access1.
MICROSOFT ACCESS – CHAPTER 3 CONTD. Sravanthi Lakkimsetty Mar 09, 2016.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
PRICING DECISIONS “There are two fools in every market. One charges a very high price and another charges a very low price”
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office.
View Integration and Implementation Compromises
Chapter 8 Pricing Decisions
Essential Skills Wales
The Database Exercises Fall, 2009.
Review of Main Database Features
THE BEGINNING.
The Prediction Calculator Tool
Learning Objective: What is referential integrity and how does it enhance marketer productivity when using a database? Discuss the implications of the.
Find and Replace Used to quickly find and/or replace data quickly
Lifetime Value Analysis
Do you like to receive mail and messages from businesses?
Marketing Your Food Product
Microsoft Office Access 2003
Chapter 6 The Journal and Source Documents
Database Queries.
Creating and Modifying Queries
REPORT QUERY BUILDER featuring: Report Query Viewer.
Exploring Microsoft Office Access 2007
Microsoft Office Access 2003
Cost Behavior and Cost-Volume-Profit Analysis
Aggregations Various Aggregation Functions GROUP BY HAVING.
Computer Simulation with Concert Tour Entrepreneur
Spreadsheets, Modelling & Databases
Joins and other advanced Queries
PRICING DECISIONS “There are two fools in every market. One charges a very high price and another charges a very low price”
Shelly Cashman: Microsoft Access 2016
Chapter 3 Query and Report.
Getting Started with Data
Assignment 3 Querying and Maintaining a Database
New Perspectives on Microsoft
Presentation transcript:

Learning Objective Marketers frequently have occasion to focus on data in one or several tables that is most relevant to the problem they are trying to solve. And they often need to sort data or aggregate the values in one or more fields. Explain what feature(s) of ACCESS can be used to select out certain fields from one or several tables. Explain, for example, how you would select out just the name and phone numbers from a customer table containing many fields then sort the names alphabetically. Given a table that contains all the data from the year, how would you select out only the purchases made in July or August and only for regions 2 or 3. What would you do to add up all those separate July and August revenues to get a single overall value? What would you do to have the database report separate average revenue values for July and August? What would you do to subtract overall costs (found in a separate table) from overall revenues? You would use the query-by-example grid including the sort, criteria, and total rows. You would also be using the Group By and Where functions in the total query row along with the Sum and Average functions of the total query. You would also need to know how to use the And/Or logic of the query by example grid and the Expression Builder.

The life buoy when you are drowning in data is a Query. I’m drowning in data, too much data. Help me! Save me! The life buoy when you are drowning in data is a Query.

A query permits us to isolate and focus attention on the data that are essential to understand and resolve a business problem. The query does this by pulling out of one or more tables only the fields that are relevant to the issue at hand. Unlike a table that exists physically on the hard drive, queries exist only as virtual tables or dynasets. They look like tables but lack independent physical existence. Data values in queries are dynamic, derived from the underlying tables and subject to change as the data in the underlying table changes.

TAAPS Virtual Table/Dynaset Address this question. If you create a query, run it and look at the results, close it, then without making any changes in the query, run it again, will the results of the query look the same or different than the first time you ran it? Virtual Table/Dynaset Unlike a table that exists physically on the hard drive, queries exist only as virtual tables or dynasets. They look like tables but lack independent physical existence. Data values in queries are dynamic, derived from the underlying tables and subject to change as the data in the underlying table changes.

Problem: to focus on data in one or several Marketers frequently have occasion to focus on data in one or several tables that is most relevant to the problem they are trying to solve. And they often need to sort data or aggregate the values in one or more fields. Explain what feature(s) of ACCESS can be used to select out certain fields from one or several tables. Explain, for example, how you would select out just the name and phone numbers from a customer table containing many fields, then sort the names alphabetically. I’m drowning in data, too much data. Help me! Save me!

$ Productivity Drivers Creation of Value Through Exchange Competition: $ $ (Falling Prices) $ Productivity Drivers $ $ $ $ $ $ $ $ $ $ $ $ Mass Marketing Customize, target low incidence, high value customers Mass Customization DATABASE Marketer Pushes Product (Queries, Mail Merge) Customer Pulls Product (Web App) 1 to 1 1 to 1 Segmentation & Targeting Identifying Segments Measuring Market Segment Value: Predicting Consumer Response (Models) Cluster Analysis Gain Scores Lifetime Value Analysis Non-Statistical Table Design Relationship Editor --Joins: 1 to 1, 1 to ∞. ∞ to ∞ Queries --Select Query (Bring data from one or more tables into virtual table.) ● Sort ● And / Or Logic RFM (current customers) Market Basket Analysis (Web, Directed Web, Apriori) +Error: False Positive -Error: False Negative Will Buy Won’t Buy

Solution: Use a query to select out and focus on subset of fields within a single table.

Solution: Sort data in a query using sort row: ascending/ descending options. Use Show field— uncheck-- to sort on field but not have it appear.

Solution: Pulling data out of multiple tables varies little from pulling it out of just one table. Just post both tables, then pull fields down as you would with a single table.

Problem: When pulling data out of multiple tables, the tables must be linked by a join. If the tables are not linked in that way—as below—every record in one table is linked with every record in the other. I’m drowning in data, too much data. Help me! Save me!

Solution: Though no data is pulled from the transaction table, it must be posted as a bridge table that links the two tables from which we are pulling data. This solves the problem discussed on the previous slide.

Workshop Exercise Start at the relationship editor. Identify which tables and fields are needed. Then create the query. -- Create a query that reports the first and last name of the bride and the city and state where she lives in that order. Sort on last name, then on first name. of the bride, the name of the music group which will play at the reception (pname), the price for the group, and the genre of the group in that order. Sort by genre, then by group name.

Question 1

Question 2

Given a table that Problem: contains all the data from the year, how would you select out only the purchases made in July or August and only for regions 2 or 3. I’m drowning in data, too much data. Help me! Save me! 7

Solution: Enter values into criteria rows. Only records that meet those criteria are selected

Problem: Be careful in how you combine criteria in different columns. Here >100 applies to apparel but not to flowers. Apparel must be >100, but flowers can be less. I’m drowning in data, too much data. Help me! Save me!

Solution: Here >100 applies to apparel and to flowers. Apparel and flowers must both be >100 for records to be selected.

And/Or Logic: Criterion Record Status flowers > $100 Logic   And/Or Logic: Criterion Record Status flowers > $100 Logic Criteria on different rows same row

Solution: OR logic operates vertically and is inclusive since records are kept if they meet any of the criteria. AND logic operates horizontally (criteria must appear in the same row) and is more exclusive. Records must meet both criteria to be kept. Or Logic music or flowers or food And Logic food class and less than $50

Solution: Markets may be segmented very precisely using combinations of And / Or logic.

Workshop Exercise Everafter staff must stay on top of when ceremonies will be held in order to schedule their work load. If you sort the ceremonies from the last one that will be held to the first that is recorded in the database, what is the last name of the bride whose ceremony will occur earliest among the final 6 ceremonies in the database? (Your answer will be the last name.) How many brides are there in the database who are either Black or Hispanic and who live in Virginia (VA)? Focus on the marketing mode and genre of music to evaluate the effectiveness of past marketing efforts in various media. How many brides were brought in by radio or telephone and have booked country or piano music or were brought in by word of mouth (wom).

Practice Exercise Question 1 Answer:

Practice Exercise Question 2 Answer:

Practice Exercise Question 3 Answer:

Due before next class: Select Query Assignment. Specified on Due Tab

Problem: What would you do to get a single aggregate value for the number of ceremonies held in a given month or the total or average spending broken down by month? In other words, what can you do to add up or average or count all the values for a particular field. Discuss the implications of focusing on a count value versus an average value verses a summed value when analyzing marketing performance. I’m drowning in data, too much data. Help me! Save me! 7

Solution: Click ∑ to open total row. Use one of the aggregate functions (e.g. average, sum, count) to combine all values into a single aggregate value.

The Problem with Price

Relationship Buyers Transaction Buyers “Here is the big secret. You can’t make much money from transaction buyers. The money is in the relationship buyers.” Arthur Middleton Hughes

Problem: What would you do to subtract overall costs (found in a separate table) from overall revenues--or to multiply price times quantity or carry out any other function involving two fields either in separate tables or in the same table? I’m drowning in data, too much data. Help me! Save me! 7

Principles of Table Design Derived attributes--fields that can be calculated from other fields--should not be created.

Solution: Open the Expression Builder with the icon. Open appropriate tables and post the fields and numerical operators (+, -, *, /) to do the calculation.

Workshop Exercise Start at the relationship editor. Identify which tables and fields are needed. Then create the query. -- Create a query that identifies the product by the PID and PName and that calculates the commission you would earn if a product is sold. Get commission by multiplying price times finder fee. Sort the results from high to low. What is the PID of the product that yields the highest commission. How much will Everafter earn from selling that product?

Workshop Exercise Start at the relationship editor. Identify which tables and fields are needed. Then create the query. -- Now create a query that calculates the total commission earned from selling each product. You get this by multiplying the price times the finders fee times the quantity and then summing up all revenue earned. Group on PID and sort from most profitable to least profitable product. Which PID yields the most profit. How much money does it yield?

What would you do to Problem: add up all the separate July and August revenues to get a single overall value? Be able to differentiate the WHERE and GROUP BY commands. What is the function of these alternative commands? I’m drowning in data, too much data. Help me! Save me! 7

Solution: Here is an example of a query with GROUP BY and its result: three separate values since values are grouped on city.

Solution: Here is an example of a query with WHERE in the place of GROUP BY. In this case, all records that meet the criteria are put into one overall group.

Group By Waynesboro Bridgewater Broadway Average: $6.40 $4.45 $8.25 Charlottesville $6.50 Broadway $9.00 Charlottesville $2.40 Bridgewater $5.70 Harrisonburg $2.30 Waynesboro $7.20 Average: $6.40 $4.45 $8.25 Waynesboro Bridgewater Broadway

Where Waynesboro Bridgewater Broadway Average: $5.58 Waynesboro $5.50 Charlottesville $6.50 Average: $5.58 Broadway $9.00 Charlottesville $2.40 Bridgewater $5.70 Harrisonburg $2.30 Waynesboro $7.20 Waynesboro Bridgewater Broadway

Workshop Exercise Start at the relationship editor. Identify which tables and fields are needed. Then create the query. -- Calculate the average price charged by the musicians affiliated with each agent. Which agent (give the agent’s name) has the highest average fee? What is the average fee charged by musicians who have either Musical Bookings Inc. or Musicians Unlimited as an agent—report a single value, the overall average.

Answer

Answer

Features to use: Sort And/Or Logic Expression Builder Total Query Group By & Where

Identify language that suggests you must Create a query that lists the name of each product you sell. Subtract the cost of purchasing the product from your sale price of the product (to get the margin) for that product. Rank order the products to determine which have the highest margin. Now select out the top three products and calculate the overall average margin for those products. Identify language that suggests you must use particular features of ACCESS to run the query.

Identify language that suggests you must Select female customers who are 30 or younger and everyone who has logged on to your website within the last three months. Count up the number of purchases each person has made. Which customer has purchased more than any other? How many purchases have been made in the aggregate by people with at least 5 purchases? Identify language that suggests you must use particular features of ACCESS to run the query.

Due before next class: Total Queries and Expression Buidler Assignment. Specified on Total Queries Tab.