From everyday questions to specialized queries, IDNLearn.com has the answers. Get accurate and timely answers to your queries from our extensive network of experienced professionals.

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