SQL table convergence