Correct the SQL