Numeric overflow occurred during computation? - response (2) by dnoeth
The default maximum number of decimal digits for an expression is based on dbscontrol General field 13: MaxDecimal When you submit a sel type(400.000000000 * 100000000) you'll probably get dec(15,9)...
View ArticleNumeric overflow occurred during computation? - response (3) by paulxia39
Dieter: decimal(38,8) is bigger than decimal(18,2),why it overflow?
View ArticleHow to deal with SQL validation error -5940 (Excessively complex expression)?...
Hi, I'm composing a query to concatenate all columns into a string from a very wide table. My SQL looks like SELECT T0.C0 || '-' || T0.C1 || '-' || ... T0.CN AS CONCATENATED_STR FROM (SELECT T0.C0,...
View ArticleNumeric overflow occurred during computation? - response (4) by paulxia39
dieter: when i excute sql as bellow: sel type(400.000000000 * 100000000), result is decimal(18,9). thks
View ArticleNumeric overflow occurred during computation? - response (5) by dnoeth
You multiply first, this exceeds the dec(18,9) and thus fails before the CAST. So CAST one of the operands before the multiplication. Dieter
View ArticleNumeric overflow occurred during computation? - response (6) by paulxia39
dieter: When cast to deciaml(18,2),it's ok? I'm so puzzle with this....
View ArticleRevoke User - response (1) by dins2k2
Even I have the same question. Where to check whether a user is revoked or not? Any views or tables are there? Please help.
View ArticleNumeric overflow occurred during computation? - response (7) by dnoeth
Of course it's ok, simply try it. Base the definition on your actual datatypes/data/requirements. Dieter
View Articleshow table dbc source - response (3) by Shelley
It gets the information from internal data structures and in particular , for partitioning, it gets it from the table headers. --Shelley
View ArticleBehaviour of a query - forum topic by eejimkos
Hello, I would like your help for the next issue.It is a real problem,but i will presente you like an example. I have a view which is composed as below viewa = sel * from ( calendar_dim inner join (...
View ArticleFirst connection teradata 14 after installation - response (2) by Shelley
Did you make sure you ran the DIP step when creating your new database? Are you using DBC to logon to both BTEQ and through Teradata Administrator? --Shelley
View ArticleRow Number and Select Distinct Query - forum topic by SR_Stage
Good morning TD community, I've been working on a writing a distinct query that returns as a single concatenated string (it has to be fed into a system that is expecting fixed-length field based on...
View ArticleIs there any way to handle single digit's in date? - forum topic by...
Hi All, I have a date "Mar 1 2013" which i want to load it into a table with date format as 'MMMBDDBYYYY' is there any way i can load this without adding a "0" before the 1 in the given date? i am...
View ArticleIs there any way to handle single digit's in date? - response (1) by dnoeth
In TD14 there's Oracle's TO_CHAR, which is a bit more flexible than TD's FORMAT :-) to_date('Mar 1 2013', 'mon dd yyyy') Dieter
View ArticleRow Number and Select Distinct Query - response (1) by dnoeth
DISTINCT is processed after ROW_NUMBER which creates unique values :-) You need to move the DISTINCT into a Derived Table: SELECT ROW_NUMBER(....), dt.* FROM ( SELECT DISTINCT ... FROM ...) AS dt...
View ArticleRevoke User - response (2) by dins2k2
Hi wambli, DBC.LogonRules view has a column named LogonStatus which contains the flag whether user is granted (G) or revoked (R) logon access. This view uses information from real table DBC.LogonRuleTbl.
View Articlealiased column is ambiguous in where clause - forum topic by matt.h
Is there a way to reference an aliased column so it doesn't throw a column is ambiguous error (without renaming the alias)? Example: Select coalesce(a.dob, b.birth_date) as dob From db.table1 a Join...
View ArticleNumeric overflow occurred during computation? - response (8) by paulxia39
Dieter: I do know this is ok and I have test it.But why? When cast to decimal(38,8),you say cast should be excuted after the multiplication. So, when cast to decimal(18,2), I think...
View Articlealiased column is ambiguous in where clause - response (1) by Harpreet Singh
one other way: Select coalesce(a.dob, b.birth_date) as dob From db.table1 a Join db.table2 b (on a.field1 = b.field1) Where coalesce(a.dob, b.birth_date) = '1900-01-01'
View ArticleTeradata - forum topic by HenryMiguel
We have migrated our system from netezza to teradata. But our queries taking very long time in executingTags: taining teradetaForums: Database
View Article