For instance, say I have a data structure with two integer columns start and end, but I\'m actually interested in the start and difference between
start
end
MySQL can perform some basic arithmetic. However, it is definitely better to perform that sort of arithmetic in PHP if you're already using the data in PHP anyway.
MySQL is meant more for simply storing and extracting relational data.