SELECT POPULAR POST

Try :

select * from (select post_id,count(*) count_post from views group by post_id order by 2 desc) where rownum <=5;

Leave a Comment