I believe you better should have two tables.
One table for currency
descriptions with fields id
, symbol
, description
, country
and other table related to this for daily currency rates
with fields currency_id
, rate
, time_updated
.
I want to create a currency table for my project [closed]
سؤال
Sorry for grammar mistakes. I want to create a currency table for my project which will use for adding currencies of different countries. This is my currency table but I'm confuse that this will good or not for project, so should I delete or add more columns in this table? Please help me.
currency
id | symbol | description | country | date_added | date_updated
المحلول
نصائح أخرى
The question is if you really need the date_added. I think this is a information which is not really required.
If you want to update it regulary, I would implement a column "rate", which gives you the value in comparison of Euro or US$ as example. This way people can get a better impression how much 1 Unit of the currency is worth.
Otherwise this looks to be quite okay.
لا تنتمي إلى StackOverflow