Query Manager. QM is a collection of tools you can use to obtain information from the AS/400 database Used to –select, arrange, and analyze information.

Slides:



Advertisements
Similar presentations
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Advertisements

Working with Tables 1 of 5. Working with Tables 2 of 5.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
INTRODUCTORY MICROSOFT ACCESS Lesson 1 – Access Basics
Jeopardy Objects Navigation Buttons True/False Parts of a Report Vocabulary Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final.
Automating Tasks With Macros
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
Attribute databases. GIS Definition Diagram Output Query Results.
Concepts of Database Management Sixth Edition
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
DB Audit Expert v1.1 for Oracle Copyright © SoftTree Technologies, Inc. This presentation is for DB Audit Expert for Oracle version 1.1 which.
State of Connecticut Core-CT Project Query 4 hrs Updated 1/21/2011.
PHP Programming. Topics Background and History of PHP Installation Comments in PHP Variables Conditions Loops Functions File Handling Database Handling.
Class 3 Data and Business MIS 2000 Updated: January 2014.
Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 1 – Access Basics.
Introduction to Databases. Overview  What is a Database?  What is a Database Management System?  How is information organized in a database?  What.
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
Chapter 2 Basic SQL SELECT Statements Oracle 10g: SQL.
Concepts of Database Management Seventh Edition
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Microsoft Office Access 2003 Số tiết: 30 tiết lý thuyết 60 tiết thực hành Giáo viên: Từ thị Xuân Hiền.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
1 Definition of a subquery Nested subqueries Correlated subqueries The ISNULL function Derived tables The EXISTS operator Mixing data types: CAST & CONVERT.
What is a Database? A Database is…  an organized set of stored information usually on one topic  a collection of records  a way to organize information.
Database control Introduction. The Database control is a tool that used by the database administrator to control the database. To enter to Database control.
Key Applications Module Lesson 21 — Access Essentials
Concepts of Database Management Seventh Edition
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Microsoft Access Database Software.
Implementing the Theory dBase Operations in MS Access.
ADO.NET Data Access. Page  2 SQL  When we interact with the datasource through ADO.NET we use the SQL language to retrieve,modify,update information.
Query – One of the objects in Microsoft Access – It can help users extract data, which meets the criteria defined by them, from a database file. – It must.
Microsoft Access 2000 Presentation 1 The Basics of Access.
Database Management Systems.  Database management system (DBMS)  Store large collections of data  Organize the data  Becomes a data storage system.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Oracle Command Spool Spool C:\temp\Lab9.lst Select Hotel_no, room_no, type, price From Room Order by Hotel_no; Spool Off.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
McGraw-Hill/Irwin The O’Leary Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Access 2002 Lab 3 Analyzing Tables and Creating.
SQL Basic. What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate with a database.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Aliya Farheen October 29,2015.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
SQL.. AN OVERVIEW lecture3 1. Overview of SQL 2  Query: allow questions to be asked of the data and display only the information required. It can include.
NSF DUE ; Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia.
1 Copyright © Oracle Corporation, All rights reserved. Writing Basic SQL SELECT Statements.
Introduction to Teradata Client Tools. 2 Introduction to Teradata SQL  OBJECTIVES :  Teradata Product Components.  Accessing Teradata – Database /
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. DATABASE.
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
Today’s Agenda Object Management Library List PDM (Programming Development Manager) SEU (Source Entry Utility)
Create Views Using a Graphical Designer Database Administration Fundamentals LESSON 2.3b.
​ TdBench 7.2 – tdb.sh Utility Script. 2 Created for TdBench 7.x release to consolidate tools Open architecture – looks for scripts in the./tools directory.
PHP and SQL Server: Connection IST 210: Organization of Data IST2101.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
1 Copyright © 2004, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement.
DATABASE CONCEPTS A database is a collection of logically related data designed to meet the information needs of one or more users Data bases are store-houses.
Chapter 1 Introduction.
Analyzing the Database and Query Manager
Database Management  .
Chapter 1 Introduction.
Chapter 1 Introduction.
Chapter 1 Introduction.
Topic 11 Lesson 1 - Analyzing Data in Access
Introduction to MySQL NELINET October 28th, 2005.
Database SQL.
Presentation transcript:

Query Manager

QM is a collection of tools you can use to obtain information from the AS/400 database Used to –select, arrange, and analyze information stored in one or more database tables, –to produce reports or new tables. You can create and run your own query definitions, or you can run existing queries that you did not create. You can format the way that retrieved query information is presented by creating a report form, and applying it when you run a query, You can let Query Manager format the query information for you, using a simple default report form.

Query Manager Query Manager queries are created using the AS/400 SQL language. –If you have little or no experience using the DB2 UDB for AS/400 SQL language, you can still create and change queries using Query Manager's prompted query creation mode. –A series of displays prompt you to enter all of the information that DB2 UDB for AS/400 needs to create a query Query Manager queries can obtain information from a single table or from as many as 32 tables. You can select all the table columns, or only a few of the columns, and organize them for the type of output chosen. You can have all table rows in the output, or you can select only a few to be included, using row selection tests. You can also use report breaks and arithmetic summary functions to include additional information in your report, and make it easier to read

The iSeries database The iSeries database is a relational database that stores information at the most basic level in table format. A database can be compared to a filing cabinet: 1.The cabinet can have any number of drawers (libraries or collections). 2.Each drawer contains folders (tables). 3.Each folder contains pieces of paper (rows). 4.All pieces of paper in a given folder are identical "fill-in-the-blanks" forms.

A query is a question asked of the database. For example, you use a query to get information from database tables to produce a report. All queries created in Query Manager are written in the DB2/400 SQL language. Most of the queries you write or run will be SQL SELECT statements to generate reports on existing database information. Query Manager queries can contain all interactive SQL statements except for the CONNECT, DISCONNECT, RELEASE, and SET CONNECTION statements. The following example shows a simple query that extracts information from the sample table shown on page SELECT DEPT, NAME, JOB, SALARY, COMM FROM MYCOMP.STAFF WHERE DEPT = 20 OR DEPT = 38 ORDER BY DEPT, JOB

Prompted queries in Query Manager Users with little or no experience in using the SQL language can create and change SELECT statement queries using Query Manager's prompted query creation mode A series of displays are shown, with prompts that ask you to enter all of the information that Query Manager needs to create the query. Answer the prompts shown on these displays to create a prompted query.

Report forms in Query Manager While a query is a question asked of the database, a report form specifies the format of the answer. The report itself is the result of applying a report form to the data generated by running a query. If you run a query shown without specifying a report form, Query Manager generates a default report form and produces a simple report. This default report form is referred to as *SYSDFT, the system default form. You can improve the presentation of the report by creating a report form and applying it to the query data. The report form could specify a page heading and footing, and column headings that are more descriptive

Starting DB2 UDB for AS/400 Query Manager You need to have authority to use the STRQM command before you can use Query Manager. Start Query Manager by typing STRQM on any command line, or by selecting the Query Manager option from one of the following menus: 1.Query Utilities menu 2.SQL Commands menu 3.Query Commands menu 4.Start Commands menu