Solved

How can I incorporate this function into the attached query

Posted on 2010-08-27
1
354 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
ID: 33543457
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

930 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

18 Experts available now in Live!

Get 1:1 Help Now