.rtf report [message #468928] |
Mon, 02 August 2010 09:14 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
ashokb21
Messages: 92 Registered: May 2010
|
Member |
|
|
hi all,
i am having a problem that in my rtf i need address1,address2,address3 one below other but if some time my address2 is null then the place of address2 one should be filled be address3.
[Updated on: Mon, 02 August 2010 09:17] Report message to a moderator
|
|
|
Re: .rtf report [message #468931 is a reply to message #468928] |
Mon, 02 August 2010 09:30 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
You could just do that in the query:
SELECT address1, nvl(address2, address3) address2, nvl2(address2, null, address3) address3
|
|
|
|
|
|
|
Re: .rtf report [message #469645 is a reply to message #468938] |
Thu, 05 August 2010 06:32 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
skaundinya
Messages: 9 Registered: June 2010
|
Junior Member |
|
|
Hi,
Please add the following condition:
<?if:SHIP_TO_ADDRESS1!=' '?><?SHIP_TO_ADDRESS1?><?end if?>
Similarly for:
<?if:SHIP_TO_ADDRESS2!=' '?><?SHIP_TO_ADDRESS2?><?end if?>
<?if:SHIP_TO_ADDRESS3!=' '?><?SHIP_TO_ADDRESS3?><?end if?>
<?if:SHIP_TO_ADDRESS4!=' '?><?SHIP_TO_ADDRESS4?><?end if?>
Rgds,
skaundinya.
|
|
|
|
|
Re: .rtf report [message #469768 is a reply to message #469758] |
Thu, 05 August 2010 14:19 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/45399.jpg) |
vamsi kasina
Messages: 2112 Registered: October 2003 Location: Cincinnati, OH
|
Senior Member |
|
|
skaundinya given the reply as, .rtf file normally used in Business Intelligence.
@ashokb21, Shall we move this to above forum?
Anyway if you want to handle that in sql, I think you can use 'coalesce'.select coalesce(:1,:2,:3) from dual;
select coalesce(:2,:3) from dual;
select :3 from dual; @skaundinya, But if I'm not wrong you will see a blank line in between. Don't you?
By
Vamsi
[Updated on: Thu, 05 August 2010 14:25] Report message to a moderator
|
|
|