Error 2618 Invalid Calculation Division by Zero - response (2) by tclear
WHERE F.STORE_NBR = S.STORE_NBR AND F.ITEM_NBR = S.ITEM_NBR AND F.ITEM_NBR = P.ITEM_NBR AND F.ITEM_NBR = I.ITEM_NBR AND F.ORIG_VAL>0 AND F.SUB_VAL >0 AND F.ORIG_VAL <> REC_TTL -- AND...
View ArticleError 2618 Invalid Calculation Division by Zero - response (3) by...
I think we need to look at complete SQL Statement and it's logic. Seems this filter is causing 'return zero' somehow.
View ArticleStoring result set as a variable in a procedure - forum topic by akhilkotak
Hi, I am trying to pass a result set of a query into a procedure. I only need one column from a table but the column will have multiple rows. I have tried within the procedure to have : SELECT...
View ArticleError 2618 Invalid Calculation Division by Zero - response (4) by tclear
Here is the actual SQL: SELECT I.REPL_GROUP_NBR AS DMDUNIT ,'-' AS DMDGROUP , 'US_WMT_ST_'||SUBSTR(TRIM(CAST(100000+TRIM(F.STORE_NBR) AS INTEGER)),2,5) AS LOC , 'LEW_POS' AS MODEL , 'DMDWK' AS DMDCAL...
View ArticleError 2618 Invalid Calculation Division by Zero - response (5) by...
Let me look at this SQL, meanwhile can you try following sql and let me know if still getting same error? SELECT I.REPL_GROUP_NBR AS DMDUNIT ,'-' AS DMDGROUP ,...
View ArticleStoring result set as a variable in a procedure - response (1) by...
A variable can only store one value at a time, not multiple values. You can consider using cursor in SP to get recordset and pass it thru loop one by one.
View ArticleError 2618 Invalid Calculation Division by Zero - response (6) by tclear
That did it. I thought I got all NULLIFZERO entered. Thanks for your help and quick response.
View ArticleError 2618 Invalid Calculation Division by Zero - response (7) by...
Did it work fine for you?
View ArticleError 2618 Invalid Calculation Division by Zero - response (8) by tclear
yes it did. thanks again.
View ArticleQuery to find tables with no stats defined/old statistics - response (8) by...
Hi Nilesh, if you need to get that info you have to talk to your DBA to grant access.
View ArticleWhom can help me explain the ‘46.06:18:08’ time. - response (4) by dnoeth
This strange value is only returned when you have an ODBC connection, so it seems to be a SQLA or ODBC bug: SELECT CAST(-1008 AS SMALLINT FORMAT '99:99:99'), CAST(-1008 AS INTEGER FORMAT '99:99:99'),...
View ArticleWhy I do not see all the databases in Teradata Studio - response (2) by pmehrotr
Thanks. but I do not see poperties like default schema... I am on Tredata Studio 14.0.4... Since I am on windows platform, I also have Tredata SQL Assist.. There also I do not see all schemas. but it...
View ArticleWhom can help me explain the ‘46.06:18:08’ time. - response (5) by joop_kpn
all SQL college's,Thanks for the response, I have changed my procedure to make use of time instead of integer presented as time "lesson learned" THX. And Dieter, you’re right, I'm working from a...
View ArticleWhy I do not see all the databases in Teradata Studio - response (3) by...
No, You do not have to create connection for each schema, But it is possible while making a connection you had specified some default schema, and then only that schema is visible in you database...
View ArticleWhom can help me explain the ‘46.06:18:08’ time. - response (6) by M.Saeed...
Hi, There are several options available in ODBC for how to treat date and time, like III, AAA etc, I tried them as well but it didn't worked. But its always good to use time and date data types for...
View ArticleWhy I do not see all the databases in Teradata Studio - response (4) by pmehrotr
My Authentication is LDAP and I did not sepcify any database (.e. database is BLANK).
View ArticleWhy I do not see all the databases in Teradata Studio - response (5) by...
So you are using JDBC with LDAP? I have tried changing the authentication mechanism to LDAP, and it is much of the same. I think it might be the issue with user you are using, if you are on VM, can...
View Articlerecursive table - forum topic by bikky6
Hi, I have the below logic.My doubt is Should I have the control in the second part of the UNION ALL statement to end the recursive logic or automatically it gets stopped once there is no condition...
View Articlerecursive table - response (1) by M.Saeed Khurram
Hi Bikky, I am not sure what data do you have in in Merge_T table. Because it will depend on your data whether the recursion will stop after testing the condition and stop at some point, or it goes...
View ArticleDistinct Logic - forum topic by bikky6
I have a table like ct table1(name1 varchar(10),name2 varchar(10)) ins into table1 values('ABC','XYZ') ins into table1 values('ABC','ABC') ins into table1 values('XYZ','DEF') ins into table1...
View Article