1.

Usage of aggregates in WHERE clause is disallowed.(a) True(b) FalseThis question was posed to me in an online interview.This key question is from Managing MySQL User Accounts in division General MySQL Administration of MySQL

Answer»

Correct option is (a) True

The 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