Title: SQL Query Design Patterns and Best Practices