I have put COUNT(*) AS num_of_trips in the SELECT Clause.
Now, I want to use num_of_trips > 30 in WHERE Clause but it gives "unrecognized name" error.
I also tried to workaround it by putting the same argument in WHERE clause as:
ROUND(AVG(tripduration/60),2) > 30 but that also gave error.

Aggregated values may be used after the
GROUP BYin theHAVINGclauseThe
WHEREclause filters the rows before aggregation; theHAVINGclause filters the grouped data and aggregated values may only be referenced in this clause.