iSelfSchooling.com - Copyright © 1999-2009 iSelfSchooling.com ||  References  |  Job Openings
    Home  | Search more...  |  FREE Online VIDEO Oracle Training 

   Unlimited access!   

    Oracle  Syntax  | Suggestions

Copyright & User Agreement

Email2aFriend  | Homepage us! |  Bookmark

Products/Services

 Vision/Mission

 Community Sharing

 Services

  Products

 Biography

 Contact Us

 FAQ

 Current News

 Website Traffic

 FREE Training

 SQL

 PL/SQL

 Forms 

 Reports

 Other TOOLS

 Fundamentals

 Performance

 OEM

 Application Server

 Grid Control

 Articles

 Prepare for OCP

Oracle SYNTAX

 Oracle Functions

 Oracle Syntax

 Oracle 10g Syntax

  PL/SQL Syntax

UNIX and more...

 UNIX for DBAs

 LINUX for DBAs

 DB using PHP

  A+ Certification

 Basics of JAVA  

 Tips of  SEO

Finance/Jobs

 Financial Aid

 Skilled

 Oracle

 Jobs

  Magazine

More Training

 Q & Answers

 SQL-PL/SQL

 DBA

 Developer

 Important Notes

 Case Studies

 9i New Features

 10g New Features

 10g Qs/As

 Grid Control

 OracleAS # I

 OracleAS # II

  LDAP and OID

  HTTP Server

 Instructor-Led

  Virtual Hosts

 Community Sharing

More to know...

Acknowledgement**

 FREE Legal Forms

 Who is who

 Market Place

 University Directory

 Advisory Articles

 Links...

 

 

FREE Online Oracle Training for beginners and advanced - The most comprehensive Oracle tutorial

The authors do not guarantee or take any responsibility for the accuracy, or completeness of the information.

BASICS

SQL | PL/SQL

DEVELOPERS

FORMS 2 | REPORTS | Other TOOLS

DBAs

FUNDAMENTALS 2 | PERFORMANCE | OEM

ADVANCE

APPLICATION SERVER | GRID CONTROL | ARTICLES 2 3 4

Developers - REPORTS

Lesson 01 | Lesson 02 | Lesson 03 | Lesson 04 | Lesson 05 | Lesson 06 | Lesson 07 | Lesson 08 | Lesson 09 | Lesson 10 | Lesson 11 | Lesson 12 | Lesson 13 | Lesson 14 | Lesson 15 | Lesson 16 | Lesson 17 | Lesson 18 | Lesson 19 | Lesson 20 | Lesson 21 | Lesson 22 | Lesson 23 | Lesson 24 | Lesson 25 | Lesson 26 | Lesson 27 | Lesson 28 | Lesson 29 | Lesson 30 | Lesson 31 | Lesson 32 | Lesson 33 | Lesson 34 | Lesson 35 |

Lesson 02

"It is time I stepped aside for a less experienced and less able man." - Professor Scott Elledge on his retirement from Cornell

Read first then play the video:

   RPT002(VIDEO)-(Hands-On 01) How to write a Tabular report

 

Tabular

Introduction

Tabular report shows data in a table format. It is similar in concept to the idea of an Oracle table. Oracle, by default, returns output from your select statement in tabular format.

 

Hands-on

In this Hands-On, your client is a stock broker that keeps track of its customer stock transactions. You have been assigned to write the reports based on their reports layout requirements.

Your client wants you to create a simple listing report to show list of the stock trades by using stocks table for their brokerage company

The user layout format mask requirements are:

For date MM-DD-RR (Year 2000 complaint).

For dollars $99,999.90.

For quantity NNN.N0.

See Figure 1.

 

Your tasks are:

1- Write a tabular report.

2- Apply user layout Format mask.

3- Run the report.

4- Test the repot.

 

FYou will learn how to: use report wizard, object navigator, report builder, “date model”, property palette, work on query and group box, see report style, use tabular style, navigating through report’s record, change the format mask for dollar, numeric and date items.

 

Figure 1

 

 

Open Report Builder tool

Open the "Report Builder" tool.

 

Connect to database

In the Object Navigator, highlight "Database Objects,” choose "File," then select the "Connect" option.

In the ‘Connect’ window, login as “iself” password schooling, then click “CONNECT.”

 

Save a report

In the Object Navigator, highlight the "untitled" report, choose “File,” and select the “Save as” option.

In the ‘Save as’ window, make sure to save the report in the ISELF folder and name it "rpt01_stock_history,” report number 1 stock history.

 

Data Model

In the Object Navigator, double click on the "Data Model" icon.

 

Create SQL box

In the Data Model window, click on the "SQL Query" icon. Then drag the plus sign cursor and click it anywhere in the “Data Model” screen where you wish your object to be.

 

In the ‘SQL Query Statement’ window, write a query to read all the stocks record sorted by their symbol.

(SQL Query Statement)

SELECT * FROM stocks

ORDER BY symbol

Click “OK.”

 

Change SQL box’s name

In the Data Model window, in the “SQL” box, right click on the ‘Q_1’ and open its property palette.

In its property palette, change the name to Q_STOCKS. Then close the window.

 

Change GROUP box’s name

In the Data Model, right click on the group box (G_SYMBOL) and open its property palette.

In the Group property palette, change the name to ‘G_STOCKS,’ and close the window.

 

Open Report Wizard

In the Data Model, click on the ‘Report Wizard’ icon on the horizontal tool bar.

In the Style tab, on the Report Wizard window, type ‘Stock History’ in the Title box and choose the report style as ‘Tabular.’

Notice that when you change the report style a layout of that report will be displayed on the screen.

Choose a different style to display its layout of its report style.

 

Data, Fields, Totals, Labels and Template tabs

Click “NEXT” to go to the Data tab. In the ‘SQL Query Statement’ verify your query.

Click “NEXT” to navigate to the Fields tab, select the fields that you would like to be display in your report. Select all the columns to be display.

Click “NEXT” to navigate to Totals tab, select the fields for which you would like to calculate totals. We have none in this hands-on exercise.

 

Click “NEXT” to open the Labels tab, modify the labels and widths for your fields and totals as desired.

Click “NEXT” again to go to the Template tab, and choose a template for your report. Your report will inherit the template’s colors, fonts, line widths, and structure.

Use the default template and click “finish.”

 

Running a report

Now, you should have your output report on the screen.

 

Resize an object

Maximize the output report and format the report layout. To resize an object , select it and drag its handler to the preferred size.

 

Move an object

To move an object, select and drag it while the cursor is on the object.

 

This is a simple report.

Navigate through the output

To navigate through the output report in the Report Editor - Live Pre-viewer, click on the "next page" or "previous page" icon on the horizontal toolbar.

Do the same with the "first page" or "last page" icon.

 

Use the “zoom in” and “zoom out” icon to preview the report.

Know report’s functions

To know each icon functionalities, drag your cursor on it and a tooltip will display its function.

 

Change Format Mask

To change the "format mask" of a column, the column should be selected. Then go to the toolbar and click on the “$” icon, "add decimal place," and the “right justify” format to the all currency columns (Todays Low, Todays High, and current price)

 

Select the “traded today” column, and click on the ‘,0’ icon (apply commas), and make it right justify.

Also, you can change any attributes of field by opening its property palette. To open an object’s property palette, right click on it and select the Property Palette option.

Right click on the "trade date" column and open its "property palette."

Change the date "Format Mask" property and make it “year 2000 complaint (MM-DD-RR).”

 

Navigate through the report pages.

Save a report

Save the changes (rpt01_stock_history).

 

 

 

"Men and nations behave wisely once they have exhausted all the other alternatives." - Abba Eban (1915-2002)

Questions

Q: How can you use the "Report Wizard" tool in the "Report Builder" tool?

Q: How can you use the "Object Navigator" window?

Q: How can you write a report?

Q: How can you save a report?

Q: How can you use the "Data Model" tool?

Q: What is the "Property Palette" sheet?

Q: What is the "Query" box in the "Data Model" window?

Q: What is the "Group" box in the "Data Model" window?

Q: How can you change a report style?

Q: Use a tabular style for a report.

Q: How can you navigate through your report?

Q: How can you change a format mask for an item in the "Report Builder" tool?

Q: What is a Tabular report?

Q: Your client is a stock broker that keeps track of its customer stock transactions. You have been assigned to write the reports based on their reports layout requirements.

Your client wants you to create a simple listing report to show list of the stock trades by using stocks table for their brokerage company

The user layout format mask requirements are:

For date MM-DD-RR (Year 2000 complaint).

For dollars $99,999.90.

For quantity NNN.N0.

See Figure 1.

 

Your tasks are:

1- Write a tabular report.

2- Apply user layout Format mask.

3- Run the report.

4- Test the repot.

 

 

 
 
Google
 
Web web site