Ok so I have an obnoxious problem to solve here and im stumped.
I have a MySQL table with basically this structure
id transdate startdate enddate unit1 unit1price unit2 unit2price
1 2014-07-31 2014-10-25 2014-10-29 22 25.00 27 25.00
What I need to do is create another column that is totaldays which calculates the number of days between startdate and enddate.
How do I do this?
Thanks so much