Welcome to Westonci.ca, the place where your questions find answers from a community of knowledgeable experts. Discover the answers you need from a community of experts ready to help you with their knowledge and experience in various fields. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

In database management and SQL queries, why is it essential for each GROUP BY expression to include at least one column that is not an outer reference?
a) To avoid SQL injection attacks
b) To ensure data integrity in the database
c) To properly define the granularity of data aggregation
d) To optimize query performance