1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 10 April 5 Subquery and ThresholdsSubquery and Thresholds Graphics Builder and.

Slides:



Advertisements
Similar presentations
Copyright Ó Oracle Corporation, All rights reserved Sharing Objects and Code.
Advertisements

Enhanced Guide to Oracle 10g
Microsoft Excel 2010 Chapter 7
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Access Tutorial 3 Maintaining and Querying a Database
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Eyad Alshareef 1 Creating Custom Forms Part A. 2Eyad Alshareef Data Block and Custom Forms Data block form Data block form Based on data blocks that are.
Introduction To Form Builder
Introduction To Form Builder
1 Chapter 5: Introduction To Form Builder. 2 Forms  Why Do We Use Form Builder?  Why Don’t We Use SQL Only?!
MS-Access XP Lesson 5. Creating a Query with Expression Builder Eg. Consider the following table. Table Name: Overtime Fields & Data types: Emp No (Number),
Access Tutorial 10 Automating Tasks with Macros
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
23 Copyright © 2004, Oracle. All rights reserved. Sharing Objects and Code.
Chapter 3 Maintaining a Database
Maintaining and Querying a Database Microsoft Access 2010.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
Project 9 Using Visual Basic for Applications (VBA) to Customize and Automate Excel Jason C. H. Chen, Ph.D. Professor of Management Information Systems.
Chapter 6 Advanced Report Techniques
IE 411/511: Visual Programming for Industrial Applications
Office of Education Technology (OET) Active Directory Bulk Import Saturday March 11, 2006 /8:30 – 10:30 AM.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 2 February 1 PL/SQLPL/SQL Creating a FormCreating a Form.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
© 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Creating Charts Lecture 19.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 3 1 Integrating Microsoft Office XP Tutorial 3 – Integrating Word, Excel, Access, and PowerPoint.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
1 Chapter 12: Form Builder Objects and Flexible Code.
Microsoft Outlook 2010 Chapter 3 Managing Contacts and Personal Contact Information with Outlook.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
1 After completing this lesson, you will be able to: Change the format of a table. Sort records in a table. Find records in a table Use filters with a.
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.
1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 9 March 29 GraphicsGraphics Graphics BuilderGraphics Builder.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Oracle Forms Oracle Forms Builder provides various tools, which have powerful Graphical User Interfaces (GUI's) to design such forms. All objects, properties,
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 4 February 15 LOV: List of ValuesLOV: List of Values Dealing with Errors and ProblemsDealing.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 13 April 26 Pseudo Drill-Down GraphsPseudo Drill-Down Graphs.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Chapter 7 Creating Templates, Importing Data, and Working with SmartArt, Images, and Screen Shots Microsoft Excel 2013.
1 Chapter 6: Creating Oracle Data Block Forms. 2 Forms  Application with a graphical user interface that looks like a paper form  Used to insert, update,
Forms Concepts Triggers Fired when Internal/External events occur
Working with Data Blocks and Frames
Working in the Forms Developer Environment
Creating a Basic Form Module
Developer 2000 CSE 4504/6504 Lab.
Lexical Reference Variables in Graphics and List Box in Forms
Lecture on Oracle Forms
Title Slide Title slide: Add notes here..
Chapter 7 Advanced Form Techniques
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
The Basic Usage and The Event Handling in Glade.
Tutorial 8 Sharing, Integrating, and Analyzing Data
Presentation transcript:

1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 10 April 5 Subquery and ThresholdsSubquery and Thresholds Graphics Builder and FormsGraphics Builder and Forms

2 R. Ching, Ph.D. MIS Area California State University, Sacramento The Importance of ORDER BY

3 R. Ching, Ph.D. MIS Area California State University, Sacramento View name Relying on Fate…

4 R. Ching, Ph.D. MIS Area California State University, Sacramento What’s the Problem?

5 R. Ching, Ph.D. MIS Area California State University, Sacramento Ordered by record labels!

6 R. Ching, Ph.D. MIS Area California State University, Sacramento All rows

7 R. Ching, Ph.D. MIS Area California State University, Sacramento Paste the New Query into the Dialog Box

8 R. Ching, Ph.D. MIS Area California State University, Sacramento Revised Graph Too many lines!

9 R. Ching, Ph.D. MIS Area California State University, Sacramento What’s a Threshold and Why Do We Need It?

10 R. Ching, Ph.D. MIS Area California State University, Sacramento Not much usable information

11 R. Ching, Ph.D. MIS Area California State University, Sacramento Reduce the Number of Record Labels Top 7 record labels in sales

12 R. Ching, Ph.D. MIS Area California State University, Sacramento Create a set of threshold values Every record label must beat every value in this set, OR simply every record label must beat the highest (i.e., maximum) value in this set Highest value

13 R. Ching, Ph.D. MIS Area California State University, Sacramento REC RCA COL GRP GTS WB ARI KUC VER DOM LIB S/A CAP KOK SHA DSY MCA MER MOT NAS PM WH CHS GEF APL ATL E/A EMI POL YEAR THRESHOLD Highest Yes Yes Yes Yes Yes Yes Yes Eliminate the ones with red

14 R. Ching, Ph.D. MIS Area California State University, Sacramento Working Backwards Create a set of all record labels that have all sales values greater than those found in the set of thresholdsCreate a set of all record labels that have all sales values greater than those found in the set of thresholds All record labels must beat all threshold values (or simply the minimum sales value must beat the maximum threshold value)

15 R. Ching, Ph.D. MIS Area California State University, Sacramento 35 rows Subquery: Select only those record labels that exist in the set that contains record labels with sales values greater than all threshold values Retrieve all record labels annual sales of those with minimum sales exceeding all values found in the thresholds

16 R. Ching, Ph.D. MIS Area California State University, Sacramento select category, year, sales from view1 alias1 where exists (select category, min(sales) from view1 alias2 where alias1.category = alias2.category group by category having min(sales) > all (select threshold from view2))  Creates a set of threshold values Creates a set of category members whose minimum sales must be greater than all threshold values Retrieves only those category members that are found in the set produced by the first subquery Anatomy of the Subquery Basic Query for the Data Model:

17 R. Ching, Ph.D. MIS Area California State University, Sacramento In Graphics Builder

18 R. Ching, Ph.D. MIS Area California State University, Sacramento A Few Simple Steps for Creating a Graph (From Last Week) Build the initial SQL command in SQL PlusBuild the initial SQL command in SQL Plus In Graphics BuilderIn Graphics Builder –Build the data model –Build the graph Select the graph typeSelect the graph type Assign the independent and dependent to the categories and values, respectivelyAssign the independent and dependent to the categories and values, respectively Format the various components of graph as neededFormat the various components of graph as needed Save and run the graphSave and run the graph

19 R. Ching, Ph.D. MIS Area California State University, Sacramento Layout Editor Tool palette Chart tool - Create data model and graph

20 R. Ching, Ph.D. MIS Area California State University, Sacramento A few steps later… After Building the Graph

21 R. Ching, Ph.D. MIS Area California State University, Sacramento Generating an OGR File  From the File menu, select Administration, Generate and File System Be sure to generate a new OGR file every time a change is made to the OGD file.

22 R. Ching, Ph.D. MIS Area California State University, Sacramento Generating an OGR File  Save the file

23 R. Ching, Ph.D. MIS Area California State University, Sacramento In Form Builder

24 R. Ching, Ph.D. MIS Area California State University, Sacramento Create a Chart Item on the Canvas Select Data Block and the create tool in the tool palette

25 R. Ching, Ph.D. MIS Area California State University, Sacramento Create a Chart Item on the Canvas Select Build a new data block manually and click on OK

26 R. Ching, Ph.D. MIS Area California State University, Sacramento Create a New Item in the Data Block Select Items and click on the Create Tool in the tool palette

27 R. Ching, Ph.D. MIS Area California State University, Sacramento Change the Item’s Property Right-mouse click the item (e.g., ITEM5) and select Property Palette

28 R. Ching, Ph.D. MIS Area California State University, Sacramento Change the Item Type Property 1. Change the Item Type property from Text Item to Chart Item

29 R. Ching, Ph.D. MIS Area California State University, Sacramento Change the Canvas Property 2. Change the Canvas property from to the canvas’ name (e.g., CANVAS2) 3. Close the Property Palette

30 R. Ching, Ph.D. MIS Area California State University, Sacramento Expand the Chart Item on the Canvas

31 R. Ching, Ph.D. MIS Area California State University, Sacramento Attach the OG.PLL File Select Attached Libraries and click on the create tool in the tool palette

32 R. Ching, Ph.D. MIS Area California State University, Sacramento Locate and Attach the OG.PLL File 1.Click on Browse and search for the file 2. Select the file and click on Open Hint. Locate the OG.PLL file through a search in Windows Explorer and copy it into your working directory. It may be located under Developer’s \tools\devdem60\demo\forms subdirectory.

33 R. Ching, Ph.D. MIS Area California State University, Sacramento Attach the OG.PLL File 3. Click on Attach and select Yes (remove path)

34 R. Ching, Ph.D. MIS Area California State University, Sacramento 1. Add a push button 2. Right-mouse click the push button and select PL/SQL Editor

35 R. Ching, Ph.D. MIS Area California State University, Sacramento Select a Trigger Select the WHEN-MOUSE-CLICK trigger and click OK

36 R. Ching, Ph.D. MIS Area California State University, Sacramento PL/SQL Open and close the OGR file Compile the PL/SQL code

37 R. Ching, Ph.D. MIS Area California State University, Sacramento Test the Form

38 R. Ching, Ph.D. MIS Area California State University, Sacramento Test the Form

39 R. Ching, Ph.D. MIS Area California State University, Sacramento Modify the Canvas Properties

40 R. Ching, Ph.D. MIS Area California State University, Sacramento Modify the Chart Item Properties Remove the bevel Change the Background Color to match the canvas

41 R. Ching, Ph.D. MIS Area California State University, Sacramento First Graph

42 R. Ching, Ph.D. MIS Area California State University, Sacramento PL/SQL

43 R. Ching, Ph.D. MIS Area California State University, Sacramento Second Graph