1.

Usage of aggregates in WHERE clause is not allowed.(a) True(b) FalseThis question was posed to me during an online exam.Query is from Maintaining Logs topic in division General MySQL Administration of MySQL

Answer»

The correct answer is (a) True

Explanation: The usage of AGGREGATES inside ‘WHERE’ clauses is not ALLOWED. For example, the following statement will not work: ‘SELECT * FROM my_table WHERE attribute_name = MAX(attribute_name)’, because the MAX VALUE is not known yet.



Discussion

No Comment Found

Related InterviewSolutions