我无法识别此查询的语法错误,语法错误在哪里?
select c_name, c_address, c_mktsegment , count(*) as cnt customer join orders on c_custkey=o_custkey
where
(c_name like %r% AND c_address like %a%) OR c_mktsegment like ='%t%'
group by c_name, c_address, c_mktsegment having count(*)>2;