Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

What DataType should I use?

$
0
0

I’m wondering what is the best DATATYPE to use to a few fields. This is all stock data; I have one DATETIME field and several VARCHAR(MAX) fields; this is fine. 

I’m just wondering about a few other fields.

I have something called Weight; it looks like this: 0.0055104518

I have something called Weight; it looks like this: 1240298.89

FX Rate could look like either of these: 95.33   or   0.00862701117198

Float could look like this: 20014665.91

Total_MCAP could look like this: 24824167.99

Finally, Index could look like this: 130062.43

 

I’m thinking that all these numeric will be either MONEY or DECIMAL (19,4) or even NUMERIC(19,4). Is that right?  Can someone give me a little guidance on this?

 

Thanks everyone!


Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>