Useful SQL scripts for my day to day work.