Click here to Skip to main content
15,885,914 members
Home / Discussions / Database
   

Database

 
AnswerRe: Problem when creating query on base of combination [modified] Pin
Niladri_Biswas24-Jun-09 2:16
Niladri_Biswas24-Jun-09 2:16 
GeneralRe: Problem when creating query on base of combination Pin
J4amieC24-Jun-09 2:21
J4amieC24-Jun-09 2:21 
GeneralRe: Problem when creating query on base of combination Pin
Niladri_Biswas24-Jun-09 2:23
Niladri_Biswas24-Jun-09 2:23 
GeneralRe: Problem when creating query on base of combination Pin
Rupesh Kumar Swami3-Jul-09 6:08
Rupesh Kumar Swami3-Jul-09 6:08 
QuestionSQL proxy server Pin
Maddie from Dartford23-Jun-09 19:58
Maddie from Dartford23-Jun-09 19:58 
AnswerRe: SQL proxy server Pin
_Damian S_23-Jun-09 20:13
professional_Damian S_23-Jun-09 20:13 
QuestionMoney or Decimal datatype? Pin
VisualLive23-Jun-09 16:29
VisualLive23-Jun-09 16:29 
AnswerRe: Money or Decimal datatype? [modified] Pin
Niladri_Biswas23-Jun-09 17:25
Niladri_Biswas23-Jun-09 17:25 
Money Data Type

Money is compatible for currency with dollar and cent format. The datatype is accurate to 10 thousand times of the monetary unit.
If the field is capable enough to store large aggregates rather than just the largest value, it is recommended to go with Money data type.
Also with money, you have the choice to use thousand of separators.

Decimal Data Type
Decimal is more flexible, not specific to currency. Suppose you have to support 10 numbers and 2 decimals. In this context decimal is a better choice. Also, decimal is more precise( since we can set precision) and scale to numbers.

Coming to your question directly, what will be the datatype for calculation,percentage?


In case of percentage(e.g. 10.234), there is no case of currency involve. So decimal is the right choice.Also, you can apply precision over there.

For the choice of calculation, you didn't specify, what kind of calculation it is! However, if is mathematical calculations of currency or any aggregation of the same(e.g. Add,Multiply etc. which will be in fraction), go with money datatype.

Smile | :)

Niladri Biswas

modified on Tuesday, June 23, 2009 11:45 PM

GeneralRe: Money or Decimal datatype? Pin
VisualLive23-Jun-09 18:19
VisualLive23-Jun-09 18:19 
GeneralRe: Money or Decimal datatype? Pin
Niladri_Biswas23-Jun-09 18:21
Niladri_Biswas23-Jun-09 18:21 
QuestionHelp in deploying program with database attached Pin
galil45023-Jun-09 10:13
galil45023-Jun-09 10:13 
AnswerRe: Help in deploying program with database attached Pin
Niladri_Biswas24-Jun-09 2:58
Niladri_Biswas24-Jun-09 2:58 
AnswerRe: Help in deploying program with database attached Pin
galil45024-Jun-09 6:01
galil45024-Jun-09 6:01 
QuestionRe: Help in deploying program with database attached Pin
Kschuler24-Jun-09 7:40
Kschuler24-Jun-09 7:40 
AnswerRe: Help in deploying program with database attached Pin
galil45024-Jun-09 7:44
galil45024-Jun-09 7:44 
GeneralRe: Help in deploying program with database attached Pin
Kschuler24-Jun-09 8:00
Kschuler24-Jun-09 8:00 
QuestionHow to select records 11 to 20 in SQL SERVER? Pin
pankazmittal23-Jun-09 5:32
pankazmittal23-Jun-09 5:32 
AnswerRe: How to select records 11 to 20 in SQL SERVER? Pin
Giorgi Dalakishvili23-Jun-09 6:53
mentorGiorgi Dalakishvili23-Jun-09 6:53 
AnswerRe: How to select records 11 to 20 in SQL SERVER? Pin
Blue_Boy23-Jun-09 11:00
Blue_Boy23-Jun-09 11:00 
GeneralRe: How to select records 11 to 20 in SQL SERVER? Pin
pankazmittal23-Jun-09 11:04
pankazmittal23-Jun-09 11:04 
GeneralRe: How to select records 11 to 20 in SQL SERVER? Pin
Blue_Boy23-Jun-09 11:12
Blue_Boy23-Jun-09 11:12 
AnswerRe: How to select records 11 to 20 in SQL SERVER? PinPopular
Niladri_Biswas23-Jun-09 18:10
Niladri_Biswas23-Jun-09 18:10 
GeneralRe: How to select records 11 to 20 in SQL SERVER? Pin
pankazmittal24-Jun-09 4:08
pankazmittal24-Jun-09 4:08 
QuestionHow to know if a column of type int is Identity using ADO.NET GetSchema()? Pin
adgonz23-Jun-09 5:31
adgonz23-Jun-09 5:31 
AnswerSystables Pin
David Mujica23-Jun-09 6:06
David Mujica23-Jun-09 6:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.