A very naive question. I need to store currency in the database. Both the value and the code. To solve this, do people generally make 2 columns, one storing the value and ot
There may be tools specific to your db. In general I would think storing the currency as a real value and a currency code indicator. There may be a standardized currency code list somewhere that you can use or you can just make one up based on the currencies you know you will deal with.
Really if you want to indicate a type of any sort you will need a column to store the type.
People might be able to provide more DB specific help if you indicate the DB you are using.