1 2 3 4 5 6 7 8 9
USE plato; SELECT a.ni - b.ni, a.ni - b.wi, a.wi - b.ni, a.wi - b.wi FROM Dates as a CROSS JOIN Dates as b