질문합니다.!

select substr(hv_datetime, 12, 2) as times, ( select count(*) from hit_visit where hv_datetime like '% times:%' ) from hit_visit group by times limit 20 

 

hv_datetime like '% times:%' 

이부분 상위 칼럼값으로 조회가 불가능 할까요?

답변 1개

select substr(hv_datetime, 12, 2) as times, count(*) from hit_visit group by times limit 20  

그룹바이 하시면 해당 조건으로 카운트 하면 될듯합니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고