SQL Right Justify column
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.


SQL Right Justify column Expand / Collapse
Author
Message
Posted 8/22/2008 3:36:03 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/22/2008 5:23:06 PM
Posts: 2, Visits: 4
I am trying to format a decimal field to get the commas displayed using: CAST((( SAUP) (FORMAT 'ZZ,ZZZ,ZZ9.99')) AS CHAR(13))) (NAMED VALUE1), which works but now I want to right justify the data as if it were an integer field. I cannot find any functions or command to right justify this character data. Please help. Thank you.
Post #12704
Posted 8/25/2008 7:33:55 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 11/25/2008 1:20:39 PM
Posts: 91, Visits: 119
The CHAR cast is not needed. Just use the format:

SAUP (FORMAT 'ZZ,ZZZ,ZZ9.99' (NAMED VALUE1),

If you are exporting using FastExport this will not work unless you specifiy format TEXT in the export command.
Post #12715
« Prev Topic | Next Topic »


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


All times are GMT -5:00, Time now is 10:25pm

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