473,807 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Oracle reports v 6 (&crm ebusiness)--sql query, of using decode

Hiyas

I am currently working on Oracle Report which ties in with my a report
in the ebusiness suite of Oracle telesales module.

Basically, the address on statement reports have blank fields (null)
where the customer does not have and address2, address 3,

At present its set up to read customers
ADDRESS1
CITY
COUNTY
POSTAL CODE

But if the customer does have an address 2 or 3 fields I can do this
by adding in ADDRESS2 AND ADDRESS3 to both my SQL Query and report.
However, not all addresses have 2nd & 3rd Address fields, hence all
the other statments will appear as 'null fields' making the address
for some customers gappy?

I want to write a DECODE statement whereby, if ADDRESS2 AND ADDRESS3
are NULL to skip to the next field being 'CITY'?

Please help...

Cheers
Jul 19 '05 #1
1 4264

"etravels" <em******@yahoo .co.uk> wrote in message
news:d1******** *************** ***@posting.goo gle.com...
| Hiyas
|
| I am currently working on Oracle Report which ties in with my a report
| in the ebusiness suite of Oracle telesales module.
|
| Basically, the address on statement reports have blank fields (null)
| where the customer does not have and address2, address 3,
|
| At present its set up to read customers
| ADDRESS1
| CITY
| COUNTY
| POSTAL CODE
|
| But if the customer does have an address 2 or 3 fields I can do this
| by adding in ADDRESS2 AND ADDRESS3 to both my SQL Query and report.
| However, not all addresses have 2nd & 3rd Address fields, hence all
| the other statments will appear as 'null fields' making the address
| for some customers gappy?
|
|
|
| I want to write a DECODE statement whereby, if ADDRESS2 AND ADDRESS3
| are NULL to skip to the next field being 'CITY'?
|
| Please help...
|
| Cheers

you might want to try just setting Vertical Elasticity property for the
fields

regarding the decode, you can use the standard syntax [ decode ( expression,
match1, display1, match2, display2.... default) ] on the concatenation of
ADDRESS2 and ADDRESS3,
or use a decode for each, appending the expression(s) to the address1
column. don't forget to imbed a newline with the appended address line(s)

;-{ mcs
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5964
by: FuzzyBear | last post by:
Hi, How do dependencies work with Oracle reports? I have a set of developers creating reports in Report Builder 6 w/ Oracle 8i and every time the stored packages change that the report uses, I am asked to recompile the reports. I guess what I am trying to understand is when you run the report (from the .rep file) why does it fail if the stored package has been changed (assuming the stored package is once again valid).
0
2844
by: Rohit Dhawan | last post by:
I have Oracle 9.2 installed in my computer and want to use Oracle reports builder 6i. Is it possible to use both of them. When I tried to install Oracle report an Forms 6i the Oracel Installer reported the error " cannot intall oracle reports 'nt' on Oracle beta 82". 1)If i use Oracle 9.0.2 would I be able to use Oracle 6i. 2)If not which version of Oracle Database and Oracle Report builder
1
5937
by: rishka | last post by:
Rishka Mar 17, 5:40 am show options Newsgroups: comp.databases.oracle.tools From: "Rishka" <ris...@webmail.co.za> - Find messages by this author Date: 17 Mar 2005 05:40:45 -0800 Local: Thurs, Mar 17 2005 5:40 am Subject: Read Text file into Oracle Reports Reply | Reply to Author | Forward | Print | Individual Message | Show original | Remove | Report Abuse
1
2935
by: novie | last post by:
I have an Oracle report and I am using the Down/Across Print Direction, for only a section of the report. I have A query that is used to select the students and then those ids are passed to a nother ref_cursor which then prints a list of courses. I can't get the report to print the entire list of courses. I would think the remaining courses would go onto the next page, but it just stops when it fills up the page. I guess my question is...
1
2806
by: Deven Oza | last post by:
Hello everyone Please help me for the following query I want to solve the query Using the (DECODE) function, I want to write a program segment that will successfully decode all the CIS courses pertaining to Databases into a description. For example, (1)CIS 143 to be decoded to Introduction to SQL., (2)CIS 090 to be decoded to Introduction to VISUAL BASIC., (3)CIS 145 to be decoded to Introduction to ORACLE., (4)CIS 147 to be decoded...
2
2172
by: jai83 | last post by:
Hi, I have few reports which have been created using the Microsoft Sql Server Reporting Services.Now i want to create similar reports using Oracle Reports 10g. Will i need to start from scratch the creation or is there migration tool that would reduce the efforts for the same. Thanks in advance.
1
1760
DEVELOPERatHTS
by: DEVELOPERatHTS | last post by:
Hi, I am working on a requirement where I am returning a string to oracle reports which is more than 4000 characters long. As we know reports 6i has a limitation and it does not allow the diplay charaters to be more than 4000. I am not sure how to approach this requirememnt. This is what i have tried and have failed the purpose: The string is being returned thr a PL/SQL function used as a select col in the query builder and has group by...
2
1867
by: debashish113 | last post by:
hi all, i have been working on oracle reports using oracle reports builder for few weeks. i am facing a problem to generate a sub report from a main report and the syntax i.e. srw.run_report( ) is also not working for me .can anyone help me out in this....???
4
6591
by: tatipellinaresh | last post by:
Hi, I am using Oracle Reports builder for reports. I have one pie graph in my report. It contains 3 fields like lastmonth, lastweek, today. what I want to do is, when I click on a field it should go to particular page. Like putting seperate hyperlinks for fields Please any one can help me Thanks Naresh
1
2140
by: tatipellinaresh | last post by:
Hi, I am working on oracle reports builder. I am using bar graph. I am getting data as Jun-2008 but it is displaying Jun-2 on X-axis. anyone can help me out. Thanks Naresh
0
9720
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9599
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10626
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.