Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This document describes how a Ticket information is stored in the Data base so that Customers can generate their own reports with ease.

It also explains the Best Practices and Guidelines for creation of the Reports. It is recommended to follow these practices and guidelines while executing a query, generation of reports.

ISM Data base consists of many Tables and Views. However, there are 19 main Tables / Views based on which Customers can generate reports related to Tickets.

...

UI Field Name

View Name

Column Name

Remarks

Join Key

Phase

VAPP_HISTORY_APPROVALS

APPR_PHASE

 

VAPP_HISTORY_APPROVALS.SLICE=VAPP_ITEM.SLICE

AND

VAPP_HISTORY_APPROVALS.ITEM_ID=VAPP_ITEM.ROW_ID

Approver Type

VAPP_ITEM_APPROVERS

appr_role

 

VAPP_ITEM_APPROVERS.SLICE=VAPP_ITEM.SLICE

AND

VAPP_ITEM_APPROVERS.ITEMappr_item_IDid=VAPP_ITEM.ROW_ID

Status

VAPP_HISTORY_APPROVALS

APPR_STATUS

 

 

Action on approval

VAPP_ITEM_APPROVER_COMMENTS

COMMENT_TEXT

The review decisions, observations, suggestions, or additional information requirements regarding the submitted change

 

Action on rejection

VAPP_ITEM_APPROVER_COMMENTS

COMMENT_TEXT

The review decisions, observations, suggestions, or additional information requirements regarding the submitted change

 

In approval state ?

VAPP_ITEM_APPROVER_COMMENTS

COMMENT_TYPE

0 – Approved

1-      Rejected

 

Approver Type

VAPP_ITEM_APPROVERS

appr_role

 

 

Name

VAPP_ITEM_APPROVERS

last_name. first_name

 

 

Group

VAPP_ITEM_APPROVERS

group_name

 

 

Decision

VAPP_ITEM_APPROVER_COMMENTS

decision

 

 

Decision date

VAPP_ITEM_APPROVER_COMMENTS

decision_date

 

 

Comments

VAPP_ITEM_APPROVER_COMMENT_LIST

COMMENT_TEXT

 

VAPP_ITEM_APPROVER_COMMENT_LIST.SLICE=VAPP_ITEM.SLICE

AND

VAPP_ITEM_APPROVER_COMMENT_LIST.APPR_ITEM_ID=VAPP_ITEM.ROW_ID

...

Best Practices / Guidelines

  Do’s

  1. Views on Tables and Pivot Tables have been created for Custom reports and these are to be used for generating your own reports

  2. Slice ID should be used as filter in queries or reports for optimal performance

  3. VAPP_ITEM Table is the base table for all the ticketing information. Whenever it is require to join VAPP_ITEM with any table, Slice ID and ROW_ID of VAPP_ITEM should be joined with ITEM_ID column of respective Join table.

  4. Always use Slice ID in joins

  5. Derived tables should be used with caution and only used when necessary.

  6. Whenever SQL functions are used, these will give new names to newly generated columns by default. However, appropriate names can be given

  7. Always use table aliases wherever SQL statement involves more than one source.

  8. Use DM_ tables for all reporting needs (if they are available in Jasper domain or VPN Database)

  9. Create joins with INNER JOIN not with WHERE clause

  10. Create calculated fields at domain level wherever possible. For more information on this, please refer article

Don’ts

  1. Do not use SELECT * in your queries, Use only required columns in the derived tables or reports, instead of all columns.

  2. Do not use column numbers in the ORDER BY clause.

  3. Avoid extensive sub queries, use not more than 2 level sub queries or nested queries.

  4. Avoid using multiple and IF and Else conditions.

  5. Avoid SELECT DISTINCT usage, instead use SELECT DISTINCT, select more fields to create unique results.