>is it possible to modify views's sql by code ?
Yes. But you may not be able to save your version in the View Designer. You may try alternative View designers such as ViewEditor or EView.
You can also write your views in code.
If it's not broken, fix it until it is.
My Blog