Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How can I incorporate this function into the attached query

Posted on 2010-08-27
1
Medium Priority
?
360 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
mottor earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
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.

721 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