Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

I have a column which has tweet data some of it contains more than 3 http.(url).i have to count the rows which has more than 3 https.how to write query in hive

avatar
New Member

i used the below query to sort out the no of url s in the column ,

select count(col.name) from table name where colname like %http%;

do any one could help me to solve the above scenario

1 ACCEPTED SOLUTION

avatar
Super Guru

@Hemalatha Panneerselvam is this what you looking for

SELECT count(col_name) FROM table where col_name like '%http%' having count(col_name) >=3

View solution in original post

1 REPLY 1

avatar
Super Guru

@Hemalatha Panneerselvam is this what you looking for

SELECT count(col_name) FROM table where col_name like '%http%' having count(col_name) >=3