Solved

How can I incorporate this function into the attached query

Posted on 2010-08-27
1
353 Views
Last Modified: 2013-12-07
Hi There,

I have the attached query which is a report from a billing application and below is a description of a function that was used to run the report. How can the report be modified to include the functionality of the function in the second file?



Thanks,
R
Report.txt
Function.txt
0
Comment
Question by:Rhonda Carroll
1 Comment
 
LVL 4

Accepted Solution

by:
mottor earned 500 total points
Comment Utility
Replace in query this:

:PARMMSGTYPE  ->  decode(:PARMMSGTYPE,'ALLC','ALL',:PARMMSGTYPE)
:PARMNETWORK  ->  decode(:PARMMSGTYPE,'ALLC','C','POS','C',:PARMNETWORK)
:PARMVESSELSORT ->nvl( (SELECT VESSEL_SORT FROM TCUSTOMR,INVOICE WHERE INVOICE.INVOICE_NUM = :PARMINVOICENUM AND INVOICE.CUSTOMER_CODE = TCUSTOMR.CUSTOMER_CODE AND ROWNUM = 1),:PARMVESSELSORT)
:PARMREPTITLE ->  decode(:PARMMSGTYPE,'ALLC','for Inmarsat C','POS','for Inmarsat C Data Reports','for All Services')



0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now