INSERT INTO `myTable` (`someData`, `averageAtThisTime`) select "some stuff", AVG(`myField`) FROM `myOtherTable`