sql in oracle format fix