I was arguing with my friend against his suggestion to store price, value and other similar informations in varchar.
My point of view are on the basis of
- Calculations will become difficult as we need to cast back and forth.
- Integrity of the data will be lost.
- Poor performance of Indexes
- Sorting and aggregate functions will also need casting
etc. etc.
But he was saying that in his previous employement everybody used to store such values in varchar, because the communication between DB and the APP will be very effective in this approach. (I still cant accept this)
Are there really some advantages in storing such values in varchar ?
Note : I'm not talking about columns like PhoneNo, IDs, ZIP Code, SSN etc. I know varchar is best suited for those. The columns are value based, and will for sure be involved in calculations some way or other.