Correction code sql