Error ora-01722 fields varchar concatinate two
I installed a program that ganerate and run this query:Select lk.value_ as displayname, sequence, ltl.elementid, ltl, localelanguages he's regionalizationlibraryelements regionalizationlibraryid, lk localekeys where ltl.regionalizationlibraryid = 1 AND ll.usage = 1 AND lk.localelanguageid = ll.localelanguageid AND lk.localevariantid = 1 AND ll.localelanguageid = ltl.elementid and (ll.language + '_' + ll.country) = lk.keyid AND ltl.isdeleted = 0
Oracle error ora-01722 (invalid number) return devoted (ll.language + '_' + ll.country) = lk.keyid.
All types of the fields ll.language, ll.country and lk.keyid varchar2 data. In he's table (localelanguages) is a record containing 'fr' in the field 'language' and 'US' to the 'country '. LK. KeyId in the 'local' strored table values as 'en_US', 'en_AU' and etc.
Please, help me!
You can review full error cause recommended action
[http://www.errorpro.com/oracleerrors/oraerror.php?level1=Oracle&send=Send&ecode=ORA-01722&Submit=Search]
[http://www.oracle.errorpro.com | http://www.oracle.errorpro.com/]
Tags: Database
Similar Questions
-
Error: ORA-01722: invalid number
Hello
Can some please tell me what I'm doing wrong when I try to make a difference?
Since the format is the same I use this query
Select b1 - b2 of TMP_1;Error: ORA-01722: invalid number
objective:--create table CREATE TABLE TMP_1 ( B1 VARCHAR2(8 BYTE), B2 VARCHAR2(8 BYTE) ) / --insert INSERT INTO TMP_1 (B1, B2) VALUES ('00:02:54', '00:02:10'); INSERT INTO TMP_1 (B1, B2) VALUES ('00:05:47', '00:03:56'); INSERT INTO TMP_1 (B1, B2) VALUES ('00:12:49', '00:02:37'); INSERT INTO TMP_1 (B1, B2) VALUES ('00:49:33', '00:02:09'); INSERT INTO TMP_1 (B1, B2) VALUES ('00:06:34', '00:02:39'); INSERT INTO TMP_1 (B1, B2) VALUES ('00:02:45', '00:01:41'); INSERT INTO TMP_1 (B1, B2) VALUES ('00:01:22', '00:00:22'); COMMIT;
Need to get the difference in the same format as thecolumns example: 00:02:54
Please provide examples of data, it is very useful. Here's one way:
SQL> select b1, b2, 2 b1 - (to_date(to_char(sysdate, 'dd-mon-yyyy')||' '||b2,'dd-mon-yyyy hh24:mi:ss') - trunc(sysdate)) b3 3 from tmp_1; B1 B2 B3 -------------------- -------- -------------------- 03-dec-2012 20:13:33 00:02:10 03-dec-2012 20:11:23 03-dec-2012 18:24:24 00:03:56 03-dec-2012 18:20:28 03-dec-2012 21:48:33 00:02:37 03-dec-2012 21:45:56 03-dec-2012 15:50:09 00:02:09 03-dec-2012 15:48:00 03-dec-2012 14:06:24 00:02:39 03-dec-2012 14:03:45 03-dec-2012 21:47:15 00:01:41 03-dec-2012 21:45:34
John
-
sdo_util code error ORA-01722: invalid number in Oracle 11 g R2
Dear everyone,
Greetings.
Hello. As mentioned in the title, I encountered a strange problem when I was trying to extrude 2D to 3D objects. The error code says ORA-01722: invalid number. Then, to eliminate the possibility that the code would be bad, I took the code example for the ORACLE document on sdo_util.extrude
http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e11830/sdo_util.htm#SPATL1230
the same error appeared. However, I tried the same code through the SQLDeveloper under Linux (the 11 g R2 where) to do the same thing in my database in windows server 2008 where 11 g R1 has been installed. Works very well.
Y at - it a particular configuration I need to do or that I did wrong. Any knows, please help. Thank you.
JunHi, -.
Please use without setting for output 11.2.0.1.0 'FALSE':SELECT SDO_UTIL. EXTRUDE)
SDO_GEOMETRY)
2003,
NULL,
NULL,
SDO_ELEM_INFO_ARRAY (1,1003,1),
SDO_ORDINATE_ARRAY (5, 1,8,1,8,6,5,7,5,1));
SDO_NUMBER_ARRAY (0,0,0,0,0),
SDO_NUMBER_ARRAY (5,10,10,5,5),
0.005) twice;In 11.1.0.7 release, you must use the parameter 'FALSE ':
SELECT SDO_UTIL. EXTRUDE)
SDO_GEOMETRY)
2003,
NULL,
NULL,
SDO_ELEM_INFO_ARRAY (1,1003,1),
SDO_ORDINATE_ARRAY (5, 1,8,1,8,6,5,7,5,1));
SDO_NUMBER_ARRAY (0,0,0,0,0),
SDO_NUMBER_ARRAY (5,10,10,5,5),
'FALSE. '
0.005) twice;We have fixed this confusion for future releases so that the two interfaces can be used
and the 'FALSE' parameter is ignored.Best regards
Baris -
Rep-1401 error, ora-01722
Hello
In report 6i, is to show the error 'Rep-1401, ora-01722' in the formula of CF_1FORMULA0005 below.
And in the formula of the query "select count (*) into ra_customer_trx_all c.
where nvl (to_number (interface_header_attribute1), 0) =: order_number
and nvl(interface_header_attribute3,'') =: invoice_number; »
Here the: order_number is the data type of number and interface_header_attribute1 is the Char data type.
may be problem existing in this query. Then please suggest a solution to solve the problem. I can rewrite the query?
--------------------------------------------------------------------------------------------
function CF_1FORMULA0005 returns the number is
x number: = 0;
c number;
Start
Select count (*) in the ra_customer_trx_all c
where nvl (to_number (interface_header_attribute1), 0) =: order_number
and nvl(interface_header_attribute3,'') =: invoice_number;
If c = 1 then
Select nvl(doc_sequence_value,0) x ra_customer_trx_all where to_number (nvl(interface_header_attribute1,0)) =: order_number
and nvl (interface_header_attribute3,' ') =: invoice_number;
on the other
x: = 0;
end if;
Nvl (x, 0) return;
end;I think the problem is that
to_number(interface_header_attribute1)
fails when there are no numeric values in interface_header_attribute1.
You can write a function stored in the database to convert float values to multiple values.
These function must intercept conversion errors and return a default value appropriate (or null).You can then use your own function place buildin to_number function.
Published by: hm the 05.09.2011 01:25
-
Select list LOV (error ORA-01722: invalid number)
Hello
I use this procedure to insert data into a table through a submit after processes.
I kept getting this error during the presentation of the page.CREATE OR REPLACE PROCEDURE PR_INS_TMP_STUDENTS( v_tmp_stu_id_in IN NUMBER ) IS BEGIN INSERT INTO TMP_STUDENTS ( stu_id, stu_name_last, stu_name_first, stu_name_middle, stu_name_suffix, stu_name_prefer_last, stu_name_prefer_first, sch_id ) VALUES ( v_tmp_stu_id_out, V('p50100_stu_name_last'), V('p50100_stu_name_first'), V('p50100_stu_name_middle'), V('p50100_stu_name_suffix'), V('p50100_stu_name_prefer_last'), V('p50100_stu_name_prefer_first'), V('p50100_sch_id') ); END;
I go back to sch_id which is a list of number type selection (3.0). The LOV selection list has the following attributes:ORA-01722: invalid number Error Insert Failed!
Here's the code for the LOV:Display extra value: No Dynamic Translation: No Number of Columns: 1 Display Null: Yes Null Display Value: blank Null Return Value: blank
I don't know why I kept ORA-01722: invalid number during the presentation of the page. Everyone ran through this issue?SELECT distinct(site_id || ' - ' || initcap(lower(site_name))) site_desc, site_id ret_val FROM sa.SITE_DEMOGRAPHICS@sis order by 2
Hello
First of all, you should also use nv ('itemname') for numeric values-, make sure you use v() instead of V() for others.
If the p50100_sch_id can be null, the return value will be "null %" - which could be the cause of the error.
In such cases, I tend to do something like -1 of the value zero, then do a test for that, in the code - if the value is - 1, I replace NULL
Andy
-
ORA-01722 invalid error number
Hi all
I am trying to execute the query, we give the below error: ORA-01722 invalid number
Create Table
CREATE TABLE test_table
(NUMBER (12.0) ID,)
STORE_ID NUMBER (10.0).
SUPPLIER_ID VARCHAR2 (128 BYTE),
STATUS NUMBER (4,0).
VARCHAR2 (2000 BYTE) COMMENTS
)
Insert into values table_test (81,1111, '10021', 2, null);
Insert into values table_test (82,2222, '10021', 2, null);
Insert into values table_test (83,1444, '10021', 2, null);
Insert into values table_test (84,1211, '10021', 2, null);
Insert into values table_test (85,1311, '61321', 2, null);
commit;
Run the query
Select * from test_table where store_id in (: store);
Variable binding give: store values such as 1111, 2222, 2233
If: store variable binding is given a unique value such as 1111, it works very well.
With multiple values his throw error ORA-01722 number not valid
Thanks in advance
When you assign
: store: = '1111, 2222, 2233';
You assingn it a SINGLE string. And store_id in ('1111, 2222, 2233') is not the same as store_id in (1111, 2222, 2233). The latter seeks store_id = 1111 or store_id = 2222 or store_id = 3333 while the former only looks store_id = '1111, 2222, 2233'. NUMBER of being store_id, Oracle tries to convert '1111, 2222, 2233' string and raises obviously ORA-01722 invalid number. Use the collection or:
Select * from test_table where «,» | : store | ',' like '%', | store_id | ',%';
However, keep in mind the foregoing will not use index if value is indexed.
SY.
-
ORA-01722: invalid number error
Hello Experts,
I'm having a problem downloading a text file.
It works ok for some files but for some files I get the following error
ORA-01722: invalid number
Anyone know what could be the reason of this please. Just tell me what you need more details.
Thank you
KevinHello
OK now the image grows.
So, you dynamically create the insert statement, replace the comma with nothing and then insert.
The system from which you found the data file is this number of column type sales NET in this system or even stores characters.
Assuming that the data type is a generic system remote here is the scenarios where it will failselect to_number(replace('23 ,380.00 ',',','') ) from dual -- not ok observe before comma select to_number(replace('a23,380.00 ',',','') ) from dual -- not ok select to_number(replace('23,380. 00 ',',','') ) from dual -- not ok observe space after decinal
My Suggestion,
take the file upload in a temporary table using sqlldr.
Next moment, you have the incorrect records.
Keep an eye on them.
In addition, the use of external tables is an option where you can log records failed.Kind regards
Bobin -
ORA-01722: error number invalid coming in Oracle 10 g.
Hello
We get the error "ORA-01722: invalid number" when opening a cursor using the CURSOR for LOOP.
This error started only after we migrated to Oracle 10 g to Oracle 9i. Earlier, the same code used to work properly. And also on Oracle 10 g, this is not not the case every time. Sometimes, it gives error while sometimes it works.
Does anyone know about any such bug in Oracle 10 g. Our cursor is a cursor parameterized accepting a VARCHAR2 parameter and the value that we have to it is also character.
Our Oracle 10 g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production database and runs on the UNIX server.And also on Oracle 10 g, this is not not the case every time. Sometimes, it gives error while sometimes it works.
This is usually due to
(a) environment settings that differ from one session to the next
(b) or, more often, dataThe error means that Oracle expects a number and that it is unable to get an entry (data or SQL or bind variable) number provided. I agree with William that she looks a lot like implicit conversion TO_NUMBER() failure.
Why not add a debugging code exception handler? When this exception occurs, the dump of the PL/SQL and call stack values of all variables and parameters of a table/record of debugging (using a standalone transaction).
-
ORA-01722: invalid number in SQL Loader
Hi all
CREATE TABLE SAMPL_TABLE
(
ITEM_CATEGORY VARCHAR2 (30 BYTES),
ITEM_NO VARCHAR2 (240 BYTES),
ITEM_DESCRIPTION VARCHAR2 (240 BYTES),
CLIENT_NAME VARCHAR2 (240 BYTES),
CUSTOMER_NO VARCHAR2 (240 BYTES),
VALID_AMOUNT_MONTH1 NUMBER,
VALID_UNITS_MONTH1 NUMBER,
VALID_BUDGET_AMOUNT_MONTH1 NUMBER,
VALID_BUDGET_UNITS_MONTH1 NUMBER,
ATTRIBUTE1 VARCHAR2 (240 BYTES),
ATTRIBUT2 VARCHAR2 (240 BYTES),
NUMBER OF VALID_RATE
);
Control file
Options (Errors = 10000, Skip = 3)
DOWNLOAD THE DATA
INFILE ' / home/appltest/Sheet1.csv'
BADFILE "sample.bad."
DISCARDFILE 'sample.dsc '.
REPLACE
IN THE TABLE sampl_table
fields completed by «,»
surrounded of possibly "" "
trailing nullcols
(
client_name TANK NULLIF client_name = BLANKS "RTRIM(:customer_name)."
customer_no NULLIF CHAR customer_no = BLANKS "RTRIM(:customer_no)."
item_no NULLIF TANK item_no = BLANKS "RTRIM(:item_no)."
valid_amount_month1 "to_number (: valid_amount_month1, '999,999,999.99')."
valid_units_month1 "to_number (substr (: valid_units_month1, instr(:valid_units_month1,'$') + 1), '999,999,999.99')."
valid_budget_units_month1 "to_number (: valid_budget_units_month1, '999,999,999.99')."
valid_budget_amount_month1 "to_number (trim (substr (: valid_budget_amount_month1, instr(:valid_budget_amount_month1,'$') + 1)), '999,999,999.99')."
valid_rate NULLIF CHAR valid_rate = BLANKS 'RTRIM(:valid_rate) '.
)
Sheet1.csv
Name of the cust Cust #. Article no. Item Desc Category Amount – month 1 Units - month 1 Act early Act early Budget - months 1 Budget - unit - months 1 Rate Name of the cust Cust #. Article no. Item Desc Category Amount – month 1 Units - month 1 Act early Act early Budget - months 1 Budget - unit - months 1 Rate Name of the cust Cust #. Article no. Item Desc Category Amount – month 1 Units - month 1 Act early Act early Budget - months 1 Budget - unit - months 1 Rate REYNU 1001 ABC001 ABC Renyu ABC 82 61 1 REYNU1 1028 ABC123 ABCRenyu123 ABC 295 1469 1 REYNU2 1028 ABC344 ABC Renyu 344 ABC 2270 6335 1 Get error below
Sheet 1: Rejected - error on the table SAMPL_TABLE, column VALID_RATE.
ORA-01722: invalid number
Sheet 2: Rejected - error on the table SAMPL_TABLE, column VALID_RATE.
ORA-01722: invalid number
Sheet 3: Rejected - error on the table SAMPL_TABLE, column VALID_RATE.
ORA-01722: invalid number
Sheet 1: Rejected - error on the table SAMPL_TABLE, column VALID_AMOUNT_MONTH1 .
ORA-01722: invalid number
Sheet 2: Rejected - error on the table SAMPL_TABLE, column VALID_AMOUNT_MONTH1 .
ORA-01722: invalid number
Sheet 3: Rejected - error on the table SAMPL_TABLE column VALID_AMOUNT_MONTH1
ORA-01722: invalid number
Can you help me please?
Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
Hello
No sign of setting shaped or ' $' is seen in the data, which is the reason why I guess you used the conversions in the * ctl file.
What is the problem with this symbol $ in the code?
No problem with the ' $'-what I mean is that it is not necessary.
Looking for him "$" field and exclude it from your text/number (SUBSTR) and if there is no "$" in your file, this additional training is not mandatory - why clutter up your code with unnecessary functions?
Regarding the error you get, it is related to the format mask, you provide:
Message #20:
Select to_number (substr (146, instr(146,'$') + 1), '999,999,999.99') of double
o/p: 146
Select to_number (substr (1469, instr(1469,'$') + 1), '999,999,999.99') of double
Error: ORA-01722: invalid number
1. you must use "146" (text) and no 146 (number).
2. ' 146' works because it "fits" the format mask you supplied: 999 999,999. 99. " but '1469' does not like the format mask expects one ',' as the delimiter of thousands, that is, "1 469'."
Select to_number (substr (1, 469', instr('1,469','$') + 1), '999,999,999.99') twice;
Similarly, in the #22 Post:
to_number (substr (' 752,3308', instr ('752.3308', ' $') + 1), 999, 999 999,99') of double
4 decimals are consistent with the format DP 2 mask.
Simply remove all masks of format.
-
Query SQL and Exception ORA-01722
Hello
I have a table called t_lookup that contains three columns of the argument lookup_value, Description and Lookup_Type they are all of type varchar2. If I run the query, its working fine below
SELECT *.
FROM (SELECT lookup_value
*, To_Number (Description) Dd *.
OF t_Lookup
WHERE Lookup_Type = 'CALENDAR') Tab ;
Here is the result
Lookup_value argument... DD
---------------------------------------.
January... 1
February... 2
March......................... 3
April........................... 4
May........................... 5
June.......................... 6
July........................... 7
August... 8
September... 9
October... 10
November... 11
December... 12
But when I run
SELECT *.
FROM (SELECT lookup_value
*, To_Number (Description) Dd *.
OF t_Lookup
WHERE Lookup_Type = 'CALENDAR') tab
AND Dd = 9;
then he throws exception ORA
ORA-01722: invalid number
Can someone help me on this in order to understand the cause of this problem? Oracle server that I use is "Oracle9i Release 9.2.0.8.0".
Thank youI guess it is expected that some of the descriptions will have non-numeric data, right?
Assuming that this is the case, the success or failure of the request depends on how the optimizer can choose to run your query. If it happens to run TO_NUMBER function before it filters a row with non-numeric data, you will get an error. When chasing the TO_NUMBER filtering all lines with non-numeric data, the query will be successful. Because query plans are subject to change, especially when you finally upgrade, you probably don't want just to find a SQL query that works, you will need to make sure that the query plan never changes or that the query is formulated in such a way that it will never fail.
My first thought would be to know if you really need store digital data in a field of VARCHAR2 in the first place. I guess it's a kind of generic lookup table (which causes a series of questions, what is a). Can we at least keep string, date and numbers given in separate columns?
Except, you can create your own function to PL/SQL that converts a string to a number and catches the exception?
CREATE OR REPLACE FUNCTION my_to_number( p_arg IN varchar2 ) RETURN NUMBER IS l_num NUMBER; BEGIN l_num := to_number( p_arg ); RETURN l_num; EXCEPTION WHEN others THEN RETURN NULL; END;
Who will ensure that the request is successful, regardless of the plan. Note that you probably want to catch just the error ORA-01722, not others, in your actual code - this is just a sample.
Except that, you will need to do something to strengthen stability in the query plan. A stored outline, which forces the query to use the query plan that does not generate an error.
Justin
-
ORA-01722: invalid, range of 9999999,000 to 0,0000013
Hello
I have trouble with the error invalid number. In the game of results (a few thousand lines), there is no non-numeric characters.
Export in MS Excel and looking at all the values of this column I can´t find non-digital is but notice
that the data range is between 9999999,000 and 0,0000013, I wonder if the zero´s many are indeed looking very non digital Oracle.
I admit, the number format is bad.
Now... How can I fix that?
The error for what follows is: error: ORA-01481: invalid number format model
Select 'small number' of the double where to_number (0,0000013) < 1;
Error: ORA-01722: invalid number
Select 'large number' of the double where to_number (9999999,0) > 1
Select 'large number' of the double where to_number (9999999,000) > 1
The problem is the comma instead of the time, but I can't find a format of reasonable number that matches
my maximum and minimum values.
Example:
SELECT to_number (0.0000013, ' 9999999999, ' NLS_NUMERIC_CHARACTERS = ",". ") OF THE DOUBLE
Can someone help me with the number formatting?
Here you go:
@ John @ascheffer, I message you my paypal account to bet, you have lost
http://Gennick.com/database/subquery-madness
solution:
Select * from
(SELECT MRLS
OF V_MRL_NG
) where CASE WHEN MRLS do not IS NOT NULL AND MRL <> ' > NWG' MRLS AND <> '-' THEN TO_NUMBER (REPLACE (REPLACE (MRLS,' ', "), ', '.'")) END > 1.0
-
ORA-01722: invalid number
I get the error: ORA-01722: invalid number during the execution of the SQL statement.
SELECT
TO_NUMBER (TO_CHAR ((TRUNC(:P_DATE1,'MM')-1), "MM")) LAST_MON
OF THE DOUBLE
Sanjay
I'll guess that you write an APEX application.
In the APEX, the variables are always strings. If you want to interpret as dates, you should pack them with a call TO_DATE and a format mask. Assuming that you stated your control APEX of date in MM/DD/YYYY format, it would mean that the SQL, you would need is
SELECT TO_NUMBER(TO_CHAR((TRUNC( TO_DATE(:P_DATE1, 'MM/DD/YYYY'),'MM')-1),'MM')) LAST_MON FROM DUAL
Of course, if you're just trying to extract the month to date and subtract 1, I just have
SELECT extract( month from to_date( :p_date1, 'MM/DD/YYYY') ) - 1 FROM dual
Justin
-
Hello
I get an error ora-01722 "invalid number" during execution of this query,
replacement tank (3) in the source and dest tables = _nodeINSERT INTO STG_ALTERNATE_NODE SELECT SN.STG_NODE_INST_ID, AN.ADABAS_ISN, AN.DPS_MU_SEQ, AN.ALTERNATE_NODE FROM M07_ALTERNATE_NODE AN,STG_NODE_INST SN WHERE AN.ADABAS_ISN=SN.ADABAS_ISN;
bad order, must be:
INSERT INTO STG_ALTERNATE_NODE SELECT AN.ADABAS_ISN, AN.DPS_MU_SEQ, AN.ALTERNATE_NODE, SN.STG_NODE_INST_ID FROM M07_ALTERNATE_NODE AN,STG_NODE_INST SN WHERE AN.ADABAS_ISN=SN.ADABAS_ISN;
-
multi select sql problem - ORA-01722: invalid number
Hello
I have a multi select list and when I select only one item it works perfectly, but if I select several items, it gives an error. The sql statement is as below:
SELECT * VIEW WHERE INSTR (': ' |: P1_ID |': ',' :'||) ID: ': ') > 0
and I get the following error:
ORA-01722: invalid number
Here is some information on the display:
Name of the column
Data Type (NUMBER)
Nullable (No.)Hello
I just try this in my own sandbox application to sand...
Create report area with
SELECT t_id, t_code FROM t_table WHERE INSTR(':'||TO_CHAR(:P1_ID)||':', ':'||TO_CHAR(t_id)||':') > 0
as the source.
Create multiple selection list
SELECT t_code, t_id FROM t_table
as the source.
Create a button with application of GO, subordinate the region report on request = GB.
Now, I run the page, select a value in the list, click on go - region displays with the correct result.
Now I run the page, select several values in the list, click on go - region displays with good results.
What is your scenario? If so, it works for me...
See you soon
Ben
http://www.munkyben.WordPress.com
Don't forget to mark the answers useful or correct ;) -
Please help: instruction box - ORA-01722: invalid number error
Hi all
I am trying to use the Case statement to recode the status canceled in two groups
"Reject" If the difference between the date of the first and the last date is less than 29 and
'Accept' if the difference between the date of the first and the last date is greater than 30
Here's my data 'test'
STATUS FIRST_DATE LAST_DATE
Transfer / / 10/08/2011-10/09/2011
Mover 10/08/2011-15/09/2011
Cancel the 16/09/2011 10/08/2011
Cancel the 10/08/2011 5/09/2011
Here's the syntax
Select a.*,
(CASE WHEN a.STATUS = 'Cancel' CAN (round(a.LAST_DATE-a.FIRST_DATE))
0 OTHERWISE
END CAN_DAYS),
(BOX WHEN "CAN_DAYS" > 29 THEN "reject"
WHEN "CAN_DAYS" < 30 THEN "accept."
Reject_Accept END)
try one
The first CASE statement works very well and gives me this
STATUS FIRST_DATE LAST_DATE CAN_DAYS
Transfer 0 10/08/2011-10/09/2011
Mover 0 10/08/2011-15/09/2011
Cancel the 37 16/09/2011 10/08/2011
Cancel the 26/10/08/2011 5/09/2011
but the LATTER product ORA-01722: invalid number error. It's something to do with the type of data CAN_DAYS, Oracle does not see in the Numeric form I think.
I want to see result
STATUS FIRST_DATE LAST_DATE CAN_DAYS Reject_Accept
Transfer 0 10/08/2011-10/09/2011
Mover 0 10/08/2011-15/09/2011
Accept to cancel 37 10/08/2011-16/09/2011
Refuse to cancel the 26/10/08/2011 5/09/2011
Could someone please help me fix the syntax?
Thank you in advance,Hello
The error is due to the fact that you are trying to compare "CAN_DAYS", which cannot be regarded as a number, a number.
You can try this option for your results:select A.STATUS, A.FIRST_DATE, A.LAST_DATE,case when a.status ='Cancel' then round(a.last_date - a.first_date) else 0 end as can_days, case when (a.status ='Cancel' and round(a.last_date - a.first_date) > 29) then 'Reject' when (a.status ='Cancel' and round(a.last_date - a.first_date)< 30) then 'Accept' else null end as Accept_Reject from test a
Maybe you are looking for
-
With Firefox browser open, a message @ bottom right a message promoting a security for 1 free month using a credit card. then it would be $50.00 for a year. I hope that Fire Fox, so I registered. It did not work well, it's why I ask... is this your p
-
Everyone with a Mac seems not ultimately meet permissions errors?
I'm starting to think that it is fundamental to have a Mac that you will eventually encounter a permissions error. For some reason, associated or not, today my computer acted irregularly. Visual chrome elements are off the screen, I do not have permi
-
AutoShape off putting featured or through simplification in microwave Office
Hello. I found a video on the workflow, which mentions that a table of vias between two metal layers in a the RFIC design could be automatically simplified to a simple rectangle. So I looked up the HelpFile, google and all that I could find was a sma
-
How can I delete the emails saved is more necessary in my HP Officejet Pro
How can I delete the emails saved is more necessary in my HP Officejet Pro storage
-
start developing applications playbook
Hello friends, I want to start the development of the blackberry playbook. According to my research, I get acquainted with Adobe Flash sdk. the help that we can begin the development of playbook for blacberry. for this we need html and java script. I