Decimal Data Type Query
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Decimal Data Type Query Expand / Collapse
Author
Message
Posted 6/18/2008 11:27:58 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/19/2008 6:32:43 AM
Posts: 2, Visits: 4
I am loading 999...99 (18 times) into a teradata table field whose definition is ABC DECIMAL(18,0) NOT NULL COMPRESS 0. But when I see loaded data it is 1000...00 (1 then 18 zeros). I am unable to figure out why this is happening. I am using Ab Initio while for loading the data.
The data field definition in Ab Initio is decimal("|", maximum_length=19) ABC i.e. maximum length is 19 and also | (pipe) separated.

Please help....

Regards,
Anshul


Anshul
Post #11919
Posted 6/19/2008 6:37:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/19/2008 6:32:43 AM
Posts: 2, Visits: 4
I have found out the solution for the above stated problem :)
The data being loaded into Teradata is perfect. The problem lies when you try to view data using select statement which can just show decimals upto 15 digits correctly. To view the data properly you can typecast the field to select cast(ABC as varchar(18)).


Anshul
Post #11928
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 12:24am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 10 queries. Compression Disabled.