Click here to Skip to main content
15,880,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello...
i want to create a table named 'caustic_batch_tank'
containing following columns


1.empcode varchar(50)
2.shiftid int
3.edatetime datetime
4.tagval


i want to assign datatype to 4.tagval to decimal but the floating-point of tagval column may be on unit place,tenth place, hundred place,thousand place,thenth thousand place etc.
i had used float but it didn't work any more.
plz help me.

values for tagval
0.235,
256.368,
7856.3698,
2.3698,
12.258,
123.1
etc
Posted
Updated 17-May-14 0:02am
v2
Comments
DamithSL 17-May-14 5:50am    
update the question with sample data for tagval

1 solution

If you need more precision, use decimal and numeric to store tagval - decimal and numeric[^].
 
Share this answer
 
Comments
DamithSL 17-May-14 6:10am    
5d!
Hey Abhinav, You got my vote! can't see any change in vote count in your answer. I have tried several times. may be another bug :(
Abhinav S 17-May-14 6:14am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900