Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

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 Article


Numeric overflow occurred during computation? - response (3) by paulxia39

Dieter:   decimal(38,8) is bigger than decimal(18,2),why it overflow?

View Article


How 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 Article

Numeric 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 Article

Numeric 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 Article


Numeric 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 Article

Revoke 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 Article

Numeric 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 Article


show 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 Article


Behaviour 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 Article

First 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 Article

Row 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 Article

Is 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 Article


Is 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 Article

Row 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 Article


Revoke 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 Article

aliased 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 Article


Numeric 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 Article

aliased 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 Article

Teradata - 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
Browsing all 14773 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>