Microsoft Access 2016 Obtain Valuable Information Using Queries

Slides:



Advertisements
Similar presentations
Working with Tables 1 of 5. Working with Tables 2 of 5.
Advertisements

The Ribbon Standard to all Office 2007 applications Organized by feature and functionality Navigation Pane Access to all objects in the current database.
Exploring Microsoft Access 2003 Chapter 3 Information From the Database: Reports and Queries.
© 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.
Access Lesson 8 Using Advanced Queries Microsoft Office 2010 Advanced Cable / Morrison 1.
Homework 3 Hints. General Tips: Homework #3 Take your time on this homework – This is the longest and most difficult homework – Worth 15 points total.
Exploring Microsoft Access
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Chapter 2 Querying a Database
Microsoft Access 2010 Chapter 7 Using SQL.
1 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and Custom Forms.
DAY 16: ACCESS CHAPTER 2 Tazin Afrin October 10,
Exploring Office Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 3-1 LINKS TO OBJECTIVES Save a Filter as a Query Save a Filter as a Query Parameter Query Inner, Left,
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
1 Chapter 7 Query-By-Example by Monica Chan CS157B Professor Lee.
 Continue queries ◦ You completed two tutorials with step-by-step instructions for creating queries in MS Access. ◦ Now must apply knowledge and skills.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 3 Analyzing Data and Creating Reports.
Analyzing Data For Effective Decision Making Chapter 3.
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
Exploring Office Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 - Information From the Database: Reports.
 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.
Chapter 9 Query-by-Example Pearson Education © 2009.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
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.
Reports and Queries Chapter 3 – Access text Reports – Page Queries – Page
Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT ACCESS Lesson 10 – Analyzing Data.
1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007.
The Advantage Series © 2004 The McGraw-Hill Companies, Inc. All rights reserved Creating Select Queries Chapter 6 Microsoft Office Access 2003.
® 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.
(SQL - Structured Query Language)
Microsoft Access 2000 Presentation 5 Creating Databases Part IV (Creating Queries)
DAY 18: MICROSOFT ACCESS – CHAPTER 3 CONTD. Akhila Kondai October 21, 2013.
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.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 5 1 Microsoft Office Access 2003 Tutorial 5 – Enhancing a Table’s Design.
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
Creating Advanced Queries and Enhancing Table Design.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office.
The data in the table.. Starting a query. Two criteria in an AND relationship.
Microsoft Access 2016 Overview of Microsoft Access Databases
Microsoft Office Access 2010 Lab 3
Query Design View To create an Access query, you use the Query Design window. Youspecify a few data sources and fields, add a criteria expression or two,and.
MS Access: Creating Advanced Queries
Objectives Query for top values Create a parameter query
Larry Reaves October 9, 2013 Day 16: Access Chapter 2 Larry Reaves October 9, 2013.
Microsoft Access 2003 Illustrated Complete
Building and Using Queries
Overview of Microsoft Access Databases Chapter 1
Exploring Microsoft Office Access 2010
GO! with Microsoft® Access e
Database Queries.
Exploring Microsoft Office Access 2007
Microsoft Office Access 2003
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Nagendra Vemulapalli Access chapters 3&5 Nagendra Vemulapalli 1/18/2019.
Access: Queries IV Participation Project
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Access: Queries III Participation Project
Lesson 3 Chapter 10.
Chapter 9 Query-by-Example Pearson Education © 2009.
Shelly Cashman: Microsoft Access 2016
Chapter 3 Query and Report.
Tutorial 5 Advanced Queries and Enhanced Table Design
Exploring Microsoft Access 2003
Presentation transcript:

Microsoft Access 2016 Obtain Valuable Information Using Queries Chapter 4

Chapter Overview Query Criteria Grouping and Sorting Like, In, And, Or, Between, Null, Relational Operators (>,<,>=,<=,=,<>) Grouping and Sorting Avg, Min, Max, Count, Sum Advanced Query Topics Unmatched and Parameter Queries, Concatenation, IIf, Update Queries

Queries Allow you to ask questions (queries) about data in the database. Select, Crosstab, Make Table, Update, Append, Delete Datasheet, Design and SQL view

Who is in MGS351?

Who is in MGS351 sorted by person number?

Who are Juniors in MGS351?

How many Seniors are in MGS351?

How many Seniors are in MGS351? (Better way)

How many Fr, So, Jr and Sr students are in MGS351?

Who has resigned the class?

Who doesn’t have a grade yet?

Who has a last name beginning with the letter M? * represents anything (many characters) or nothing ? represents any single character

Who has a first name beginning with the letter S? * represents anything (many characters) or nothing ? represents any single character

Who has a last name six characters long? * represents anything (many characters) or nothing ? represents any single character

Who has a GPA greater than 3.5?

Who has a GPA between 3.2 and 3.5?

Who is a Senior OR Accounting major?

Who is a Senior AND Accounting major?

Who is an Acct (MGA) or Mgmt (MG) major?

Who is an Acct (MGA) or Mgmt (MG) major?

Who is a Jr or Sr and a Mgmt (MG) major?

Who is a Jr or Sr and a Mgmt (MG) major?

Who is a Jr or Sr and a (MG) major with a grade of A or B?

Who is a not a Freshman?

Who is a Fr, So or Jr?

Who is a Fr, So or Jr?

Advanced Query Topics

Unmatched Queries Identifies records in one table that don’t exist in another What products have never been ordered? What students haven’t registered?

Parameterized Queries The criteria is dynamic – every time a parameterized query is run, the user is prompted to enter the criteria value they want to use.

What is the class and major for a specific person number?

Concatenation Can be used to combine multiple query fields together, or to add extra formatting in a query. What expression will generate this output? Student name (Major) David Murray (MG)

Concatenation Example Ampersand symbol & is used to combine fields and text. All text should be enclosed in “double quotes”

HW3 - Ch 5 Applied Step 4 GPA: 3.7 – Grade: A GPA: 3.7 A Space Space

IIF Expression Use to conditionally evaluate data, and dynamically generate output based on it. In other words…one single query expression can be created to do the following: Display “Underclassman” for freshman and sophomore students and “Upperclassman” for junior and senior students

IIF(logical expression, output if true, output if false) IIF Expression IIF(logical expression, output if true, output if false) IIF(Class field is equal to FR or SO, display Underclassman, otherwise display Upperclassman)

IIF Expression

Update Queries Used to update specific records with data, based on the given criteria. Update the Major 1 field in the database to “Management” where it currently is “MG”

Update Query Example

IIF Expression and Update Query Create one single query expression to do the following: Update the performance field in the database for each student based on their course grade. Satisfactory [A, A-, B+, B, B-, C+, C] Marginal [C-, D] Unsatisfactory [F]

IIF Expression

IIF Expression (Better Way)

IIF Expression and Update Query Separate Query with IIF Expression (Performance) [TableName].[Fieldname] is the syntax used to refer to fields in other tables or queries

Form Based Criteria – Powerful and User Friendly!

Form Based Criteria – Powerful and User Friendly! Make sure to save the form first so that the control names show up in the expression builder.

Quick Review The most common type of query is called a a. Dynaset query b. Select query c. Query by Example query d. Relational query

Quick Review Which of the following criteria will return the record Anderson? a. Like “Ander?” b. Like “Ander*” c. Both a and b d. Neither a nor b

Quick Review Which function can be used instead of the OR criteria? a. Between b. In c. Not Null d. IIF

Quick Review All are valid functions for grouped queries except a. Sum b. Count c. NPV d. Min

Quick Review If your balance is 10,000, what is the result of this expression? IIF(Balance >= 10000, .035, .0275)

Quick Review True / False You can modify the query results, but the changes will not be reflected in the underlying table.

Homework 3 Chapter 4 Guided Exercise Chapter 5 Guided Exercise Chapter 5 Applied Exercise