Getting this apparently nonsensical error
Error code: 1054 Unknown column in having Clause
while running this query
Select date(START_TS), resource_key, count(INTERACTION_RESOURCE_ID)
From tableName
Group By date(START_TS), resource_key
Having date(START_TS) > '2020-08-27' and resource_key in(772122, 772134);
Although the objective has been achieved by using Where Clause before Group By, but this error is still bothering. Any help would be appreciated.