eyad alshareef 1 creating database reports. 2eyad alshareef creating reports

29
Eyad Alshareef 1 Creating Creating Database Reports Database Reports

Upload: avis-crawford

Post on 25-Dec-2015

228 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

Eyad Alshareef 1

Creating Creating Database Reports Database Reports

Page 2: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

2Eyad Alshareef

Creating reportsCreating reports

Page 3: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

3Eyad Alshareef

Opening report builderOpening report builder

Page 4: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

4Eyad Alshareef

Use report wizard to create Use report wizard to create a reporta report

Page 5: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

5Eyad Alshareef

Using report wizardUsing report wizard

Click OK on the welcome page and then Click OK on the welcome page and then specify the type of report that you want to specify the type of report that you want to createcreate

Page 6: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

6Eyad Alshareef

Using report wizardUsing report wizard

Name your report and select the desired Name your report and select the desired stylestyle

Page 7: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

7Eyad Alshareef

Using report wizardUsing report wizard Select SQL query as a basis for the report Select SQL query as a basis for the report Build your query (you may be asked to log in at Build your query (you may be asked to log in at

this point)this point)

Page 8: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

8Eyad Alshareef

Using report wizardUsing report wizard

Designate columns as group fieldsDesignate columns as group fields

Page 9: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

9Eyad Alshareef

Using report wizardUsing report wizard

Select columns to appear in the reportSelect columns to appear in the report

Page 10: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

10Eyad Alshareef

Using report wizardUsing report wizard

Specify labels and field length for each of Specify labels and field length for each of the itemsthe items

Page 11: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

11Eyad Alshareef

Using report wizardUsing report wizard Select a templateSelect a template

Page 12: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

12Eyad Alshareef

Using report wizardUsing report wizard

Finish and view your reportFinish and view your report

Page 13: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

13Eyad Alshareef

Viewing Web reportViewing Web report

Page 14: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

14Eyad Alshareef

Snapshot summary of Snapshot summary of database datadatabase data Viewed on screenViewed on screen Printed on paperPrinted on paper Printed to a file and distributed Printed to a file and distributed

electronicallyelectronically

ReportsReports

Page 15: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

15Eyad Alshareef

Introduction to Reports Introduction to Reports Builder Database Builder Database

ReportsReports Reports Builder Reports Builder

Allows application developers to create Allows application developers to create reports that display data from Oracle 10reports that display data from Oracle 10gg databasedatabase

Developer10Developer10gg Reports Builder allows developers to Reports Builder allows developers to

preview and distribute reports in variety preview and distribute reports in variety of different formats including: of different formats including: Web pages Web pages Portable document format (.pdf) filesPortable document format (.pdf) files

Page 16: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

16Eyad Alshareef

A report can:A report can: Display SQL query dataDisplay SQL query data Display summary columnsDisplay summary columns Display calculated values based Display calculated values based

on formulas applied to database on formulas applied to database datadata

Be formatted to look like an Be formatted to look like an invoice or other business invoice or other business documentdocument

Report UsesReport Uses

Page 17: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

17Eyad Alshareef

Tabular (table-format)Tabular (table-format) Form-like (looks like a form)Form-like (looks like a form) Mailing labelsMailing labels Form lettersForm letters Group left and Group aboveGroup left and Group above

Displays master-detail relationshipsDisplays master-detail relationships Matrix and Matrix with groupMatrix and Matrix with group

Data value appears at the Data value appears at the intersection of a column and row intersection of a column and row headingheading

Report StylesReport Styles

Page 18: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

18Eyad Alshareef

1.1. Enter the SQL query to Enter the SQL query to retrieve all of the report retrieve all of the report datadata

2.2. Choose the display fieldsChoose the display fields

3.3. Specify the report master-Specify the report master-detail groupsdetail groups

4.4. Specify the field promptsSpecify the field prompts

5.5. Select a predefined templateSelect a predefined template

Creating a Report Using Creating a Report Using the Report Wizardthe Report Wizard

Page 19: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

19Eyad Alshareef

Creating a Master-Detail Creating a Master-Detail ReportReport

Specify the master and detail records on Specify the master and detail records on the Report Wizard Groups pagethe Report Wizard Groups page Detail records remain in Available Fields listDetail records remain in Available Fields list

Masterrecords

Detailrecords

Page 20: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

20Eyad Alshareef

Format masks can be applied to:Format masks can be applied to: NUMBER fieldsNUMBER fields DATE fieldsDATE fields

Format masks cannot be applied Format masks cannot be applied to text fieldsto text fields

Using Format Masks in Using Format Masks in ReportsReports

Page 21: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

21Eyad Alshareef

Specify report appearance Specify report appearance characteristicscharacteristics

Font sizes, types and colorsFont sizes, types and colors Graphic imagesGraphic images Background shadingBackground shading Page numberingPage numbering Date report is createdDate report is created

Stored in a file with a .tdf extensionStored in a file with a .tdf extension

Report TemplatesReport Templates

Page 22: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

22Eyad Alshareef

Applying Templates to Applying Templates to ReportsReports

Use the Report Wizard Templates Use the Report Wizard Templates page to specify:page to specify: The name of a predefined templateThe name of a predefined template The file path specification to a custom The file path specification to a custom

templatetemplate To register a template file as a To register a template file as a

custom template, modify the custom template, modify the Developer global preferences file Developer global preferences file (cagprefs.ora)(cagprefs.ora)

Page 23: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

23Eyad Alshareef

The Report Wizard The Report Wizard Templates PageTemplates Page

Page 24: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

24Eyad Alshareef

Report Builder WindowsReport Builder Windows

Live PreviewerLive Previewer Shows how report will look when Shows how report will look when

viewed or printedviewed or printed Layout ModelLayout Model

Shows report components symbolicallyShows report components symbolically Data ModelData Model

Shows underlying report data structureShows underlying report data structure

Page 25: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

25Eyad Alshareef

Live PreviewerLive Previewer

Page 26: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

26Eyad Alshareef

Shows report data componentsShows report data components

Query

Recordgroup

Data ModelData Model

Datalink

Page 27: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

27Eyad Alshareef

Record group: set of Record group: set of records with the records with the same column same column headingsheadings

Master-detail reports Master-detail reports have multiple record have multiple record groupsgroups

Default record group Default record group name: name: G_G_first_column_namefirst_column_name

Individual fields are Individual fields are called columnscalled columns

Column

Data Model ComponentsData Model Components

Page 28: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

28Eyad Alshareef

Report Column TypesReport Column Types

Database – ScalarDatabase – Scalar Discrete data value retrieved from databaseDiscrete data value retrieved from database

SummarySummary Data value calculated by applying a summary Data value calculated by applying a summary

function to a report columnfunction to a report column FormulaFormula

Data value calculated by applying a user-Data value calculated by applying a user-defined PL/SQL function to a report columndefined PL/SQL function to a report column

Page 29: Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports

29Eyad Alshareef

Shows reports components Shows reports components symbolicallysymbolically

Layout ModelLayout Model