我正在尝试查询一个数据库,并返回在给定日期和现在之间出现超过五次的所有I的列表。
下面的代码是我尝试生成错误的代码。
Select id, res_date, count(id) as res_count
from reservations
Where cancel = 0 and seated = 1 and id <> 0
group by id
Having COUNT(id) >= 5 and res_date > 5/1/18
https://stackoverflow.com/questions/53840920
复制相似问题