Numeric overflow computation error - forum topic by deva_048
Numeric overflow computation error Max (col1) = 11478000.0000 select cast (max(col1)*123.000*12300.00 as decimal( 15,5 )) from table1 Also if we do normal select also not working select...
View ArticleNumeric overflow computation error - response (1) by Qaisar Aftab Kiani
May be you need to adjust the scale and precision dependin. You can refer the following article... http://developer.teradata.com/tools/articles/how-many-digits-in-a-decimal "SQL Reference: Data Types...
View ArticleNumeric overflow computation error - response (2) by Qaisar Aftab Kiani
BTW you are multiplying DECIMAL(8,4) * DECIMAL(3,3) * DECIMAL(5,2). So I think your result should be DECIMAL(16,9) or something like that. MAXDECIMAL flag in DBSControl also controls the maximum number...
View Articleset table with sum vs multiset with no sum - forum topic by pirrejo
I have a create table query which creates a table with records (multiset), and a secondary query that inserts records into it (millions of rows from the first, hundreds of thousands from the second)....
View Articleset table with sum vs multiset with no sum - response (1) by Qaisar Aftab Kiani
My two cents... Consider the index selections is same for both set and multiset cases. The multiset would be faster as there is no extra processing even checking the duplicate rows is not required....
View Articleset table with sum vs multiset with no sum - response (2) by M.Saeed Khurram
Hi, You have not provided information about the indexes, the second confusing thing is whether you are trying to insert the individual rows, or you need to insert aggregates? What I suppose is you want...
View Articlehelp required for a update scenario - response (5) by sujiwarrier
Thanks Kiani, But here I have multile customer groups to be checked before updating the daily data. Like in above example we have one customer group with C1,C2 and C3 in which C1 is the customer which...
View Articlehelp required for a update scenario - response (6) by Qaisar Aftab Kiani
So basically what I understand is that you need to update certain customer groups data only if the primary customers data within that customer group exists... Is that correct?
View ArticleHow to grant UPDATE to DBC on DBC.IDCol Tables? - response (3) by dnoeth
Hi Kawish, all important system tables are secured, nobody including DBC has rights to INSERT/UPDATE/DELETE/DROP them. This is done to protect the system from getting damaged. There's no built-in...
View ArticleSyntax error: expected something between '(' and the 'current_date' keyword....
When you're on TD13.10 you can use a SQL UDF, otherwise simply use the calculation: REPLACE FUNCTION WEEK_BEGIN(cdate DATE) RETURNS DATE SPECIFIC week_begin_DA RETURNS NULL ON NULL INPUT CONTAINS SQL...
View ArticleFastLoad lock Type - response (1) by dnoeth
It's not an exclusive lock, but a special lock in the table header preventing any SQL access until it's release by an END LOADING.
View ArticleWhy explain plan is so off - forum topic by pmehrotr
I am new to Teradata. I am doing an explain on a sql statement select * from myview where myview is a join of 10 tables. I see in last few line of explain" statement 1. The total estimated...
View ArticleWhy teradata does not give access to statistics views in dbc by default? -...
I come from Oracle backgrond. In Oracle if you have access to your database, you can look in user_tables and user_indexes to see last analyzed to find when statistics was run on a table or index....
View ArticleSubstring Error? - forum topic by sophiachan
WHERE ... AND SUBSTRING(CASE WHEN TABLE_A.COL_1 IS NOT NULL THEN TABLE_A.COL_1 ELSE TABLE_B.COL_1 END, LENGTH(CASE WHEN TABLE_A.COL_1 IS NOT NULL THEN TABLE_A.COL_1 ELSE TABLE_B.COL_1 END)-11,12) IN...
View ArticleDelete or Drop a table if it already exists - response (20) by koushiksaha83
Thanks Dieter. Do you know how to execute same thing in SQLA version 12?
View Articlehelp required for a update scenario - response (8) by sujiwarrier
To more clarify, consider if we have two customer groups , one set with C1,C2 & C3 (C1 as primary) and second set with C4 & C5 (C4 as primary). The update to the daily data should work...
View ArticleWhy explain plan is so off - response (1) by M.Saeed Khurram
Hi, You do not have any stats collected on any table, thats the thing misleading the optimizer. The optimizer always require stats on table to give accurate estimates, else it may give unrealistic...
View ArticleSyntax error: expected something between '(' and the 'current_date' keyword....
Please find the below querys, it is not working on Monday and it is working on rest of days. select distinct date '2013-12-23'-dayofweek(date '2013-12-23'-2)-1 from fact; ans : 12/15/2013 select...
View Article