If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to add decimals for a field

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-09-08, 08:47
tudaykumar tudaykumar is offline
Registered User
 
Join Date: Nov 2007
Posts: 26
How to add decimals for a field

Hi all,

I have a field amount which is of datatype decmal(8,2).
My problem is, for example 27.09(original value) its showing 2709 in the table for all the records.
Actually I got a txt file in which the record is 2709, so when I loaded it, its showing 2709 instead of 27.09.

Can someone tell me how to do bring it to 27.09? plzzz ASAP
Reply With Quote
  #2 (permalink)  
Old 01-09-08, 08:55
umayer umayer is offline
Registered User
 
Join Date: Dec 2005
Posts: 273
UPDATE table
SET column = column / 100 ; ...
Reply With Quote
  #3 (permalink)  
Old 01-09-08, 09:34
tudaykumar tudaykumar is offline
Registered User
 
Join Date: Nov 2007
Posts: 26
Thanks dude. Didnt strike me Thank you very much
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On