Just a thought...
I have seen many stored procs that contain SQL of the type
'...SELECT....From Table A Join Table B on B.X = A.Z...'
Would it not be better to put the select sql into a view and have the
stored proc reference the view?
advantages are
1/ the view can be re-used.
2/ the stored proc code is cleaner.
Are there any disadvantages?
Any thoughts would be appreciated.
(these stored procs were not written by me

).
