Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Converting the scale of money with values already in table
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Neil MacMurchy  
View profile   Translate to Translated (View Original)
 More options 12 Mar 2003, 17:49
Newsgroups: microsoft.public.sqlserver.programming
From: "Neil MacMurchy" <neilm...@hotmail.com>
Date: Wed, 12 Mar 2003 12:47:33 -0500
Local: Wed 12 Mar 2003 17:47
Subject: Converting the scale of money with values already in table
How can I change teh scale of money from 4 to 2 decimal peoints when there
is data in the table. will an alter statment work? how? Sorry for the newbie
kind of question....

Neil


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Kass  
View profile   Translate to Translated (View Original)
 More options 12 Mar 2003, 18:08
Newsgroups: microsoft.public.sqlserver.programming
From: Steve Kass <sk...@drew.edu>
Date: Wed, 12 Mar 2003 13:07:12 -0500
Local: Wed 12 Mar 2003 18:07
Subject: Re: Converting the scale of money with values already in table
Neil,

  If you are using [money] as your data type, then you can't change
the scale.  The money type has a fixed scale of 4 decimal points.  If
you need a datatype that stores numbers with exactly 2 places after
the decimal, you can use decimal(10,2) or decimal(20,2) (the first
value is the total number of digits allowed, including those before and
after the decimal point).  You would have to change the data type of
the column, either with an ALTER TABLE .. ALTER COLUMN
statement, or with the visual table designer tool in Enterprise Manager.

  The data types money and decimal do not obey exactly the same
rules regarding rounding and arithmetic - if you are only adding,
subtracting, storing and retrieving data, I think they will be the same,
though.

Steve Kass
Drew University


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google