DAY 17: ACCESS CHAPTER 2-3 RAHUL KAVI October 17, 2013 1.

Slides:



Advertisements
Similar presentations
Microsoft ® Access ® 2010 Training Create queries for a new database.
Advertisements

Using Access to Hack Your Data If you really want to…
Formulas, Ranges, and Functions. Formulas n Formulas perform operations such as addition, multiplication, and comparison on worksheet values. n Formulas.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
Creating Custom Reports. 2 Design and create a custom report You can easily create custom reports based on a table or query. There are seven sections.
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 5 Data Validation and Data Analysis.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
Access Tutorial 3 Maintaining and Querying a Database
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Microsoft Access 2010 Chapter 7 Using SQL.
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.
DAY 16: ACCESS CHAPTER 2 Tazin Afrin October 10,
Exploring Office Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)
Lesson 4 Cell Reference Formulas. Working with Cell References continued… Relative Cell Reference A relative cell reference means that the cell value.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Xin  Syntax ◦ SELECT field1 AS title1, field2 AS title2,... ◦ FROM table1, table2 ◦ WHERE conditions  Make a query that returns all records.
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.
Chapter 6 Advanced Report Techniques
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
Exploring Microsoft Access Chapter 4 Relational Databases, External Data, Charts, and the Switchboard.
 Continue queries ◦ You completed two tutorials with step-by-step instructions for creating queries in MS Access. ◦ Now must apply knowledge and skills.
10 May Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through.
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
Analyzing Data For Effective Decision Making Chapter 3.
Microsoft ® Access ® 2010 Training Create Queries for a New Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable.
Concepts of Database Management Seventh Edition
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.
11 Chapter 2: Formulas and Functions Chapter 02 Lecture Notes (CSIT 104) Exploring Microsoft Office Excel 2007.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
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.
Chapter 3 Query and Report. Agenda Report types Report contents Report creation Report design view Query and dynaset Function and grouping Action query.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
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,
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
What are queries? Queries are a way of searching for and compiling data from one or more tables. Running a query is like asking a detailed question of.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007.
Access Chapter 7- Access Custom Reports. PgP MIS 342 Access7-2 Custom Reports  Banded report writer Report, Page(s) and Group(s) sections can have both.
IS201 Agenda: 09/19  Modify contents of the database.  Discuss queries: Turning data stored in a database into information for decision making.  Create.
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.
DAY 17: ACCESS CHAPTER 3 Tazin Afrin October 17,
- Professor Kurt Brandquist - IT133 Software Applications Unit 6 Seminar: Formulas and Functions Wednesday, 6/22/11.
Exploring Office 2003 Vol 1 2/e - Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 - Information From the Database:
A Guide to SQL, Eighth Edition Chapter Four Single-Table Queries.
Chapter 4 Decision Making. Agenda Function Goal Seek command AutoFilter command Worksheet operation Printing worksheet.
Lesson 4: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Set query.
Access Lesson 10 Adding Advanced Features to Reports Microsoft Office 2010 Advanced Cable / Morrison 1.
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.
Paul A. Harris, Ph.D. Director, GCRC Informatics How to use query function in Microsoft Access.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office.
Larry Reaves October 9, 2013 Day 16: Access Chapter 2 Larry Reaves October 9, 2013.
Exploring Microsoft Office Access 2007
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Exploring Microsoft® Office 2016 Series Editor Mary Anne Poatsy
Query Functions.
Access: Queries III Participation Project
RAHUL KAVI October 22, 2013 Day 20: Access Chapter 4 RAHUL KAVI October 22, 2013.
Chapter 3 Query and Report.
Assignment 3 Querying and Maintaining a Database
Presentation transcript:

DAY 17: ACCESS CHAPTER 2-3 RAHUL KAVI October 17,

LAST CLASS Relationship Types –Many-to-one –One-to-one –Many-to-many Calculated Fields Relationship Manager 2

TODAY’S CLASS Queries Calculated Fields in Queries Basic Queries Multi-table queries 3

QUERIES A Query is a question one asks about the data stored in a database Access responds by displaying specific records that answer the question In creating a query, we tell access which fields are needed(in one or more tables) and what criteria needs to be met

CALCULATED FIELDS IN QUERIES New fields can be calculated from existing fields using an expression Expressions can include the following: –Identifiers (names of fields) –Arithmetic operators (*, +, etc.) –Functions (Date(), IIf()) –Constants (numbers such as 12 or 0.35) 5

EXPRESSION SYNTAX You should give calculated fields a name by prefixing the expression with the name followed by a colon Example: –NewBalance: [Balance] + [MonthlyInterest] After the colon, you can use any functions or mathematical operators to calculate the value based on existing fields and/or constants 6

EXPRESSION BUILDER Right click the field->Builder Select the field, then –Query Tools->Design->Query Setup->Builder Expression builder provides graphical tools for looking up operators (functions and arithmetic operators) and operands (existing fields, constants) 7

FUNCTIONS Like Excel, Access has many functions for performing calculations –PMT –IIF –DateDiff 8

PMT Identical to PMT in Excel –Pmt(rate, num_periods, present_value) Rate is the interest rate per payment period Num_periods is the number of payment periods Present_value is the present value of the loan (which should be negative for most situations) 9

IIF IIF is the Access equivalent of IF in Excel Iif(expression, truepart, falsepart) –Expression is a comparison that is evaluated –If expression is true, Iif returns the value of truepart –If expression is false, Iif returns the value of falsepart 10

DATE ARITHMETIC Date()- returns the current date Now()- returns the current date and time DateDiff(format, date1, date2) –Format: Result in years, seconds, quarters, etc –Date1 and Date2 specifies the date for which the difference has to be calculated 11 yyyyYear qQuarter mMonth yDay of year dDay wWeekday wwWeek hHour nMinute sSecond

AGGREGATION (SUMMARY QUERIES) Summary queries allow you to calculate summary statistics from your data –Avg, Count, Max, Min, StDev, Var, Sum These functions can be used as calculated fields 12

TOTALS QUERIES Aggregation can also be done as a totals query Query Tools->Design->Show/Hide->Totals Select how you would like to aggregate each field 13

GROUP BY Group By groups the data before the aggregation functions are applied This allows you to find summary statistics for each group 14

LOOKUP FIELDS Lookup fields are a nice way of hiding the foreign keys Instead of displaying the foreign key, the lookup field looks up the record for that key and displays whatever fields you set up Lookup fields also provide a dropdown to select the record you want to establish the relationship with Internally, it is still just stored as the foreign key 15

CALCULATED FIELDS Calculated fields can also be added to table definitions for commonly used calculations Simply select Calculated as the field type and input your expression into expression builder 16

NEXT CLASS Expression Builder Forms –Create, modify –Sorting –Form Sections –Control Types Reports –Create, modify –Sorting –Report sections –Control Types 17