Useful SQL statements accumulated during implementation and support.