 Continue queries ◦ You completed two tutorials with step-by-step instructions for creating queries in MS Access. ◦ Now must apply knowledge and skills.

Slides:



Advertisements
Similar presentations
© 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 10 – Designing.
Advertisements

Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
University of Nevada, Reno College of Business Administration What are we going to learn 9/27 – 9/29? 1. Answer questions about MS Access queries. 2. Understand.
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Lecture 2: Single-Table Selections.
Week 2 Normalization and Queries
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
1 DB Implementation: MS Access Queries. 2 Outline Access Queries ► Query Creation ► Sorting & Filtering ► Query Types ► Dynamic Query.
Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Chapter 2 Querying a Database
Microsoft Access 2010 Chapter 7 Using SQL.
DAY 16: ACCESS CHAPTER 2 Tazin Afrin October 10,
WEEK 11 Database Design. Agenda Hybrid Review Create Tables Add, Edit Data Create Relationships in MS Access 2010 Queries.
Concepts of Database Management, Fifth Edition
Chapter 3 Single-Table Queries
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access Committed to Shaping the Next Generation.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Exam Review – Queries & MORE! Access SimNet Exam Access Case Exam Final Exam.
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 Access 2010 Building and Using Queries.
Analyzing Data For Effective Decision Making Chapter 3.
© 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.
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
IE 423 – Design of Decision Support Systems Database development – Relationships and Queries.
Concepts of Database Management Seventh Edition
Using Special Operators (LIKE and IN)
 Agenda 2/20/13 o Review quiz, answer questions o Review database design exercises from 2/13 o Create relationships through “Lookup tables” o Discuss.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Intro to SQL Management Studio. Please Be Sure!! Make sure that your access is read only. If it isn’t, you have the potential to change data within your.
Chapter 3 Query and Report. Agenda Report types Report contents Report creation Report design view Query and dynaset Function and grouping Action query.
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,
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007.
Microsoft Office 2013: In Practice Chapter 3 Creating and Using Queries Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
DAY 17: ACCESS CHAPTER 2-3 RAHUL KAVI October 17,
Concepts of Database Management Seventh Edition Chapter 3 The Relational Model 2: SQL.
IS201 Agenda: 09/19  Modify contents of the database.  Discuss queries: Turning data stored in a database into information for decision making.  Create.
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
Access Queries Agenda 6/16/14 Review Access Project Part 1, answer questions Discuss queries: Turning data stored in a database into information for decision.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
- Professor Kurt Brandquist - IT133 Software Applications Unit 6 Seminar: Formulas and Functions Wednesday, 6/22/11.
A Guide to SQL, Eighth Edition Chapter Four Single-Table Queries.
Creating Advanced Queries and Enhancing Table Design.
 Review quiz. Answer questions.  Discuss queries: ◦ What is a query? Turning data stored in a database into information for decision making. ◦ You: Completed.
Structured Query Language SQL-II IST 210 Organization of Data IST2101.
Southern Methodist University CSE CSE 2337 Introduction to Data Management Chapter 2.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office.
Querying in Access Objectives: Learn how to use the Access Query Design Tool manipulate data in Access: Sorting data Aggregating Data Performing Calculations.
Microsoft Office Illustrated Introductory, Windows Vista Edition
Microsoft Access 2003 Illustrated Complete
Building and Using Queries
GO! with Microsoft® Access e
Exploring Microsoft Office Access 2007
Aggregations Various Aggregation Functions GROUP BY HAVING.
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Exploring Microsoft® Office 2016 Series Editor Mary Anne Poatsy
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Access: Queries III Participation Project
Lesson 3 Chapter 10.
Microsoft Office Illustrated Introductory, Windows XP Edition
Chapter 3 Query and Report.
Tutorial 5 Advanced Queries and Enhanced Table Design
Presentation transcript:

 Continue queries ◦ You completed two tutorials with step-by-step instructions for creating queries in MS Access. ◦ Now must apply knowledge and skills learned in the tutorials.  Class today:  Highlight key issues about queries.  Answer any questions about queries in preparation for completion of the next part of the project (due 10/03).  Learn conditional logic using IIF and ISNULL.  Do conditional logic exercise.

A query reduces the number of rows and columns in the underlying tables to provide information for decision making. This is done through relational criteria. A query enhances the data in the underlying tables by adding calculations and logical conditions. The goal of a query is to provide information from the data in a database.

 Individual rows vs. grouped output  Criteria. ◦ And vs. Or ◦ Relational operators., =, IN, LIKE, BETWEEN ◦ Wildcards  Multiple tables.  Parameters  Calculations.  Logical conditions. ◦ IIF ◦ ISNULL

 Individual row queries. ◦ Using one table. ◦ Using multiple tables. Tables must be related.  Aggregate queries. ◦ Can use one table or multiple tables. ◦ Creating one line in the result table as a summary of all data in the related tables. ◦ Creating multiple groups in the result table.

 Referred to as “joining” tables.  Can produce confusing results.  Very dependent on a well-designed database. The tables must be related with appropriate foreign keys or the tables cannot be joined correctly for queries.

 Query to Find “unmatched” data.  Data that exists in one table (usually the parent), but does not exist in a related table (usually the child).  Examples: ◦ Which donors have not made any donations? ◦ Which categories have not been received on any donations? ◦ Which agencies have not received any donations?

 Pre-written functions exist to do common summary calculations: ◦ Sum, count ◦ Max, min ◦ Avg, stDev, var

 Enter data each time a query is run.  Can provide greater flexibility for queries that don’t have structured/standardized input.  Parameter is placed within standard criteria. Parameter is surrounded by square brackets, just like a data field.

 Can do calculations for a column based on the data in other columns for that same row.  Can use mathematical operators.  Can use pre-written functions in MS Access. Many different types of pre-written functions for date handling, data type conversion, calculations, etc. ◦ See the pre-written functions in the expression builder.  Can be very simple to very complicated.

 Frequently want to see if something is TRUE or FALSE, then do something based on that information.  Example: If a donation value is > $200, then we want to have a column in that output that says it is a “big” donation.  Logical condition for Access: ◦ IIF(donationvalue>200, ‘BIG’)

 The IIF function has three arguments: ◦ Relational condition ◦ What to do if the relational condition is True part ◦ What to do if the relational condition is False part  Examples: ◦ IIF(donationvalue > 200, ‘BIG’, ‘small’) ◦ IIF(donationvalue > 200 and donationvalue < 500, ‘medium’, ‘small’) ◦ IIF(donationdesc = ‘cash’, donationvalue, donationvalue *.75) ◦ IIF(datediff(“d”, now(), donationdate) > 0, ‘future donation’)

 Nothing is not nothing for computers.  A zero is not the same as a blank which is not the same as a null.  A null is a special character assigned to a field that technically has “no value”. It is very useful because we can search for a null value with special operators.  In MS Access: ◦ ISNULL(company) ◦ IIF(ISNULL(company), firstname + ‘ ‘ + lastname, company)