Access: Queries II Participation Project

Slides:



Advertisements
Similar presentations
Database Features. Lists n An Excel worksheet can be used like a table in a relational database. n In Excel, such a table is called a list. n Each row.
Advertisements

Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Access Tutorial 3 Maintaining and Querying a Database
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
Microsoft Access 2010 Chapter 7 Using SQL.
Chapter 2 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,
Chapter 3 Maintaining a Database
Maintaining and Querying a Database Microsoft Access 2010.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
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.
Access Tutorial 2 Building a Database and Defining Table Relationships
Chapter 1 Databases and Database Objects: An Introduction
Exam Review – Queries & MORE! Access SimNet Exam Access Case Exam Final Exam.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
© 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.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics to be covered §Comparing Values in Selection Criteria §Calculating Values in a Query §Changing the appearance.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
DAY 19: MICROSOFT ACCESS – CHAPTER 3 CONTD. Aliya Farheen March 17, 2015.
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics Covered Understanding different types of Queries Creating a Query Creating a Query using a Wizard Changing.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT ACCESS Lesson 10 – Analyzing Data.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
DAY 18: MICROSOFT ACCESS – CHAPTER 3 CONTD. Akhila Kondai October 21, 2013.
Microsoft Access 2000 Modifying Tables, Creating Forms and Viewing Data.
MICROSOFT ACCESS – CHAPTER 3 CONTD. Sravanthi Lakkimsetty Mar 09, 2016.
Lecturer: Dalia Mirghani
Access Tutorial 2 Building a Database and Defining Table Relationships
Creating Oracle Business Intelligence Interactive Dashboards
Access Maintaining and Querying a Database
Practical Office 2007 Chapter 10
Plug-In T7: Problem Solving Using Access 2007
Objectives Create an action query to create a table
Querying a Database Using the Select Query Window
MS-Excel Part 1.
Access Maintaining and Querying a Database
Find and Replace Used to quickly find and/or replace data quickly
Microsoft Excel 101.
Microsoft Office Access 2003
Tutorial 3 – Querying a Database
Microsoft Office Access 2003
Microsoft Office Access 2003
Nagendra Vemulapalli Access chapters 3&5 Nagendra Vemulapalli 1/18/2019.
Access: Database Design Participation Project
Access: Access Basics Participation Project
Access: Queries IV Participation Project
Excel: Solver Participation Project
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Access Tutorial 2 Building a Database and Defining Table Relationships
Excel: PivotTables Participation Project
Access: Queries I Participation Project
Access: Forms Participation Project
Access Tutorial 2 Building a Database and Defining Table Relationships
Access: Queries III Participation Project
Nagendra Vemulapalli Access chapters 3&6 Nagendra Vemulapalli
Shelly Cashman: Microsoft Access 2016
Tutorial 9 Using Action Queries and Advanced Table Relationships
Assignment 3 Querying and Maintaining a Database
Tutorial 5 Advanced Queries and Enhanced Table Design
Presentation transcript:

Access: Queries II Participation Project WV K-12 Education Problem WV Senate Problem

Topics Covered Use calculated fields in a query Format fields Use criteria to restrict results Use AND/OR criteria in a query Use NOT criteria in a query

Calculated Fields Calculated fields are columns whose values are calculated using a formula provided by the user. Useful for computing values such as percentages and ratios. Formulas can be based on numbers in other columns, values provided in the formula, or output of function.

Use Calculated Fields in a Query: Part 1 With the query open in Design View, click in an empty column. Go to the Query Tools Design ribbon. Click the Builder button.

Use Calculated Fields in a Query: Part 2 With the query open in Design View, click in an empty column. Go to the Query Tools Design ribbon. Click the Builder button.

Use Calculated Fields in a Query: Part 3 In the Expression box, enter ColumnName:, substituting what you wish to name the column. Then, enter your formula. Parentheses and mathematical operators (+, -, *, /) work the same as in Excel Table and field names go in square brackets using the either of formats [AnnualStatistics.County] or [AnnualStatistics]![County] for the County field in AnnualStatistics table.

Use Calculated Fields in a Query: Part 4 Instead of typing in field names, you can browse for them using the Expression Elements area. To browse and add a field: Expand the tree for the name of your file in Expression Elements box Expand Tables Select the table Double-click on the field in the Expression Categories box to add it to the Expression box at top.

Use Calculated Fields in a Query: Part 5 Delete any «Expr» items remaining in your formula. Click the OK button when done.

Field Formatting By using query formatting options, you can control how values appear in results. Number formatting including decimal places and 1000s separators Date and time formatting Formatting of yes/no fields The RegistrationRate field to the right has been formatted as a percentage with 2 decimal places.

Format fields: Part 1 Open the query in Design View. Go to the Query Tools Design ribbon. Click the Run button to run the query. If you do not run the query first, you will not be able to set the number of decimal places Click the Design View button to go back to modifying the query. Click within the field you need to format in the design grid. In the Show/Hide group, click the Property Sheet button to show the Property Sheet pane.

Format fields: Part 2 In the Property Sheet pane, you can change the number formatting and number of decimal places for the field. If you did not run the query first, you will not be able to set the number of decimal places

Query Criteria By specifying criteria, you can restrict the records in the results to those of interest to you. Criteria are specified in the Criteria row and rows below it in the query grid. Criteria must be set on the column containing the values to be filtered. For example, if you want to restrict county names, set criteria on the County field. Data types for the fields matter. The right type of criteria must be set to avoid a data type mismatch error.

Use Criteria to Restrict results Open the query in Design View. Click in the Criteria row for the field containing the data to be filtered. Enter the criteria. Text goes in double-quotes ("") Numbers should have >, <, <=, >=, or = signs

And/OR Criteria: part 1 For a record to be included in the results, it must satisfy all criteria on the same row in the query grid. To specify multiple different criteria that a record may match, put them on different rows in the query grid. As long as at least one row is satisfied, the record will display. In the example to the right, counties from the North Central region or with a population of at least 150,000 (or both) will be shown.

And/OR Criteria: part 2 You can also use the AND and OR keywords when specifying criteria. Both conditions in AND must be satisfied to display record One or both conditions in OR must be satisfied to display record AND/OR keywords appear between criteria (e.g., >5 AND <10). Example to right displays records for counties with populations between 10,000 and 25,000.

NOT Criteria Using the NOT keyword or symbol (<>) in criteria only includes displays records that do not contain the listed value. For example, the query on the right shows records that are not elementary schools and not intermediate schools. All other types of schools will display.