Introduction to Query Part 2. Query Topics Joining Files Defining Result Fields Complex Record Selection Formatting Output Creating Reports Using Multiple.

Slides:



Advertisements
Similar presentations
Location Transfers and Misc Adjustments New to version 7 -5 digits batch numbers. -Will be able to query the batch file easily. U8RECIV F4 Prompt.
Advertisements

ORDER VERIFICATION ORDER ENTRY DAILY PROCESS ORDER VERFICATION - Order Sort Browse - Enter Order # - F-8 OK.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
QUERY LANGUAGE. Option A Select A - for Amend in desired process Enter a fictitious code Press File name associated with this file will be displayed at.
Benchmark Series Microsoft Access 2010 Level 1
Start First step Create a new blank database Create a database using the option that will enable you to build your database using pre-set options. Save.
Create a new blank database First step SUBMITTry again.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Introduction to Access. What is Access? Database tool Creates a database Good data query (lookup and analysis) ability Good entry forms Good reports Multi-user.
Customizing Forms and Writing QuickBooks Letters Lesson 15.
SQL Query Extras MIS 433. Rerunning the last Query n Type the forward slash “/” to rerun the last query that was entered.
People © 2013 The Sleeter Group All rights reserved. Intuit, the Intuit logo and QuickBooks, among others, are registered trademarks of Intuit Inc. Other.
Advanced File Processing
© 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 4 – Creating New.
ASP.NET Programming with C# and SQL Server First Edition
Introduction to SAS Essentials Mastering SAS for Data Analytics Alan Elliott and Wayne Woodward SAS ESSENTIALS -- Elliott & Woodward1.
XP Chapter 5 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Developing Effective Reports Chapter 5 “Nothing succeeds.
Product Name: Reporting to the Max. The following presentation demonstrates the features and benefits of an enhanced reports available for the Cougar.
Introducing Access Lesson 1. Objectives Start Access and explore the Database window Explore database objects Enter, edit, and delete records in a datasheet.
Chapter 13 Sequential File Processing. Master Files Set of files used to store companies data in areas like payroll, inventory Usually processed by batch.
Exam Review – Queries & MORE! Access SimNet Exam Access Case Exam Final Exam.
Once a physical file has been created, how can data be loaded into it? zDFU zSQL zCopy File zWrite a program.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
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.
Advanced File Processing. 2 Objectives Use the pipe operator to redirect the output of one command to another command Use the grep command to search for.
Chapter Five Advanced File Processing Guide To UNIX Using Linux Fourth Edition Chapter 5 Unix (34 slides)1 CTEC 110.
Concepts of Database Management Seventh Edition
13-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
Sequential Files Chapter 13. Master Files Set of files used to store companies data in areas like payroll, inventory Set of files used to store companies.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
Introduction to Query Part 1. Query Overview Quick Utility Efficient Report Yes! Impress your manager!
Databases (2) Lesson Objective: Understand the purpose of DBMS. Understand data types, queries, forms and reports. Learning Outcome: Make a data table.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
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.
1/62 Introduction to and Using MS Access Database Management and Analysis Yunho Song.
A Simple Guide to Using SPSS ( Statistical Package for the Social Sciences) for Windows.
Accessing the AS/400 DATABASE Preparation for DATA storage Create a receptacle (file) internal -- in program or direct (output / crtpf) external -- with.
AgVantage Software’s Most Commonly Used Queries Lab - Part 2 Presented by: Mike Smark AgVantage National Conference 2010 Presented by: Mike Smark AgVantage.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
By ENTRACK Inc ENTRACK tm GUI/400 EDI System Presentation §©Copyright 2001.
13-1 Sequential File Processing Chapter Chapter Contents Overview of Sequential File Processing Sequential File Updating - Creating a New Master.
The Advantage Series © 2004 The McGraw-Hill Companies, Inc. All rights reserved Creating Select Queries Chapter 6 Microsoft Office Access 2003.
Chapter 14 Formatting Readable Output. Chapter Objectives  Add a column heading with a line break to a report  Format the appearance of numeric data.
1.  Introduction  The Benefits of the Report Writer Module ◦ For Detail and Summary Printing ◦ For Control Break Processing ◦ For Printing Headings.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
13- 1 Chapter 13.  Overview of Sequential File Processing  Sequential File Updating - Creating a New Master File  Validity Checking in Update Procedures.
Introduction to Query Part 3. Query Topics Report Breaks  Totals and subtotals Forms of Output  Detail verses summary Output Types  Data base file.
PestPac Software. Pay On Commission Commission can be paid on Production, Receipt, or Up-Front. Production: Commission will be paid when work is completed/an.
Preparation for and Accessing the AS/400 DATABASE.
Agenda Sage Vision New Features in Cashbook 2.New Features in RecXpress 3.New Features in EFTXpress.
IFM APPORTIONMENTS Elisa Vick
Agenda Sage Vision New Features in Cashbook 2.New Features in RecXpress 3.New Features in EFTXpress.
Notes: **A Row is considered one Record. **A Column is a Field. A Database is…  an organized set of stored information usually on one topic  a collection.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
A/R Statements & Format Options AgVantage ® Software National Conference & User Exchange June 22– 24, 2016 Michelle Sirosky.
SIMPLE FILTERS. CONTENTS Filters – definition To format text – pr Pick lines from the beginning – head Pick lines from the end – tail Extract characters.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Riding the Wave of Innovation Cash / Bank Reconciliation
Databases Chapter 9 Asfia Rahman.
How’s assignment 1 coming? Winter 2007
GO! with Microsoft Office 2016
GO! with Microsoft Access 2016
NextGen Trustee General Ledger Accounting
Designing and Writing Control-Break Programs
CHAPTER 17 The Report Writer Module
Presentation transcript:

Introduction to Query Part 2

Query Topics Joining Files Defining Result Fields Complex Record Selection Formatting Output Creating Reports Using Multiple Files

Joining Files Define the Query Query : Option..... : CREATE Library.... : KARENQRY CCSID : 37 Type options, press Enter. Press F21 to select all. 1=Select Opt Query Definition Option 1 Specify file selections Define result fields Select and sequence fields Select records Select sort fields Select collating sequence Specify report column formatting Select report summary functions Define report breaks Select output type and output form Specify processing options F3=Exit F5=Report F12=Cancel F13=Layout F18=Files F21=Select all

Joining Files Data is stored in different files  Customer Name Master Files  Customer Master Transaction Files  U4TRND – AR Detail File

How to Join Files Join Key Fields and ‘Like Fields’ in both files  Prevents duplicate data Transaction File is the primary file  U4TRND should be primary file  Queries run faster Use Correct type of join

Joining Files Types of Joins 1 – Matched Records Selects only records that have matching records in ALL the files. 2 - Matched Records with Primary File Selects every record from the primary file and includes all the matching records from all other files. 3 Unmatched Records with Primary File Selects every primary record that does not have a match in all the secondary files.

Joining Files Join files by key fields: U4CSTMRU4TRNDU4TRNH TDBTCHTHBTCH BATCH NO CSCNOTDCNOTHCNOCUSTOMER NO. TDINVTHINV#INVOICE NO. TDIVDTTHIVDTINVOICE DATE TDTYPETHTYPETRANS TYPE TDTMCDTHTMCDTERM CODE TDLCTHLCLOCATION

Define Result Fields Define the Query Query : Option..... : CREATE Library.... : KARENQRY CCSID : 37 Type options, press Enter. Press F21 to select all. 1=Select Opt Query Definition Option Specify file selections 1 Define result fields Select and sequence fields Select records Select sort fields Select collating sequence Specify report column formatting Select report summary functions Define report breaks Select output type and output form Specify processing options F3=Exit F5=Report F12=Cancel F13=Layout F18=Files F21=Select all

Define Result Fields Type definitions using field names or constants and operators, press Enter. Operators: +, -, *, /, SUBSTR, ||, DATE... Field Expression Column Heading Len Dec AMOUNT TDAMT*-1 AMOUNT 9 2 COMM AMOUNT*.001 COMMISSION 9 2 Bottom ____________________________________________________________________________________ Field Text Len Dec T01.TDDEPT Dept Number 3 0 T02.DPDESC Department Description 20 T01.TDITEM Item Number 14 T01.TDCNO Customer Number 7 0 More... F3=Exit F5=Report F9=Insert F11=Display names only F12=Cancel F13=Layout F20=Reorganize F24=More keys

Select Records Define the Query Query : Option..... : CREATE Library.... : KARENQRY CCSID : 37 Type options, press Enter. Press F21 to select all. 1=Select Opt Query Definition Option Specify file selections Define result fields Select and sequence fields 1 Select records Select sort fields Select collating sequence Specify report column formatting Select report summary functions Define report breaks Select output type and output form Specify processing options F3=Exit F5=Report F12=Cancel F13=Layout F18=Files F21=Select all

Complex Record Selection Select Records Type comparisons, press Enter. Specify OR to start each new group. Tests: EQ, NE, LE, GE, LT, GT, RANGE, LIST, LIKE, IS, ISNOT... AND/OR Field Test Value (Field, Number,Characters', or...) _______ _____ ________________________________________ _____ ________ _____ ________________________________________ _____ ________ _____ ________________________________________ AND’s connectOR’s separate

Complex Record Selection AND’s connect All statements must be true! TDITEMEQ‘HORSECHOW’ ANDTDLOCEQ001 OR’s separate Only 1 statement must be true! TDITEM EQ 'HORSECHOW' OR TDLOC EQ 001 TDITEMEQ‘HORSECHOW’ ANDTDLOCEQ001 ORTDITEMEQ‘PIG FEED' ANDTDLOCEQ002

Record Selection Tips U4TRND file (A/R Transaction Detail)  TDTRAN – Transaction code field 1, 2, 3, 5, 7, 8, 9  TDOFFS field – Offset records NE to 1 Used only when selecting just transaction codes Don’t need if selecting item No or G/l No.

Formatting Output Define the Query Query : Option..... : CREATE Library.... : DAWNQRY CCSID : 37 Type options, press Enter. Press F21 to select all. 1=Select Opt Query Definition Option Specify file selections Define result fields Select and sequence fields Select records Select sort fields Select collating sequence 1 Specify report column formatting Select report summary functions Define report breaks Select output type and output form Specify processing options F3=Exit F5=Report F12=Cancel F13=Layout F18=Files F21=Select all

Formatting Output Specify Report Column Formatting Type information, press Enter. Column headings: *NONE, aligned text lines Column Field Spacing Column Heading Len Dec Edit T01.TDIVDT 0 Invoice 8 0 * Date T01.TDCNO 2 Customer 7 0 Number T03.CSLKNM 2 Customer 15 Lookup Name = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Field Text Len Dec T01.TDIVDT Invoice Date 8 0 T01.TDCNO Customer Number 7 0 T03.CSLKNM Customer Lookup Name 50 T01.TDINV Invoice Number 7 0 T01.TDQTY Quantity 9/4 11 4

Formatting Output Define Numeric Field Editing Field : T01.TDIVDT Text : Invoice Date Heading : Invoice Heading : Date Heading : Length : 8 Decimal : 0 Sample : 99,999,999 Type choice, press Enter. Edit option =Numeric editing choices 2=Date or time editing choice 3=Edit code 4=Edit word F3=Exit F5=Report F10=Process/previous F11=Change sample F12=Cancel F13=Layout F16=Remove edit F18=Files 30

Formatting Output Specify Edit Word Field..... : T01.TDIVDT Heading : Invoice Length.... : 8 Heading : Date Decimal.... : 0 Heading : Type information, press Enter. (Put quotes around edit words.) (Each blank replaced by a digit, each '&' with a blank.) Edit word..... ' / / ' Edit word for summary total.. F3=Exit F5=Report F10=Process/previous F12=Cancel F13=Layout F16=Remove edit F18=Files Date not formattedFormatted Date 20,080, /03/06

Formatting Reports Define the Query Query : Option..... : CREATE Library.... : KARENQRY CCSID : 37 Type options, press Enter. Press F21 to select all. 1=Select Opt Query Definition Option Specify file selections Define result fields Select and sequence fields Select records Select sort fields Select collating sequence Specify report column formatting Select report summary functions Define report breaks 1 Select output type and output form Specify processing options F3=Exit F5=Report F12=Cancel F13=Layout F18=Files F21=Select all

Formatting Reports Define Printer Output Type choices, press Enter. Printer *PRINT *PRINT, name Form size: Length Blank, Width Blank, Start line Blank, End line Blank, Line spacing , 2, 3 Print definition..... N Y=Yes, N=No F3=Exit F5=Report F10=Process/previous F12=Cancel F13=Layout F18=Files NOTE: 66 Length = Portrait 51 Width = Landscape

Query Exercises Exercise 3  Create sales report

Thanks for attending!