compilation error in sql