Repaired data in sql