Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
NewQuery
select * from (select a.user_id, a.name, a.comment_count from (select u.user_id,u.name,count(c.comment_id) comment_count from Users u, Friendships f, Posts p, Comments c where u.user_id = f.user_id and u.gender = 'F' and c.commenter_user_id = u.user_id and p.post_id = c.post_id and p.user_id != 10 and p.user_id != u.user_id and f.friend_id = 20 and u.user_id !=20 group by u.user_id, u.name having count(c.comment_id) > 2 )a ) b Order by b.comment_count desc;
run
|
edit
|
history
|
help
0
ayushagg31.c
hotel1
MySQL updates first timestamp column automatically
cs
Sql
MySQL : calculate overlapping periods
nw
pets
prac
cus