If numbers are null
Hi Friends,
We are migrating our forms application from 6i to 10g and we have some issues here.The one is ,if numbers are null we have handled that as mentioned below
IF NVL(l_numb1,' ') = NVL(l_numb2,' ')
THEN
ELSE
END IF;
This works fine in 6i , when migrated to 10g it shows error.
But when both the values are VARCHAR2 then no problem.
So I need to handle this in the entire application.I think the only problem
is substituting space(' ') for NUMBER variables.
Do I have any other alternative for this.
Note : It should work for both VARHCAR2 and NUMBER variables.
Regards
Marlon
I use for this case selfwritten Equal- and NotEqual-Functions.
IF pkg.Equal (Value1, Value2) THEN
END IF;
IF pkg.NotEqual (Value1, Value2) THEN
END IF;
here is the code :
FUNCTION Equal (P_Wert1 IN VARCHAR2,
P_Wert2 IN VARCHAR2) RETURN BOOLEAN IS
BEGIN
IF P_Wert1 = P_Wert2
OR (P_Wert1 IS NULL AND P_Wert2 IS NULL) THEN
RETURN (TRUE);
ELSE
RETURN (FALSE);
END IF;
END;or read the full article in my blog:
http://talk2gerd.blogspot.com/2006/12/equal-and-notequal.html
Similar Messages
-
How to get average between rows that are null?
I need to get the average between the 2 positive numbers.
Then update the table with the average for those rows that are NULL between the 2 positive numbers.
The average will come (78+89)/2= 83.5. Round it to 84.
Then it will be:
6-4-13 84
6-5-13 84
6-6-13 84
As for 6-9-13 and 6-10-13, those values will still be NULL.
{code}
create table dummy( tmestmp date
,maxtemp number(4,0));
insert into dummy(tmestmp,maxtemp) values(to_date('20130601','YYYYMMDD'),70);
insert into dummy(tmestmp,maxtemp) values(to_date('20130602','YYYYMMDD'),81);
insert into dummy(tmestmp,maxtemp) values(to_date('20130603','YYYYMMDD'),78);
insert into dummy(tmestmp) values(to_date('20130604','YYYYMMDD'));
insert into dummy(tmestmp) values(to_date('20130605','YYYYMMDD'));
insert into dummy(tmestmp) values(to_date('20130606','YYYYMMDD'));
insert into dummy(tmestmp,maxtemp) values(to_date('20130607','YYYYMMDD'),89);
insert into dummy(tmestmp,maxtemp) values(to_date('20130608','YYYYMMDD'),91);
insert into dummy(tmestmp) values(to_date('20130609','YYYYMMDD'));
insert into dummy(tmestmp) values(to_date('20130610','YYYYMMDD'));
{/code}
I need the output to look like this:
Header 1
Header 2
01-JUN-13
02-JUN-13
03-JUN-13
04-JUN-13
05-JUN-13
06-JUN-13
07-JUN-13
08-JUN-13
09-JUN-13
10-JUN-13
70
81
78
84
84
84
89
91
null
null
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
"CORE 10.2.0.4.0 Production"
TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Suggestions?
TIA.
Steve42select tmestmp,
nvl(
maxtemp,
round(
last_value(maxtemp ignore nulls)
over(order by tmestmp) +
first_value(maxtemp ignore nulls)
over(order by tmestmp
rows between 1 following and unbounded following
) / 2
) maxtemp
from dummy
TMESTMP MAXTEMP
06/01/2013 00:00:00 70
06/02/2013 00:00:00 81
06/03/2013 00:00:00 78
06/04/2013 00:00:00 84
06/05/2013 00:00:00 84
06/06/2013 00:00:00 84
06/07/2013 00:00:00 89
06/08/2013 00:00:00 91
TMESTMP MAXTEMP
06/09/2013 00:00:00
06/10/2013 00:00:00
10 rows selected.
SQL>
SY. -
Which functions and features in Numbers are NOT exported correctly to Excel?
I wish to know EXACTLY which functions I use in a Numbers sheet WILL FAIL to export correctly to an Excel or Neoffice spreadsheet.
For instance, I created a Numbers spreadsheet using prolific use of the IFERROR function. However, when I EXPORT to XLS, all the cells that used the IFERROR function were replaced by the literal value of the cell. My IFERROR formulae were not EXPORTED as I had expected.
I note that some formulae were converted correctly in my EXPORTED spreadsheet: eg MAX, MIN, AVERAGE.
I understand that IFERROR was a function introduced recently to Excel, ie in the 2007 version. Consequently, I suspect that Numbers exports to a pre-2007 version of Excel. If so, which version?
I have found this list that shows which functions are compatable amongst various versions of Excel:
Excel Functions: Compatibility Reference (2010, 2007 & 2003). (n.d.). Retrieved from https://docs.google.com/spreadsheet/ccc?key=0AsHau4_IeCfwdG45c0VhcjBBUGNreVo2ZzN NRU1BT0E#gid=0
This list shows that, for instance, IFERROR exisits inb both Excel 2007 and Numbers-09. So why is IFERROR not exported?
Curmi, J. (n.d.). Summary of function in excel and numbers-09. Retrieved from http://curmi.com/blog/wp-content/uploads/2009/01/functions-in-excel-and-numbers- 09.pdf
Some examples of my use of ISERROR in Numbers are as follows:
=IFERROR(RANK(C47,$C47:$J47,1),"")
=IFERROR(MEDIAN(C51:C58),"")
=IFERROR($C32-C88+1,"")
I use the above function to carry out the calculation ONLY IF a cell is non-blank and contains a number.
More questions
What are the rules that Numbers uses to convert to Excel?
Is Numbers converting to the 2003 version of Excel? ... or an earlier version? ... which version?
Why desn't Numbers advise me there were conversion errors or simplifications made?
eg: "Cell A33 Function IFERROR was exported to the cell value for Excel"
Is there a preference that I can select which version of Excel that Numbers will export to?
In the meantime, I must abandon Numbers and use NeoOffice!Thanks,
I applied your suggested ISERROR transformation to examples such as:
=IFERROR(RANK(C47,$C47:$J47,1),"")
=IFERROR(MEDIAN(C51:C58),"")
=IFERROR($C32-C88+1,"")
However, a caution for young players....
Certainly, the ISERROR function exports to .xls. However, it behaves differently in NeoOffice.
Items 1 and 2 function identically in the case of say, ranking a row in which some cells are blanks.
Item 3, when translated using ISERROR to =IF(ISERROR(C32-C88+1),"", C32-C88+1), results in "" (ie error is raised) in Numbers but yields figure 0 in NeoOffice when there is a blank in either of the cells.
I recall from programming school in the mid-1970s that using GOTO statements and On Error branch statements were not admissible as routine programming steps. In fact, we received an automatic fail grade if we used a GOTO or GOTO like construction. So, I have found a more programmatically elegant way to solve my problem: eg:
=IF(C88="","",C32-C88+1)
Curiously, earlier I found/suspect this does not work equivalently in Numbers and NeoOffice:
=IF(ISBLANK(C88),"",C32-C88+1)
When you try using ISBLANK you always get an intuitively unexpected result because ISBLANK ONLY gives TRUE when there is absolutely nothing in a cell. A Formula reference in the cell, even if the function result yields "", gives FALSE... because, according to the definition of ISBLANK the cell contains a formula.
As I tell my students, ALWAYS lookup the HELP on any function you use. ALWAYS test the function to see how it performs!.... and lesson 3: Always test your spreadsheet on different systems.... then hope!
FYI:
Here's a link to my Spreadsheet (Neoffice .xls) and a video explaining its use.
Team Contribution: Introduction (Prototype). (2013). Retrieved from http://www.youtube.com/watch?v=bj87FGLoplk&feature=youtube_gdata_player
I don't guaranteee this link for ever! ... and I continue to "tweak" it
https://www.dropbox.com/s/1jz7gzksejnbqo1/Team%20Contribution.xls -
Values from a jsp page are null in Action Class
hi, i am working on an application...i have a jsp page with several inputs (type=text) and when a submit the form to to my action class all values received are null.
Here is a part of code:
the jsp file: letter.jsp
<form target="_self" action="/Test/editLetter.do" name="letterTF">
<table>
<tbody>
<tr>
<th>
No of objects
</th>
<th>
Weight
</th>
<th>
Description
</th>
</tr>
<tr>
<td>
Package
<input name="package" id="package" type="checkbox">
</td>
<td>
<input name="package_No" type="text" value="<%=currentBean.getPackageNo() %>"> <%-- from session...have to edit some date from a data base--%>
</td>
<td>
<input name="package_weight" type="text" value="<%=currentBean.geWeight()%>">
</td>
<td>
<input name="description" type="text" value="<%=currentBean.Description()%>"
</td>
</tr>
<tr>
..................................................... <%-- It's a big form --%>
</tr>
<tr>
<input type="submit" name="send" value="Send">
</tr>
</tbody>
</table>
</form>
struts-config.xml:
<form-bean
name="letterTF"
type="Test.LetterForm">
</form-bean>
<action path="/editLetter"
type="Test.LetterAction"
name="scrisoareTF"
input="/letter.jsp"
scope="request"
validate="false">
<forward name="success" path="/index_orders.jsp"/>
</action>
The ActionForm class:
public class LetterForm extends ActionForm{
private String package;
private String package_No;
private String package_weight;
public void setPackage(String package){
this.package = package
public String getPackage(){
return package;
The action class:
public class LetterAction extends Action{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception{
String package;
String package_No;
String package_weight;
LetterForm letterTF = (LetterForm) form;
package = letterTF.getPackage();
package_No = letterTF.getPackageNo()
package_weight = letterTF.getPackageWeight();
System.out.println("Package: "+package);//it will print Package: null
System.out.println("Weight: "+weight);//it will print Weight: null
System.out.println("Description "+description) //it will print Description: null
As I observed its not making the set methods from LetterForm.java
I am dealing with this bug for a couple of days an i didn't managed to break it. If anyone has an idea would he be so kind to share it with me.
Thanks in advanced,
DavidBasically your form beans are the place holders or containers for your jsp attributes. It has to be mapped in such a way that when the form is submitted the user entered values get populated on to your form bean.
For Eg:
JSP
<html:form action="accountSearchResults.do">
<html:text property="myName" size="15"/>
//USE ONLY STRUTS TAGS IN JSP's. U CAN REFER TO
//http://struts.apache.org/1.x/struts-taglib/tlddoc/index.html
//THE PROPERTY NAME "myName" SHOULD BE DEFINED IN
//YOUR FORMBEAN WITH getMyName AND setMyName
//METHODS DEFINED
</html:form>
struts-config.xml
<form-beans>
<form-bean name="addEditAccount" type="org.apache.struts.validator.LazyValidatorForm">
<form-property name="myName" type="java.lang.String">
</form-property>
</form-bean>
</form-beans>
<action-mappings>
<action path="/accountSearchResults" type="com.zzz.AccountSearchResultAction" name="addEditAccount" scope="request">
<forward name="success" path="NextPage.jsp">
</forward>
</action>
</action-mappings>
Action Class
Since we have defined the form bean as a lazyvalidator instance you can use:
PropertyUtils.copyProperties(targetBean, form);to fetch the values entered by the user. Try to use struts tags in your jsp's and map the properties to your form bean variables. Hope that helps.
SirG -
Values from a jsp page are null in an Action class
hi, i am working on an application...i have a jsp page with several inputs (type=text) and when a submit the form to to my action class all values received are null.
Here is a part of code:
the jsp file: letter.jsp
<form target="_self" action="/Test/editLetter.do" name="letterTF">
<table>
<tbody>
<tr>
<th>
No of objects
</th>
<th>
Weight
</th>
<th>
Description
</th>
</tr>
<tr>
<td>
Package
<input name="package" id="package" type="checkbox">
</td>
<td>
<input name="package_No" type="text" value="<%=currentBean.getPackageNo() %>"> <%-- from session...have to edit some date from a data base--%>
</td>
<td>
<input name="package_weight" type="text" value="<%=currentBean.geWeight()%>">
</td>
<td>
<input name="description" type="text" value="<%=currentBean.Description()%>"
</td></tr>
<tr>
..................................................... <%-- It's a big form --%>
</tr>
<tr>
<input type="submit" name="send" value="Send">
</tr>
</tbody>
</table>
</form>
struts-config.xml:
<form-bean
name="letterTF"
type="Test.LetterForm">
</form-bean>
<action path="/editLetter"
type="Test.LetterAction"
name="scrisoareTF"
input="/letter.jsp"
scope="request"
validate="false">
<forward name="success" path="/index_orders.jsp"/>
</action>
The ActionForm class:
public class LetterForm extends ActionForm{
private String package;
private String package_No;
private String package_weight;
public void setPackage(String package){
this.package = package
public String getPackage(){
return package;
The action class:
public class LetterAction extends Action{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception{
String package;
String package_No;
String package_weight;
LetterForm letterTF = (LetterForm) form;
package = letterTF.getPackage();
package_No = letterTF.getPackageNo()
package_weight = letterTF.getPackageWeight();
System.out.println("Package: "+package);//it will print Package: null
System.out.println("Weight: "+weight);//it will print Weight: null
System.out.println("Description "+description) //it will print Description: null
As I observed its not making the set methods from LetterForm.java
I am dealing with this bug for a couple of days an i didn't managed to break it. If anyone has an idea or a solution would he be so kind to share it with me
Thanks in advance,
DavidBasically your form beans are the place holders or containers for your jsp attributes. It has to be mapped in such a way that when the form is submitted the user entered values get populated on to your form bean.
For Eg:
JSP
<html:form action="accountSearchResults.do">
<html:text property="myName" size="15"/>
//USE ONLY STRUTS TAGS IN JSP's. U CAN REFER TO
//http://struts.apache.org/1.x/struts-taglib/tlddoc/index.html
//THE PROPERTY NAME "myName" SHOULD BE DEFINED IN
//YOUR FORMBEAN WITH getMyName AND setMyName
//METHODS DEFINED
</html:form>
struts-config.xml
<form-beans>
<form-bean name="addEditAccount" type="org.apache.struts.validator.LazyValidatorForm">
<form-property name="myName" type="java.lang.String">
</form-property>
</form-bean>
</form-beans>
<action-mappings>
<action path="/accountSearchResults" type="com.zzz.AccountSearchResultAction" name="addEditAccount" scope="request">
<forward name="success" path="NextPage.jsp">
</forward>
</action>
</action-mappings>
Action Class
Since we have defined the form bean as a lazyvalidator instance you can use:
PropertyUtils.copyProperties(targetBean, form);to fetch the values entered by the user. Try to use struts tags in your jsp's and map the properties to your form bean variables. Hope that helps.
SirG -
I purchased Photoshop Elements and Premiere package today. I have been trying to download them but it tells me the serial numbers are inapplicable. I am using a mac book pro and I have just noticed that the platform in my receipt says 'win" . I don't remember being given an option for mac or windows when purchasing. what can i do now?
Return, cancel, or exchange an Adobe order
-
I am unable to dial India toll free numbers from my iphone, these numbers are like 1800-***-1515. There is nothing as dial assist in Ios7.1.1 which i can disable and dial in india toll free numbers.Please respond if anyone has any solution
Check this post, the dial assist is part of the iOS 7.1, according to page 49 of the iphone_user_guide
Make calls to your contacts and favorites while traveling abroad. (GSM) Go to Settings > Phone and turn on Dial Assist. Dial Assist automatically adds the prefix or country code for calls to the U.S.
This user had a similar problem and solved it by switching off the dial assist feature in Settings/Phone/Dial Assist
Re: How to save toll free no starts with 1800? -
I have a problem.
I bought Pages and Numbers for my iMac and so far everything was OK.
Suddenly i have a problem with connection to iCloud.
Dokuments created on iMac in Pages or Numbers are not transfered to iCloud. Not uploaded to iCloud. There is a sign (small shape of iCloud), that they are waiting to be uploaded to iCloud.
I think the iCloud is OK.
i can see and manage documents in iCloud. i can create them on iPad and see them and delete them in iCloud.
But not on iMac.
i dont know what has happened and I am not abble to find the solution. It was OK till some days ago….I have a similar problem! Everything stopped working after upgrading to Mac OS 10.8.4 through the App Store. Help!
-
Using MISSING FIELD VALUES ARE NULL for external table
I want to place a null for values missing in the sub_account field. Here is my external table:
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
create table ext_INCOMING_ORDERS_table (
Account varchar(5),
Sub_Account varchar(1),
Override_Code varchar(1),
Nomenclature varchar(28),
chg_nbr varchar(3),
quantity integer,
U_I varchar(5),
zipcode varchar(5),
type_reject varchar(2)
organization external
type oracle_loader
default directory user_dir
access parameters
records delimited by newline
missing field values are null
badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
fields
Account(1:5) char(5),
Sub_Account(7:7) char(1),
Override_Code(10:10) char(1),
Nomenclature(11:38) char(28),
chg_nbr(40:42) char(3),
quantity(44:48) integer external,
U_I(50:54) char(5),
zipcode(56:60) char(5),
type_reject(61:62) char(2)
location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
reject limit unlimited;
How can I place the MISSING FIELD VALUES ARE NULL for missing values for the sub_account?made the change I received this error:
SQL> select * from ext_INCOMING_ORDERS_table;
select * from ext_INCOMING_ORDERS_table
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "no": expecting one of: "comma, date_format,
defaultif, enclosed, ltrim, lrtrim, ldrtrim, notrim, nullif, optionally, ),
rtrim, terminated"
KUP-01007: at line 7 column 26
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
create table ext_INCOMING_ORDERS_table (
Account varchar(5),
Sub_Account varchar(1),
Override_Code varchar(1),
Nomenclature varchar(28),
chg_nbr varchar(3),
quantity integer,
U_I varchar(5),
zipcode varchar(5),
type_reject varchar(2)
organization external
type oracle_loader
default directory user_dir
access parameters
records delimited by newline
badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
fields
Account(1:5) char(5),
Sub_Account(7:7) char(1) NO PRESERVE BLANKS,
Override_Code(10:10) char(1),
Nomenclature(11:38) char(28),
chg_nbr(40:42) char(3),
quantity(44:48) integer external,
U_I(50:54) char(5),
zipcode(56:60) char(5),
type_reject(61:62) char(2)
location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
reject limit unlimited; -
The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!
You must go in the labview option menu, you can select 'use the local
separator' in the front side submenu (LV6i).
If you use the "From Exponential/Fract/Eng" vi, you are able to select this
opton (with a boolean) without changing the labview parameters.
(sorry for my english)
Lange Jerome
FRANCE
"Nina" a ecrit dans le message news:
[email protected]..
> I would like to read a text file in which the decimal numbers are
> using dots instead of commas. Is there a way of converting this in
> labVIEW, or how can I get the program to enterpret the figures in the
> correct way?
>
> The program doest enterpret my figures from the text file in the
> correct way since the numbers contain dots instea
d of commas. Is there
> a way to fix this in labVIEW, or do I have to change the files before
> reading them in the program? Thanks beforehend! -
In AE02, Asset numbers are missing in production environment.
Dear All,
Some asset numbers are missing in production environment. Yours suggestions are more helpful.
Regards,
Anishwa.Hi,
created Asset number ranges-AS08 -
How can I change a string to a numeric when the numbers are separated by blank spaces?
I would like to change a list of numbers in string to a list of number in numeric like in the attached vi. Unfortunately, the numbers are not separated by commas but by blank spaces. Which character can I use for the blank space?
Ninskaya
Attachments:
readcommdelim.vi 19 KBWhy don't you just use the Spreadsheet String to Array function instead. You can specify any delimiter you want. See the attached picture.
Attachments:
string_to_array.jpg 6 KB -
Phone numbers are no longer showing up on my email and text as links to call
Phone numbers are no longer showing up in my messages and on my emails as links so that I can call the number directly.
I too am having the same problem, and use the *228 then killing all my open apps solution to bring my numbers back to the correct format. However, as just a one time fix, I keep on getting the same problem again after a few weeks, and last week, after a few days of doing the *228 fix. Does anyone know what is causing this problem on Verizon iPhones? As a point of information, I was previously on AT&T with my iPhones until my wife transferrred me over to Verizon (on her business account because she wanted to surprise me with a new iPhone 4S).
-
Serial numbers are not copied to new storage location for 311 mvt type
Hi Guys
I have 10 stock of material A in 001 Storage location ,which all the quantity is serial number managed
I have transfered 10 quantity of Material A to 002 location from 001 location using 311 MIGO
But serial numbers are not copied to 002 location after transfer posting
001 and 002 are both are WM linked and belongs to same plant
Can any body suggest good solution,how it can be doneHi
1.Check in material master whether serial number management is active in Plant data/stor Tab and serial number profile is assigned
2. Check while doing MIGO once if u enter the material and transfer qty you are getting the serial number tab or not
3. If everything is ok, then after posting the document check the serial number status in IQ09, check the stock type and the storgae location in the serdata tab
Regards
Amuthan M -
Post Author: SRK
CA Forum: General
Hi ,
I am using the following formula to display the alternate white and silver background color in every reocrd but this does not work because the records numbers are not in sequence for ex : its showing 54,56,58 which is not allowing the alternate color, Any advice.Thanks if remainder(recordnumber,2) =0 then crNoColorelse Color (218,218,218);Post Author: keiffer6
CA Forum: General
Could you simply add a running total for each record. That will give you the 1 2 3 4 5 6 ....
Then in the details section color formula, use something like this:
if RunningTotal Mod 2 = 0 then crSilver Else crNoColor.
HTH
Maybe you are looking for
-
How to get back lost pictures, HELP!
Okay, so I was trying to get my photos to the "Downloads folder to use them on editing sites, and I accidentally exited off iPhoto, and all my pics are gone.. How can I recover them?
-
BAPI project systems actuals versus planned
Hello, I am looking for a BAPI/Idoc for displaying planned versus actuals similar to report s_alr_87013532. I have looked everywhere but cannot find anything. Also checked in OPENPS if there where any BAPI's for getting the information, but also not.
-
Switch from one Xlet to another
I am doing a test program, it should be able to switch between services containing different Xlet applications. for example, my first Xlet is in service 1, it wants to switch to second Xlet in service 2. My questions are: 1. can suggest which classes
-
hi i'm new so be easy on me please... i am trying to figure out how to add vertical and horizontal scroll bars to my jlabel. I am using sun one studio 5 on this project which allows me to manually place vertical and horizontal toolbars but when i do
-
I cant get ECWID to work on my mobile devices, it only seems to use the desktop site rather that the Tablet or iPhone? Can anyone help me?