10 useful tips for writing SQL queries.