Here's some PHP that may help:
<?php
$link = mysql_connect("host","user","pass");
mysql_select_db("db_name",$link);
$selectSQL = "SELECT * FROM `sometable` ORDER BY `order_column` DESC LIMIT 1;"; // Remove or change the LIMIT 1 depending on how many rows you would like to move to the other...