What are good sources for metaprogramming in SQL?
I'm about to start on a project involving extensive amounts of SQL where there is probably a lot of opportunity to automate/standardize a bunch of different code. What are some good sources for learning SQL metaprogramming, code generation, and other shortcuts?
What are good sources for metaprogramming in SQL?
===

I'm about to start on a project involving extensive amounts of SQL where there is probably a lot of opportunity to automate/standardize a bunch of different code. What are some good sources for learning SQL metaprogramming, code generation, and other shortcuts?