I have two columns in my MySQL table total and dollars. I need to convert my dollars into rupees and store it in my total field. Can I multiply live dollar rates and store the result?
I need a SQL query for a mathematical function which is like this:
total = dollars * current_dollar_rate_in_rupees
Can I make this conversion dynamic? If so how and what would be my SQL query?
Multiplying Two Columns in SQL Server
So just store the value that is giving by this query in your database as ‘total’