Usage of aggregates in WHERE clause is allowed.
(a) True
(b) False
I had been asked this question in examination.
This intriguing question originated from Performing Multiple topic in division Using SQL to Manage Data of MySQL
(a) True
(b) False
I had been asked this question in examination.
This intriguing question originated from Performing Multiple topic in division Using SQL to Manage Data of MySQL
Right option is (b) False
The best 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.